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
venkat
NA
138
51.4k
Not matched records in sql using joins
Aug 29 2018 5:38 AM
Hi all ,
Below i have two tables , 1st table contain 12 records and second one contain 8 records. now i need to get remain 4 records only not with 8 records using joins in sql. i have tried below query but still am not getting .please help on this
Select DISTINCT it.ShapeName,it.Intervalyear,it.IntervalMonth from @yearTable yt
left JOIN @IntervalTable it on yt.NumDays=it.IntervalNumDays
where it.Intervalyear is null and it.IntervalNumDays='2018'
Reply
Answers (
6
)
Insert multiple rows against a single primary key
Recover data without begin tran