Viewing 15 posts - 2,311 through 2,325 (of 4,085 total)
I found another version. It's slower on this small dataset, but I think it will run faster on a larger dataset, because it contains one fewer sort.
WITH play_events AS...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 4, 2016 at 9:06 am
If you know it's only ever going to be one letter, you don't need the comma if you go that route. Personally, I'd go with the table variable.
Drew
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 4, 2016 at 8:16 am
jcarranza 23978 (10/3/2016)
The column name is photo and is an nvarchar(50). It will contain...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 3, 2016 at 1:55 pm
Since someone else recently asked that very same question, it sounds like homework.
Drew
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 3, 2016 at 1:40 pm
Alan.B (10/3/2016)
Here's a couple examples:
DECLARE @myv VARCHAR(MAX) = 'AB,CD,EF,GH,IJ';
SELECT...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 3, 2016 at 1:05 pm
Okay, we run our dataloads through a third party software that takes a config file with the processes to run and any parameters required for procedures. One of the...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 3, 2016 at 12:49 pm
You can also improve your function by adding the WITH SCHEMABINDING option. Even though you're not using any physical tables, SQL checks whether the underlying tables have changed if...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 3, 2016 at 9:25 am
I don't know which is scarier: that the OP never considered simply adding the columns or that the OP needs to test to determine whether it would work?
Drew
http://www.sqlservercentral.com/Forums/Topic1821068-3740-2.aspx
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 3, 2016 at 9:08 am
I would think that you would want to partition by the game ID. Presumably, the games are treated separately, and partitioning by the game ID would accomplish this.
Drew
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 3, 2016 at 8:34 am
You're overengineering this. Simply ADD the columns
SET Col10 = Col6 + Col7 + Col8 + Col 9
Drew
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
October 3, 2016 at 8:10 am
I believe it falls under "Limited by available resources."
Drew
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
September 30, 2016 at 1:46 pm
As a clarification. ETL stand for "Extract/Transform/Load". It sounds like you are skipping the Transform part of ETL.
Drew
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
September 30, 2016 at 12:28 pm
thomashohner (9/30/2016)
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
September 30, 2016 at 12:23 pm
xr280xr (9/29/2016)
DELETE FROM tbl_a
WHERE [some additional criteria]
AND (DeleteAsap = 1...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
September 29, 2016 at 3:58 pm
There are two variants of the CASE expression: the simple CASE expression and the searched CASE expression. You are mixing the two.
When using the simple CASE expression, the comparison...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
September 29, 2016 at 3:42 pm
Viewing 15 posts - 2,311 through 2,325 (of 4,085 total)