Viewing 15 posts - 1,846 through 1,860 (of 3,543 total)
Great article, very informative
![]() | With the "one job in ten years" policy I'm sure my resume would at the... |
June 21, 2006 at 4:25 am
![]() | ...I like to poke fun at developers who dabble in SQL... |
Hey, I resemble that remark
June 15, 2006 at 7:48 am
The only problem is with milliseconds for times of '23:59:59.003' to '23:59:59.997' which if present on day-8 then your query would include it.
Therefore you would to use CONVERT(varchar(12), DATEADD(day, -8,...
June 15, 2006 at 7:08 am
SET DATEFIRST 1
SELECT (DATEDIFF(week,'20060101',GETDATE())*5)+DATEPART(weekday,GETDATE())
providing it is not run on a Sat/Sun
June 14, 2006 at 7:04 am
WHERE DATEDIFF(day,[Date],GETDATE()) <= 7
but this will not utilise any index on the date column
whereas Peters solution will
June 14, 2006 at 6:39 am
Your problem occurs when you have multiple deletes invlolving multiple accounts
This would be my (ANSI-92 standard) way of doing it
UPDATE a
SET a.balance = a.balance - d.adjustment
FROM accountBalance a...
June 12, 2006 at 7:05 am
Plus it would be more efficient to put the results of the two tables combined into a temp table first and then using that table. This would avoid the multiple...
June 7, 2006 at 7:02 am
Try this
SELECT b.[RANK], MAX(b.[Url]) AS [Url], b.[DomainName]
FROM (SELECT MAX(ss.[RANK]) AS [RANK], docs.[DomainName]
FROM ContainsTable(Machinery_Docs, *, 'Lathe') AS ss
INNER JOIN Machinery_Docs docs ON ss. = docs.[Url]
...
June 7, 2006 at 6:56 am
Lookup CHECKSUM in BOL, the recommendation of the use of an additional indexed hash column (int) may improve your queries.
June 6, 2006 at 6:50 am
![]() | ...a well-formed XML schema againt which well-formed HTML can be validated. |
There is a XML Schema for XHTML