Viewing 15 posts - 466 through 480 (of 8,731 total)
Why would you have a dbo.addmonths function when you have a native DATEADD function?
June 21, 2018 at 11:35 am
I need to compare @date...
June 21, 2018 at 11:08 am
Here's an example with some possible scenarios:
SELECT SpecialCode,
CAST(SUBSTRING(SpecialCode, 0, ISNULL( NULLIF(CHARINDEX('/', SpecialCode), 0), 10)) AS int) AS Expr1,
CAST(SUBSTRING(SpecialCode, ISNULL( NULLIF(CHARINDEX('/',...
June 21, 2018 at 9:02 am
June 21, 2018 at 7:56 am
June 20, 2018 at 7:45 pm
So for the first...
June 20, 2018 at 2:47 pm
I would start by changing all those SELECT TOP 1. You're reading the tables multiple times when you can read them just once.
Your WHERE clause is not SARGable...
June 20, 2018 at 2:39 pm
Thanks in advance for any assistance you can give me.
What I am trying...
June 20, 2018 at 2:24 pm
Am I missing something here?
https://www.sqlservercentral.com/Forums/1969990/Advice-help-for-this-query
June 20, 2018 at 2:19 pm
table: INDEX (all primary keys)
longitude latitude ...
June 20, 2018 at 12:41 pm
June 19, 2018 at 10:04 am
Have you seen the estimated number of rows? How long would you expect it to take to process 20TB of data?
You should start by filtering the data that you're...
June 19, 2018 at 9:48 am
I have an...
June 19, 2018 at 7:43 am
Here's a code sample on how to do it:
WITH cteTable1 AS(
SELECT col1, col2, SUM(col3) sumcol3, SUM(col4) sumcol4
FROM Table1
GROUP BY col1,...
June 14, 2018 at 12:30 pm
Viewing 15 posts - 466 through 480 (of 8,731 total)