joining the table

Reply

Join Date: Jan 2009
Posts: 20
Reputation: manojjena1982 is an unknown quantity at this point 
Solved Threads: 0
manojjena1982 manojjena1982 is offline Offline
Newbie Poster

joining the table

 
0
  #1
Jul 2nd, 2009
I have a table name Project(id,projectid,date)
-----------------------------------------------------------
id | projectid | date
1 | 9 | 2009-02-03
2 | 9 | 2009-03-04
3 | 9 | 2009-04-05

i need a query which will return me the recent date of that project id.
query will return:
3 | 9| 2009-04-05
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 118
Reputation: cgyrob is on a distinguished road 
Solved Threads: 18
cgyrob's Avatar
cgyrob cgyrob is offline Offline
Junior Poster

Re: joining the table

 
0
  #2
Jul 2nd, 2009
Try something like

  1. SELECT Top 1 FROM Project ORDER BY DATE desc
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC