Viewing 11 posts - 1 through 11 (of 11 total)
Thanks GilaMonster, can you also confirm if it will capture variable values? When capturing queries in the QueryData table they seem to start like (@P1 nvarchar(4000), @P2 nvarchar(4000),... And then...
April 17, 2018 at 3:57 am
I agree it is bizarre but it is the way the script currently works and they do not wish to change it.
July 3, 2015 at 3:22 am
I would need it to show as below
12015-07-01 07:00:00.000NULLNULL
22015-07-01 09:00:00.0002015-07-01 09:30:00.0002015-07-01 10:00:00.000
32015-07-01 06:00:00.0002015-07-01 06:45:00.000NULL
42015-07-01 04:00:00.0002015-07-01 05:00:00.0002015-07-01 06:00:00.000
42015-07-01 04:00:00.0002015-07-01 05:00:00.0002015-07-02 06:00:00.000
Does anyone have any ideas?
Thanks
Sam
July 2, 2015 at 10:31 am
Thank you all for the suggestion, however If I was to run the following
INSERT INTO #Data
VALUES
(4,'Got Dressed','2015-07-02 06:00:00.000')
And then run my query, It would show me two entries for PersonID...
July 2, 2015 at 6:43 am
Thanks for all your help. The issue is that it is using a view that pulls from multiple tables and it does bring back some duplicates.
I am not even sure...
May 1, 2015 at 9:46 am
Hi
I amended your idea and came up with the following.
WITH Course
AS ( SELECT RandomId,
...
May 1, 2015 at 9:41 am
I have another similar one if anyone can help.
CREATE TABLE #Courses (RandomID INT, PersonID INT, CourseTitle NVARCHAR(200), CourseDate DATETIME)
INSERT INTO #Courses
VALUES
(1,1,'Maths','2015-05-01 15:30'),
(2,1,'Science','2015-05-01 15:30'),
(3,1,'Science','2015-05-01 15:30'),
(4,1,'Science','2015-06-01 15:30'),
(5,1,'Maths','2015-04-01 15:30'),
(6,2,'Science','2015-05-01 15:30'),
(7,3,'Science','2015-05-01 15:30'),
(8,4,'Science','2015-05-01 15:30'),
(9,5,'Science','2015-05-01 15:30'),
(10,6,'Science','2015-05-01...
May 1, 2015 at 9:20 am
Hi Kevaburg
No it does not.
Sam
March 10, 2015 at 5:55 am
Hi COldCoffee
That code works brilliantly.
Thanks for all your help!
April 8, 2010 at 6:03 am
Viewing 11 posts - 1 through 11 (of 11 total)