Viewing 15 posts - 511 through 525 (of 4,820 total)
Try this on for size:WITH LEAVERS AS (
SELECT *,
ROW_NUMBER() OVER(PARTITION BY EmployeeId ORDER BY LeftDate DESC) AS row_num
FROM dbo.Employee AS E
WHERE E.Leaver = 1
)
October 4, 2018 at 7:43 am
This is a duplicate post. Please respond only in the original thread, here:
https://www.sqlservercentral.com/Forums/Dialogs/PostDetails.aspx?PostID=1998574
October 4, 2018 at 6:55 am
I have installed BCP utility in Linux server.
when am executing below command...
October 4, 2018 at 6:52 am
October 4, 2018 at 6:43 am
I get the feeling this has to do with running a part of the script separately, which might be getting treated differently than if it were all in the same...
October 4, 2018 at 6:36 am
The only question worth asking here at the moment is WHY? You are already storing dates as integers and depriving yourself of all kinds of cpu time wasted converting back...
October 4, 2018 at 6:15 am
The answer here might depend on the nature of your manufacturing process and ordering system. Some companies go so far as to record multiple SKUs that represent the same item,...
October 4, 2018 at 6:05 am
October 3, 2018 at 2:42 pm
October 3, 2018 at 2:38 pm
Within SQL Server, you can run a query to check for the existence of a table:IF OBJECT_ID(N'dbo.SomeTable', N'U')
BEGIN
PRINT 'Starting T-SQL actions...'
--Your T-SQL actions go here
END;
October 3, 2018 at 2:23 pm
October 3, 2018 at 2:17 pm
I start asking how large is the table you are inserting...
October 3, 2018 at 6:47 am
October 3, 2018 at 6:29 am
October 2, 2018 at 8:53 am
Viewing 15 posts - 511 through 525 (of 4,820 total)