Viewing 15 posts - 136 through 150 (of 5,355 total)
I don't think you need the 'lastid' field... you could've done the same without it, right?
Yes, it should always contain the same value as the id column. This UPDATE thingy...
June 9, 2005 at 1:46 am
This question pops up every now and then, and IIRC the answer was always the one Remi gave. You can't do this with QA, AFAIK.
June 9, 2005 at 1:39 am
Read BOL closely. The T-SQL CASE expression is not like CASE in other programming languages. But it's certainly one of the most powerful tools in SQL.
June 9, 2005 at 1:37 am
One might be inclined to think, that this is presentational stuff done best at the client. Anyway, piggy-backing on Remi, here's another method
SELECT REPLACE(STR(@x*100,11), ' ', '0')
for the lazycoder.
June 9, 2005 at 1:28 am
Have you tried that also on the Google Groups?
<A href="http://groups.google.de/groups?q=first+date&hl=de ">http://groups.google.de/groups?q=first+date&hl=de
June 9, 2005 at 1:16 am
Addendum: Got yesterday a book by CJ Date on my desk to review. It backs up, of course, what Joe already said. Because the correct pronounciation is Ess-Cue-El you say...
June 9, 2005 at 1:11 am
I like to think that converting to string and back is not the best sultion possible. These should be faster:
SELECT CAST(SUBSTRING(CAST(GETDATE() AS BINARY(8)),1,4) + 0x00000000 AS DATETIME)
SELECT CAST(CAST(SUBSTRING(CAST(GETDATE() AS binary(8)),1,4)...
June 9, 2005 at 12:57 am
Personally I would rather prefer to do
SELECT DATEADD(minute, -DATEPART(minute, TempTime) % 5, TempTime) AS StartingInterval,
AVG(Temperature) AS AverageTemperature
FROM temperatures
GROUP BY DATEADD(minute, -DATEPART(minute, TempTime) % 5, TempTime)
on the server...
June 8, 2005 at 12:52 am
Well, we're talking about more than 100 databases, with thousands of stored procedures built over the last 5 years by 15 or so developers, so the structure of them varies...
June 7, 2005 at 8:41 am
There might be a tool already existing, but a start might be to adopt a good commenting style within your procedures when they are created.
June 7, 2005 at 8:30 am
What is this
order by max(CONVERT(decimal(19,4), DATA_VALUE_ )) desc
supposed to do along with a TOP 1 ?
June 7, 2005 at 8:10 am
2005/a/b/001
Life would be easier when you would break this into separate columns. Is there a specific reason why you want to maintain such a sequence at all within your data?
June 7, 2005 at 8:00 am
Viewing 15 posts - 136 through 150 (of 5,355 total)