Viewing 15 posts - 7,036 through 7,050 (of 7,616 total)
I would think the old, trusty MAX() would be clearer and less overhead than the mirrored function:
DELETE FROM tn
FROM dbo.tablename tn
INNER JOIN (
SELECT location, MAX(bookid) AS...
December 10, 2012 at 4:12 pm
Yes, if you can, it would be much better to store from and to currencies as separate columns.
But, either way, you don't need to store 2 conversion rates, only one,...
December 10, 2012 at 4:03 pm
--If the final total will be <= 24 hrs, you can do this:
SELECT CONVERT(char(5), DATEADD(MINUTE, DATEDIFF(MINUTE, STUFF(STUFF(date_column1, 9, 0, ' '), 12, 0, ':'), STUFF(STUFF(date_column2, 9, 0, ' '), 12,...
December 7, 2012 at 1:37 pm
One or more them could also be exception/override tables. They may be empty in your case because currently you don't have any exceptions to normal processing rules/conditions. But...
December 7, 2012 at 11:38 am
DarthBurrito (12/7/2012)
December 7, 2012 at 11:35 am
Jeff Moden (12/6/2012)
patrickmcginnis59 (12/6/2012)
Jeff Moden (12/6/2012)
patrickmcginnis59 (12/6/2012)
Jeff Moden (12/4/2012)
December 7, 2012 at 8:08 am
Jeff Moden (12/5/2012)
ScottPletcher (12/5/2012)
Jeff Moden (12/4/2012)
ScottPletcher (12/4/2012)
This for a simple, introductory interview q, when I often...
December 5, 2012 at 9:47 pm
Yeah, the 10% is awful. I'm afraid I don't see the point of resetting to something almost as bad.
Why not create default growth tables based on total size, one...
December 5, 2012 at 7:09 pm
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
Viewing 15 posts - 7,036 through 7,050 (of 7,616 total)