Viewing 15 posts - 3,091 through 3,105 (of 4,081 total)
I'm afraid more information is required.
I am not seeing the pattern between the desired output and your input.
Is there a sequence?
Are...
April 11, 2009 at 7:05 pm
See if these are quick enough for you. The use of FOR XML is the fastest concatenation technique I've come across, but this sort of string manipulation is...
April 11, 2009 at 6:24 pm
For what it's worth, JOIN is the standard we use too, for both readability and reliability.
April 11, 2009 at 5:59 pm
Hopefully some of the rest of us will be on hand to listen.
April 11, 2009 at 3:20 pm
What a maroon... what a gulli-bull...
April 11, 2009 at 3:18 pm
I would follow Magoo's approach of making this table-driven for the sake of flexibility.
Might be a good idea to add an index to his ReportKeys table.
April 11, 2009 at 2:10 pm
Hey... who are you callin' an oxymoron!? :unsure:
April 11, 2009 at 2:03 pm
Hi Flo:
No I don't create them, I use Google Image Search, and there are also websites that post collections of images. "Biohazard" seems to inspire a...
April 11, 2009 at 12:15 pm
I must confess, I don't approve of your schema either.
However, this will give you the result you're looking for.
declare @test-2 table (PK1 int, pk2 int, TitleOrder int, Title varchar(20),...
April 11, 2009 at 12:09 pm
By the way, Gail. I asked for authority instead of experience because you can usually quote chapter and verse from BOL. 😉
April 11, 2009 at 11:42 am
I just tested it and answered my own question. The Join on ShortCode+'%' did NOT interfere with the proper use of the index. It produced...
April 11, 2009 at 11:40 am
I was thinking about the LIKE solution earlier, but that would make the join be
INNER JOIN T2 ON LongCode like ShortCode+'%'
Doesn't the ShortCode+'%' expression create the same problem as the...
April 11, 2009 at 11:27 am
Gail, do you have some authority for us on the joins using the LEFT function?
April 11, 2009 at 10:23 am
Viewing 15 posts - 3,091 through 3,105 (of 4,081 total)