Viewing 15 posts - 856 through 870 (of 4,085 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...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 10, 2018 at 1:06 pm
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 10, 2018 at 12:58 pm
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
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.
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 10, 2018 at 7:41 am
NOLOCK
Using DISTINCT with UNION or GROUP BY.
Drew
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
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...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 4, 2018 at 12:37 pm
Furthermore, GETDATE() returns DATETIME, so converting from DATETIME to DATETIME is an identity operation.
Drew
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 4, 2018 at 7:53 am
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 3, 2018 at 2:42 pm
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
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...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 3, 2018 at 11:49 am
You still haven't supplied the query plan. We really need...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 2, 2018 at 3:28 pm
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 2, 2018 at 2:24 pm
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 2, 2018 at 2:21 pm
What have you tried? HINT: ROW_NUMBER() is probably the simplest approach.
Drew
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 2, 2018 at 2:12 pm
DECLARE @StartDate DATE;J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 2, 2018 at 12:57 pm
Viewing 15 posts - 856 through 870 (of 4,085 total)