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 KumarRank #91 · 22.9K reputationPosted Jun 9, 2020, 2:00 AM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Jun 8, 2020, 11:30 PM EDT
Akhter HUssainRank #1,521 · 1K reputationPosted Jun 8, 2020, 11:37 PM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Jun 8, 2020, 11:46 PM EDT
Akhter HUssainRank #1,521 · 1K reputationPosted Jun 9, 2020, 12:04 AM EDT
Akhter HUssainRank #1,521 · 1K reputationPosted Jun 9, 2020, 12:08 AM EDT