Viewing 15 posts - 7,036 through 7,050 (of 7,608 total)
Jeff Moden (12/4/2012)
ScottPletcher (12/4/2012)
This for a simple, introductory interview q, when I often had two more...
December 5, 2012 at 7:02 pm
Pete Cox (12/4/2012)
YYYYMMDD is in fact the Basic date format proposed by ISO8601.YYYY-MM-DD is named the Extended format.
Using either is OK by the standard.
Excellent point, and quite correct (I just...
December 4, 2012 at 10:00 am
Jeff Moden (12/4/2012)
ScottPletcher (12/3/2012)
Jeff Moden (12/3/2012)
December 4, 2012 at 9:48 am
Jeff Moden (12/3/2012)
December 3, 2012 at 5:15 pm
SELECT
GrpID, GrpName,
ISNULL(NULLIF(MAX(CASE WHEN Spc <> 'Mixed' THEN Spc ELSE '' END), ''), 'Mixed') AS Spc
FROM #mytable
GROUP BY
GrpID, GrpName
HAVING
MAX(CASE WHEN Spc = 'Mixed' AND PrvName =...
December 3, 2012 at 5:09 pm
Hmm, something seems odd.
SQL should be able to easily do "simple parameterization" -- the old name, "auto-parameterization", seems clearer to me -- on that query. That is, SQL should...
December 3, 2012 at 4:40 pm
What was the status of the log file when you ran the command? How large was the log, how much space was free, and what was the Autogrowth amount?
Be...
December 3, 2012 at 4:26 pm
CELKO (12/1/2012)
Please learn to use the ISO-8601 date formats; it is the only one allowed in Standard SQL and the other ISO Standards. Use the DATEADD() function for this.
Or,...
December 3, 2012 at 10:22 am
CELKO (12/1/2012)
CHECK (test_nbr BETWEEN 1 AND 3),
Seriously, test_nbr limited to 3? What about previous classes? And classes for the next semester? Test_nbr would be identifier,...
December 3, 2012 at 8:50 am
Jeff Moden (11/30/2012)
ScottPletcher (11/30/2012)
Jeff Moden (11/30/2012)
ScottPletcher (11/30/2012)
Jeff Moden (11/29/2012)
December 3, 2012 at 8:41 am
CELKO (12/1/2012)
I use this query as extra credit for my students when I teach a SQL class. ... This is much trickier than it sounds at first....
December 3, 2012 at 8:33 am
Eugene Elutin (11/30/2012)
... and got some pretty mediocre answers from (supposedly) experienced and skilled T-SQLers.
I am not be surprised when good skilled T-SQLers come up with stupid answers on paper...
November 30, 2012 at 4:50 pm
capnhector (11/30/2012)
ScottPletcher (11/30/2012)
Eugene Elutin (11/30/2012)
ScottPletcher (11/30/2012)
In the interests of being thorough, I added a Message to my proposed solution back to them:
SELECT
...as above...,
...
November 30, 2012 at 4:45 pm
Eugene Elutin (11/30/2012)
ScottPletcher (11/30/2012)
In the interests of being thorough, I added a Message to my proposed solution back to them:
SELECT
...as above...,
CASE WHEN...
November 30, 2012 at 4:13 pm
Jeff Moden (11/29/2012)
capnhector (11/29/2012)
November 30, 2012 at 1:53 pm
Viewing 15 posts - 7,036 through 7,050 (of 7,608 total)