Viewing 15 posts - 856 through 870 (of 4,087 total)
Here's a new one.
SELECT <primary key>, <other fields>
FROM Table_Stage
INTERSECT
SELECT <primary key>, <other fields> /* all fields from Table_Prod */
FROM...
October 10, 2018 at 1:06 pm
October 10, 2018 at 12:02 pm
Also using the same expression in both the PARTITION BY and ORDER BY clauses of an OVER() clause.
October 10, 2018 at 7:41 am
NOLOCK
Using DISTINCT with UNION or GROUP BY.
Drew
October 9, 2018 at 12:40 pm
The problem appears to be here: SQLCMD.CommandText = "IF OBJECT_ID(N'dbo.WomenStartListDay1', N'U')
IF requires a conditional expression and OBJECT_ID(...) does...
October 4, 2018 at 12:37 pm
Furthermore, GETDATE() returns DATETIME, so converting from DATETIME to DATETIME is an identity operation.
Drew
October 4, 2018 at 7:53 am
October 3, 2018 at 2:42 pm
October 3, 2018 at 12:08 pm
This query is too simple to improve the performance on. You have none of the major factors that contribute to poor performance, so there is no way to reduce or...
October 3, 2018 at 11:49 am
You still haven't supplied the query plan. We really need...
October 2, 2018 at 3:28 pm
October 2, 2018 at 2:24 pm
October 2, 2018 at 2:21 pm
What have you tried? HINT: ROW_NUMBER() is probably the simplest approach.
Drew
October 2, 2018 at 2:12 pm
DECLARE @StartDate DATE;October 2, 2018 at 12:57 pm
Viewing 15 posts - 856 through 870 (of 4,087 total)