Viewing 15 posts - 31 through 45 (of 84 total)
August 24, 2018 at 5:54 am
August 24, 2018 at 4:42 am
Yeap.
DECLARE @DateFrom DATE = '2018-01-01';
DECLARE @DateTo DATE = '2018-08-21';
IF OBJECT_ID('tempdb..#ClaimType') IS NOT NULL
DROP TABLE #ClaimType
CREATE TABLE #ClaimType
(
ClaimDescription VARCHAR(255) PRIMARY KEY...
August 24, 2018 at 4:08 am
August 24, 2018 at 2:13 am
Quick question, what does CASE WHEN THEN 1 mean? What's the THEN 1 doing exactly?
August 23, 2018 at 11:28 pm
August 23, 2018 at 7:56 am
August 23, 2018 at 3:42 am
Claim Main Table Sample
CREATE TABLE [Schema.ClaimMain]
(
[PolicyNumber] [int] NULL,
[ClaimNumber] [int] NOT NULL,
[ClaimType] [smallint] NOT NULL,
[CurrentStatus] [smallint] NOT NULL,
[OpeningRegistrationDate] [datetime] NOT...
August 23, 2018 at 3:01 am
August 23, 2018 at 2:34 am
Hi Thom.
I've changed the code to this.
DECLARE @DateFrom DATE = '2018-01-01';
DECLARE @DateTo DATE = '2018-08-21';
SELECT GenPar.ParameterValue AS ClaimType,
COUNT(CASE ClaimMain.CurrentStatus...
August 22, 2018 at 11:41 pm
August 21, 2018 at 10:13 am
August 21, 2018 at 10:12 am
Viewing 15 posts - 31 through 45 (of 84 total)