MySQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsDatabasesMySQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old November 14th, 2013, 05:16 AM
Harinath Harinath is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2013
Posts: 1 Harinath User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 51 sec
Reputation Power: 0
Logic problem in mysql

Hi I am new to mysql database So can one help to my problem to resolve. I hava table "eventdata" like below
deviceID accountID timestamp speedKPH address
--------- -------- ---------- ---------- ----------------- -------------
preva1 bolero 1359088786 8.4729 Ullalu Road

preva1 bolero 1359088796 0 Ullalu Road

preva2 bolero 1359088886 0 nice Road

preva3 bolero 1359088886 8.47 Ullalu Road

preva1 bolero 1359088986 0 nice Road

preva3 bolero 1359088986 8.4729 Ullalu Road

preva1 bolero 1359088996 31 Baneerugatta

preva1 bolero 1359088998 0 Kail roald
preva3 bolero 1359088786 32
preva1 bolero 1359088896 34 Bhel

preva2 bolero 1359088786 24 Ullalu Road

preva1 bolero 1359088766 0 nice Road
preva1 bolero 1359088789 0 Nayagara

Here i need output table will be like shown below
accountID deviceID timestamp1 timestamp2 Diffstp


preva1 bolero 1359088766 1359088789 23


preva1 bolero 1359088789 1359088796 7

preva1 bolero 1359088796 1359088987 191


preva1 bolero 1359088987 1359088998 11

preva1 bolero 1359088998

can any one help for me to do this

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > Logic problem in mysql


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.

© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap