TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Akhter HUssain
724
1.3k
101.7k
Common table expression defined but not used.
Jun 9 2020 3:08 AM
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
Reply
Answers (
6
)
Trigger on insert
what is collation error?