Viewing 15 posts - 1 through 15 (of 394 total)
You can add as many CROSS APPLYs as you need. If this is no good, post a more accurate example of your data.
SELECT S.ID, S.Row_Desc,...
January 10, 2019 at 10:38 am
This will work.
You can add extra CROSS APPLYs if needed...
USE [tempdb]
GO
CREATE TABLE [Source]
(
ID Int,
Row_Desc Char(1),
Row_No Int,
January 10, 2019 at 8:38 am
Try this:
DROP TABLE #TEST
CREATE TABLE #TEST ( Account Varchar(20), [Address] Varchar(50) )
INSERT INTO #TEST
VALUES
( 'Acme', '123 Acme Rd' ),
(...
November 1, 2018 at 8:38 am
UPDATE T SET T.Amount = CASE
WHEN T.[Type] = 'T' AND t.Period = 'Q' AND [Month] IN ( 3, 6, 9, 12 ) THEN ((T.Amount *...
October 29, 2018 at 6:04 am
Hi
How are you doing with this?
There is no obvious reason for the sequencing you show: