Viewing 14 posts - 1 through 14 (of 14 total)
Further clarification; not all staff records are missing dates, the ones are missing dates are the ones that need a date from table 2.
So if i query staff attendance...
December 15, 2016 at 11:13 am
Table 1 Staff
SELECT [SECTION_GU]
,[ORGANIZATION_NAME]
,[SECTION_ID]
,[COURSE_ID]
,[COURSE_TITLE]
...
December 15, 2016 at 11:00 am
Thank you for the answers posted. I am a bit new on scripting Cursors so i was wondering how to use a character for field terminator instead of a comma,...
July 19, 2016 at 10:18 am
No, different tables
July 18, 2016 at 9:21 pm
The table has 67404675, i need to keep 180 days, I calculated about 10,000000 for a year.
May 24, 2016 at 4:51 pm
Thank you for your quickly reply. So just to confirm the entire script would look like this, right?. Thanks again
DECLARE @days2keep INT
SET @days2keep =180
while @@ROWCOUNT > 0
begin
delete top 10000
FROM...
May 23, 2016 at 2:34 pm
Thanks Stooky for you assistance. Yes i do have other fields. i did add them individually in both select statements below but when i do it, it doesn't recognize the...
April 16, 2015 at 2:43 pm
i may have spoken too soon. when i added new records with more than 4 violations i got duplicates on one id, see attached
;WITH VW_ILLDISC1_Numbered AS
(
SELECT *,ROW_NUMBER() OVER(PARTITION BY [Participant...
April 16, 2015 at 12:52 pm
Hi i may have spoken too soon. When i introduced more records that have more than 4 violations i get duplicate ids one of them see attached
;WITH VW_ILLDISC1_Numbered AS
(
SELECT *,ROW_NUMBER()...
April 16, 2015 at 12:50 pm
THANK YOU!!! Yes the second option is the one i needed and it worked. Thanks
April 16, 2015 at 9:12 am
like this:
Id Incident IDincident1incident2incident3incident4
2853459 140 511
2861733 118 ...
April 15, 2015 at 3:02 pm
sorry i am new on this forum and got trigger happy. I need each id with uniqe incident id on onerow with each incident across. i did try a pivot...
April 15, 2015 at 2:57 pm
Viewing 14 posts - 1 through 14 (of 14 total)