Viewing 15 posts - 466 through 480 (of 2,458 total)
In Visual Studio:
1. Create an SSRS table with columns for surgical procedure & surgery date.
2. Click on that table then, under Row Groups, right-click on the "=(details)" group and...
September 14, 2016 at 10:33 am
Why not just create a table that contains the column names of <mytable> and their ordinal position. You could name it <mytable>_cols. Then use some logic in your dynamic SQL...
September 13, 2016 at 8:16 pm
I think that this is what you are looking for:
-- Sample data
IF OBJECT_ID('tempdb..#YourData') IS NOT NULL DROP TABLE #YourData;
SELECT *
INTO #YourData
FROM
(VALUES
('162386-00','CHB',263,203,143,83,23,0,0),('162386-00','GRR',44,44,44,44,44,44,44),
('162386-00','MAR',0,0,0,0,0,0,0),('162387-00','CHB',83,83,83,83,83,83,83),
...
September 13, 2016 at 9:48 am
EasyBoy (9/13/2016)
September 13, 2016 at 9:23 am
TheSQLGuru (9/12/2016)
ROWS is (almost ?) ALWAYS offers MUCH better performance than RANGE! Try your best to use ROWS when possible.
I don't know about ALWAYS. I said ROWS "often" (and could...
September 12, 2016 at 3:14 pm
You beat me to it. Note that ROWS often performs better than range and can be used to calculate your HQuantity. Also note that the subquery is not required, you...
September 12, 2016 at 10:32 am
chris.evans 94907 (9/12/2016)
Thanks for the reply.
The script you provided returns the following results:
calDate ...
September 12, 2016 at 8:36 am
My advice to managers is always to keep up with technology and maintain their technical skills.
Since getting into technology in 1999 I've worked for two types of bosses:
1. Those...
September 12, 2016 at 8:23 am
The Dixie Flatline (9/9/2016)
Alan.B (9/9/2016)
I just spent 5 minutes trying to figure out whey this INSERT statement was failing"Whey" is the second hint. Have a great weekend 😀
You...
September 9, 2016 at 3:08 pm
Ed Wagner (9/9/2016)
Alan.B (9/9/2016)
Haha, silly American! I think "06/09/2016 " is September 6th where the OP is from. 😛
Touche, sir. I never thought to check the profile to see...
September 9, 2016 at 2:14 pm
I just spent 5 minutes trying to figure out whey this INSERT statement was failing:
CREATE TABLE dbo.MyTable
(
SocialAdvertisingDimAdKey int IDENTITY(1,1) NOT NULL,
...
September 9, 2016 at 2:10 pm
hegdesuchi (9/9/2016)
Hi,OPENXML works fine if all have single parent node.
But I might want columns for different nodes. Do we have any option?
Thanks
Post a sample of the XML you're working...
September 9, 2016 at 10:11 am
Ed Wagner (9/9/2016)
chris.evans 94907 (9/9/2016)
Following on from this, I'm looking to add a DATEDIFF calculation between today's date 'GETDATE()' and each individual date but only where the Working Day...
September 9, 2016 at 8:52 am
OPENXML should work just fine for this task.
September 9, 2016 at 7:55 am
Here's some sample data and an example of how to use LAG to get you started.
DECLARE @sometable table (ID int, DeviceID int, Value decimal(8,1), DT datetime);
INSERT @sometable
VALUES
(22, 4, 23.6,...
September 8, 2016 at 2:18 pm
Viewing 15 posts - 466 through 480 (of 2,458 total)