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
Ankit Shukla
NA
681
117.6k
confusion in except and not in keywords
Jul 21 2020 1:43 AM
Hello All,
I am using 2 queries:
1.
select FIR_REG_NUM from t_declare_reward where FIR_REG_NUM not in(Select FIR_REG_NUM from t_arrest_memo)
2.
select FIR_REG_NUM from t_declare_reward
except
select FIR_REG_NUM from t_arrest_memo
2nd query returns some rows, and its right. but I don't understand , why 1st query returns 0 rows.
Output should be come same from both queries.But 1st query gives wrong output.
Please clear.
Thanks in advance.
Reply
Answers (
1
)
sql query for select multiple columns in single column
Time conversion format