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.
Author |
Topic |
vandana
Starting Member
29 Posts |
Posted - 2013-05-16 : 02:46:33
|
Hi ALl,how can i calulate last time bought items and price of that itemsfor a customer |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2013-05-16 : 03:57:02
|
with limited info provide only thing i can tell is do something likeSELECT TOP 1 WITH TIES *FROM tableORDER BY TimeBought DESC Again question remains if you're looking at last bought time for each item or just on the whole------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs |
|
|
|
|
|