Viewing 15 posts - 2,836 through 2,850 (of 5,502 total)
Craig Farrell (9/8/2010)
LutzM (9/8/2010)
I would prefer a solution that would be able to benefit from an index on that date column, (snip)
Lutz, since when does a case statement in a...
September 8, 2010 at 2:56 pm
Would you mind sharing your solution so others might benefit?
September 8, 2010 at 2:44 pm
I would prefer a solution that would be able to benefit from an index on that date column, or I would add shift table that would specify the period it's...
September 8, 2010 at 2:13 pm
A totally different approach:
You might want to have a look at one of Jacob Sebastian's TSQL Challenges.
It might help to look through the various solutions...
Or, if you already know the...
September 8, 2010 at 1:44 pm
Steve Jones - Editor (9/8/2010)
September 8, 2010 at 1:38 pm
Tom.Thomson (9/8/2010)
WayneS (9/8/2010)
How about a table where the PK is on a text datatype? (as are most of the other columns also!)
Now that I've seen that one, and the one...
September 8, 2010 at 12:38 pm
Please have a look at the CrossTab article referenced in my signature.
Give it a try and post back if you get stuck.
Once you figured how it works you might want...
September 8, 2010 at 12:30 pm
Funny...
Now that you actually have an avatar go back to your question and re-read it. After that have a look at the avatar right next to it. 😉
I know, the...
September 8, 2010 at 12:25 pm
call4ljw (9/8/2010)
Like this?
Almost.
Just try to run that code on a just created (empty) database in your test environment.
Most probably you'll get the same message like we do when we try...
September 8, 2010 at 10:09 am
GilaMonster (9/8/2010)
LutzM (9/8/2010)
I've seen this very same question (including exactly the same query even down to POPDATA.ANCNUMBER=720) at least a dozen times so far.Links?
As requested:
SSC1,
SSC2,
Several links at phpfreaks.com, go4expert.com, and...
September 8, 2010 at 9:47 am
What would be your expected output for
INSERT INTO @Tbl VALUES(1,1,'A')
INSERT INTO @Tbl VALUES(1,2,'D')
INSERT INTO @Tbl VALUES(1,3,'X')
INSERT INTO @Tbl VALUES(1,4,'A')
September 8, 2010 at 9:36 am
Would you mind telling us where you're located at?
It seems like a phenomenon...
I've seen this very same question (including exactly the same query even down to POPDATA.ANCNUMBER=720) at least a...
September 8, 2010 at 9:28 am
tonyclifton77 (9/8/2010)
for the expected output I'd be happy with a simple true or false - as in the exist-method.
What would be your true or false condition?
September 8, 2010 at 9:14 am
Alvin Ramard (9/8/2010)
GilaMonster (9/8/2010)
Now here's an interesting question...Which is going to reach 20 000 posts first, me or the Thread?
What if your 20000 was also the Thread's 20000? :w00t:
Sounds like...
September 8, 2010 at 8:15 am
WayneS (9/8/2010)
LutzM (9/8/2010)
call4ljw (9/8/2010)
Editted accordingly...Not really....
Sample data in a ready to use format and expected result, please.
Something like:
CREATE TABLE Book (BookID int....)
CREATE TABLE Borrow (BookID int, ...)
INSERT INTO Book...
September 8, 2010 at 8:09 am
Viewing 15 posts - 2,836 through 2,850 (of 5,502 total)