Viewing 15 posts - 2,551 through 2,565 (of 4,085 total)
durga.palepu (6/28/2016)
I see only the date expression in this query, do you use any other expression also?
Also you can rewrite date_begin...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
June 28, 2016 at 8:36 am
Phil Parkin (6/24/2016)
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
June 24, 2016 at 12:18 pm
I think that Luis' solution will perform faster than any looping solution, especially once the square root short circuit is added.
Drew
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
June 24, 2016 at 10:29 am
Phil Parkin (6/24/2016)
If you are a fan of MERGE, please take a read of this[/url] and decide whether, perhaps, you should reconsider.
And rather than using...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
June 24, 2016 at 8:10 am
By definition, an aggregate combines separate elements into one whole. This is exactly what you are doing with a pivot, which is why a pivot requires an aggregate. ...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
June 23, 2016 at 12:41 pm
, CASE
WHEN [Type] = 1 THEN 26
WHEN [Type] = 2 THEN 27
...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
June 23, 2016 at 11:07 am
You don't need CASE statements.
select *
from tickets
where ticketdate = CAST(DATEADD(HOUR, -6, GETDATE()) AS DATE)
If you have a range that you are trying to fit into another range of the same...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
June 22, 2016 at 12:21 pm
The problem is that you are trying to add a string to a date.
set @SQLQuery = 'SELECT RequestDate, IP, RequestID, CustomerID, LoanID, Ranking FROM ' + @TableName + 'where RequestDate...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
June 21, 2016 at 9:01 am
Luis Cazares (6/20/2016)
An alternative to get both in a single function is to convert them to a string: CONVERT(char(6), yourDateColumn, 112)
I'm not sure...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
June 20, 2016 at 1:20 pm
BrainDonor (6/15/2016)
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
June 15, 2016 at 7:18 am
June 14, 2016 at 9:13 am
Jacob Wilkins (6/13/2016)
SELECT X1,
AllVar
FROM your_table
CROSS APPLY
...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
June 14, 2016 at 8:57 am
pharmkittie (6/11/2016)
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
June 13, 2016 at 9:34 am
After 390+ visits, you should know how to post data to a forum to get the best results. I have a link in my signature if you need a...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
June 13, 2016 at 9:15 am
You have two main options
It helps to understand the issues with triggers so that you can determine whether to use...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
June 11, 2016 at 3:08 pm
Viewing 15 posts - 2,551 through 2,565 (of 4,085 total)