Getting following error
Msg 422, Level 16, State 4, Line 9
Common table expression defined but not used.
- with vals
- as
- (
- select I_QTY as Iss From tbl_Issuance where I_Type='Issue'
- union all
- select I_QTY as Ret1 From tbl_Issuance where I_Type='Return'
- )
- select Iss - Ret1 as difference

Jignesh KumarPosted Jun 9, 2020, 6:00 AM
Akhter HUssainPosted Jun 9, 2020, 4:08 AM
Akhter HUssainPosted Jun 9, 2020, 4:04 AM
Jignesh KumarPosted Jun 9, 2020, 3:46 AM
Akhter HUssainPosted Jun 9, 2020, 3:37 AM
Jignesh KumarPosted Jun 9, 2020, 3:30 AM