Viewing 15 posts - 42,841 through 42,855 (of 59,063 total)
Thanks, Simon. I can't take the credit for the original idea, though.
As a side-bar, you did make my day. So many people take a bit of code and...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 21, 2009 at 8:38 am
touchmeknot123 (7/21/2009)
Yes, As I had written earlier that certain records have fixed length.
Like say
H1234NRina
H2345A123abcstreet
H3456Z23456
Above, 1st record "type" i.e. type N will have columns of length 5,1,4 only
Similarly, 2nd...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 21, 2009 at 8:33 am
Tara (7/21/2009)
--Jeff Moden
Change is inevitable... Change for the better is not.
July 21, 2009 at 8:29 am
chandrika5 (7/21/2009)
I have not worked with tally...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 21, 2009 at 8:27 am
Chethan Srinivas Shetty (7/21/2009)
Thanks for enlightening me on the use of reverse and substring. Is a flexible way of manipulating string formats into numbers. cheers
Just be careful, Chethan... REVERSE is...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 21, 2009 at 6:28 am
Chris Quinn (7/21/2009)
My procedure - 500,000 records - 1m 27s
Your procedure...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 21, 2009 at 6:21 am
As a side bar... the report looks a little racist... I thought the days of Whites vs Non-Whites was gone. Guess the days of truly equal opportunity still...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 20, 2009 at 11:10 pm
chandrika5 (7/20/2009)
VAL1 = ABCD ; VAL2=BDAC
I need to sort both the values so that If I do a
IF VAL1...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 20, 2009 at 10:44 pm
. (7/20/2009)
--Jeff Moden
Change is inevitable... Change for the better is not.
July 20, 2009 at 10:42 pm
Tara (7/20/2009)
select top 10* from vwemp...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 20, 2009 at 10:39 pm
Wesley Norton (7/20/2009)
the sum of the 4 character code should be the same.
Ummm... not necessarily...
'ABBC' = 'AABD'
--Jeff Moden
Change is inevitable... Change for the better is not.
July 20, 2009 at 10:29 pm
Heh... couldn't wait. Since this is SQL Server 2000, there's no "programmable" TOP. So, I cheated to avoid the dynamic SQL (not that I'm against using dynamic SQL......
--Jeff Moden
Change is inevitable... Change for the better is not.
July 20, 2009 at 8:47 pm
Hey Chris,
Thanks for posting your code. Lot's of folks just take the money and run. I'd like to return the favor in the form of another enhancement or...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 20, 2009 at 7:51 pm
Heh... no... I'm saying you're too late... no mind left. 😛
--Jeff Moden
Change is inevitable... Change for the better is not.
July 20, 2009 at 6:48 pm
Thanks... I appreciate that. Here's the solution... explanation is in the code comments.
--===== This is your original test table with just a bit of reformatting.
...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 20, 2009 at 6:21 pm
Viewing 15 posts - 42,841 through 42,855 (of 59,063 total)