RSS Forums RSS
Please support our MS SQL advertiser: Programming Forums
Views: 2414 | Replies: 2
Join Date: Jun 2005
Posts: 1
Reputation: abhishekj is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
abhishekj abhishekj is offline Offline
Newbie Poster

need urgent help for a query

  #1  
Jun 17th, 2005
i have two tables
table1 has the folowing fields
lastprice
symbol
time

table2 has the same fields

now table1 stores only the last data of the corrosponding symbol
but table2 goeson adding the data as it comes in
now i want to write a query get the difference of the lastprice of table1 and the lastprice of table2 which was recorder 5 minutes back something like
table1.lastprice,table2.lastprice where
table2.time<(table2.time-5 min)
now the problem is that i have to get only the first data of table2 for the correspondig symbol for that time.
pls help
AddThis Social Bookmark Button
Reply With Quote  

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 12:12 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC