Viewing 15 posts - 51,766 through 51,780 (of 59,091 total)
Like this...
--===== Solve the problem is 2k5
SELECT Category,[Desc],ID,
DENSE_RANK() OVER (ORDER BY Category,[Desc]) AS Seq
FROM #yourtable
ORDER BY...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 15, 2008 at 11:55 am
But for some application elements it would be very handy to copy a complete row of data
and then alter some values of the new record via the userapplication,
You really...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 15, 2008 at 11:45 am
Sure... use DENSE_RANK instead of ROW_NUMBER... look it up in Books Online... except for the partition, the rest of the query will be pretty much the same...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 15, 2008 at 11:06 am
Ummm... just in case you don't have a "Dates" table like what Jack used, please consider the information at the following URL...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 15, 2008 at 10:47 am
Heh... I think the OP "left the building".
The other thing is, ( I don't think anyone mentioned this above) you will never get the same speed using SELECT * no...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 15, 2008 at 10:43 am
Jack Corbett (3/15/2008)
Steve Jones - Editor (3/15/2008)
I've added this to the list. turns out to be a switch 🙂Sounds like good data-driven design to me:P
I gotta agree there...
... but...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 15, 2008 at 10:38 am
Oh yeah... almost forgot... I recommend that you don't actually use keywords for column names...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 15, 2008 at 10:34 am
Jack beat me to it but I'll post my solution anyway... the reason is that I want you to see an example of how to post information about a table...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 15, 2008 at 10:32 am
Bob Fazio (3/15/2008)
Boy was that cough medicine strong :sick:I never thought of a computer as heavy machinery 😉
😀 Man, thanks for having a good sense of humor. I've...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 15, 2008 at 9:59 am
mukundbtech (3/13/2008)
Thank u .. and like to know is there any other option other than using a format file .. if so help me
Rethinking this, DTS would probably be the...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 15, 2008 at 12:45 am
Greg Snidow (3/14/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
March 15, 2008 at 12:43 am
halifaxdal (3/14/2008)
Thank you Jeff.
You bet... thank you for the feedback.
--Jeff Moden
Change is inevitable... Change for the better is not.
March 15, 2008 at 12:36 am
Before you use any of those that have a self join or correlated subquery that use the ">=" or "<=" or any other inequality method to generate row numbers, you...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 15, 2008 at 12:31 am
Bob Fazio (3/14/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
March 15, 2008 at 12:11 am
Bob Fazio (3/14/2008)
Pat Reiter (3/14/2008)
Examples use CHAR(9), but compare to string of format '###-##-####' . Are the dashes not part of the string?
The example was wrong. It should...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 15, 2008 at 12:02 am
Viewing 15 posts - 51,766 through 51,780 (of 59,091 total)