Viewing 15 posts - 2,791 through 2,805 (of 4,085 total)
marc.persiau (3/3/2016)
indicating a car still in use is 1900-01-01 (no date)
It is a BAD IDEA to use a PAST date to represent an unknown FUTURE date. You're much better...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
March 3, 2016 at 2:04 pm
Sergiy (3/1/2016)
Here I used a Tally table with sequential numbers from...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
March 3, 2016 at 1:52 pm
oneteabag (3/2/2016)
So the question is : would I create one SSIS with 4000 line of SQL code or I...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
March 2, 2016 at 2:53 pm
SQLisAwE5OmE (3/1/2016)
drew.allen (3/1/2016)
If this is a third party app, writing a trigger on the table will almost certainly invalidate any maintenance agreement that you have with them.Drew
Hmm....don't really agree....I'm not...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
March 2, 2016 at 8:15 am
If this is a third party app, writing a trigger on the table will almost certainly invalidate any maintenance agreement that you have with them.
Drew
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
March 1, 2016 at 1:57 pm
Based on the UDF in your Biograph_Master_UDF, I'm assuming that this is a user-defined function that returns a table. Computed columns can only call user-defined functions that return a...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
March 1, 2016 at 1:46 pm
TomThomson (2/27/2016)
Jack Corbett (2/27/2016)
Ed Wagner (2/27/2016)
Having recently been on the interviewing end of dealing with recruiters I can say that modifying a resume is a common practice. ...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
February 29, 2016 at 11:47 am
The first thing I notice is that you are calculating two ROW_NUMBERs that you never use.
You also have unbalanced parentheses.
If you want any more than that, I suggest that you...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
February 26, 2016 at 7:34 am
This also performs well. I thought it would perform better than Gianluca's, because it doesn't need the RANK, but the plan seems to think that they have the same...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
February 25, 2016 at 8:17 am
SQLisAwE5OmE (2/24/2016)
This query gives me the exact 49...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
February 24, 2016 at 10:03 am
This sounds poorly thought out. Why would you want to arbitrarily change the breed of a dog?
That being said, I came up with something using NTILE() which splits a...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
February 23, 2016 at 3:36 pm
sharonsql2013 (2/23/2016)
Jan 2016 (2016-01-31 23:59:59.000)
, Dec 2015
and Nov. 2015
Need to be dynamic as it will change with...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
February 23, 2016 at 2:58 pm
Based on what you've given us:
1) Your procedure is missing quotes.
2) Why are you using dynamic SQL when your queries are static?
If that isn't the issue, I suggest that you...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
February 17, 2016 at 2:39 pm
Use GROUPING SETS. Using GROUP BY with ROLLUP, CUBE, and GROUPING SETS
SELECT Level1, Level2
, COUNT(CASE WHEN Result = 'PASS' THEN 1 ELSE 0...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
February 17, 2016 at 8:32 am
I did a quick comparison of Eirikur's and my methods. Here are the results:
1) Eirikur's method shorts the first row, because he starts with 1 rather than 0.
2)...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
February 16, 2016 at 1:25 pm
Viewing 15 posts - 2,791 through 2,805 (of 4,085 total)