Viewing 8 posts - 1 through 9 (of 9 total)
Just move that final select into yet another CTE, add a date field, and in the final select order by that field.
Yeah that is what I already did, Thanks
September 15, 2010 at 9:27 am
vivek.verma (9/15/2010)[/b]
@Wayne
Your solution is also working, is it some way possible to order the final result by date desc as the present final result set is as order...
September 15, 2010 at 6:42 am
Thanks guys 🙂
@Wayne
Your solution is also working, is it some way possible to order the final result by date desc as the present final result set is as order by...
September 15, 2010 at 5:20 am
@ ColdCoffee
The other code also worked well, and off course I will prefer less number of lines as it is somewhat good for speed. Thanks again
September 14, 2010 at 8:54 am
Hey thanks it worked like a charm and code is also too well explained, and don't know how you got it that somewhere my requirement will be data for all...
September 14, 2010 at 8:38 am
Hi Jeff,
Thanks for your reply. Yes I am using SQL Server 2005 (I am not such a newbie to SQL though :P)
Regards,
Vivek
September 13, 2010 at 5:19 am
Also Wayne, I really liked your way of posting the code with comments..not everyone does like this.. It really helped in understanding the code..
September 11, 2010 at 11:47 am
Hi Wayne, many thanks for your reply. I am a newbie programmer and I have dealt more with programming rather then database and sql queries. In my present job I...
September 11, 2010 at 11:33 am
Viewing 8 posts - 1 through 9 (of 9 total)