Viewing 15 posts - 1 through 15 (of 897 total)
February 1, 2018 at 11:14 pm
Not sure why that would give an error.
But there are a few things other than that which will give your errors.
I also checked your other post out...
July 26, 2017 at 5:53 am
Any specific reason as to why you want to do it in 2 steps when you can do it in a single step as shown by Drew?
July 26, 2017 at 5:15 am
This should helpSELECT [Dept#],
MAX( CASE WHEN TransCode = 'wetwear' THEN 'wetwear' ELSE NULL END ) ColName1,
SUM(...
July 17, 2017 at 6:07 am
This is where the PIVOT operator becomes painful to use. CROSS-TAB's are easier to use and understand is such cases.
USE [tempdb];
GO
CREATE TABLE PersonAddress
July 3, 2017 at 12:22 am
Duplicate post.
https://www.sqlservercentral.com/Forums/1876106/get-missing-dates-differencedays-and-fill-previous-dates-data-in-sql-server
May 15, 2017 at 2:44 am
SELECT di.date, ord.orderid, DATEDIFF( DAY, ord.orderdate, di.date ) missingdays, ord.cost
FROM [dbo].[dateinfo] di
CROSS APPLY (
SELECT TOP...
May 15, 2017 at 1:44 am
Viewing 15 posts - 1 through 15 (of 897 total)