Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Need Most Recent Customer

Author  Topic 

gualm
Starting Member

11 Posts

Posted - 2008-03-12 : 14:56:47
What statements can be used to grab the most recent customer record?

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2008-03-12 : 15:20:26
select top 1 ....
...
order by Status_Date desc

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
SSMS Add-in that does a few things: www.ssmstoolspack.com
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-03-13 : 08:55:27
This is the forth topic of exactly the same kind this week.
Are you all attending same class?



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2008-03-13 : 08:58:15
and why did you delete your query?

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
SSMS Add-in that does a few things: www.ssmstoolspack.com
Go to Top of Page
   

- Advertisement -