I am trying to get Supply Field in the Select Statement to read as Logical Field, so that it can get into the Sample.dbo.2009_PharmacyData
Getting this message Msg 245, Level 16, State 1, Line 1
Conversion failed when converting the varchar value 'N' to data type bit.
INSERT Sample.dbo.PharmacyData(MemId,PDaySup,Supply,PrServDate, PDiscIng, PDisR,PDispFee,PAdmFee,PMemberCo,TotalCost,NDC,
Clmstat,MetricQNTY)
Select (LTRIM(RTRIM([Family ID]))+Suffix) As MemID,[Days Supply] As PDaySup,
Case When [Generic CD] = 0 Then 'Y' ELSE 'N'END AS Supply,
Getting this message Msg 245, Level 16, State 1, Line 1
Conversion failed when converting the varchar value 'N' to data type bit.
INSERT Sample.dbo.PharmacyData(MemId,PDaySup,Supply,PrServDate, PDiscIng, PDisR,PDispFee,PAdmFee,PMemberCo,TotalCost,NDC,
Clmstat,MetricQNTY)
Select (LTRIM(RTRIM([Family ID]))+Suffix) As MemID,[Days Supply] As PDaySup,
Case When [Generic CD] = 0 Then 'Y' ELSE 'N'END AS Supply,