SQL data wash

hi guys,

quite a simple one, I just need to brush up on a little SQL.

Essentially I have two tables in SQL, one called expired_ml and the other one called expired_old.
All I want to do is create a view that has all of the expired_Ml without any of the fields that are the same in expired_old.  This is what I currently have:

SELECT     dbo.ML_Expired_db.*
FROM         dbo.[expired old] INNER JOIN
                      dbo.ML_Expired_db ON dbo.[expired old].Company = dbo.ML_Expired_db.Company

which obviously picks  up the common ones, I want the uncommon ones from ML-Expired_db

thank you for your help!!
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Anthony PerkinsCommented:
Something like this:
FROM    dbo.ML_Expired_db e
        LEFT JOIN dbo.[expired old] o ON e.Company = o.Company
WHERE   o.Company IS NULL

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
maverickauAuthor Commented:
perfect!!! thank you.  been a couple of years since I have had to play in SQL much!  you are a legend!
maverickauAuthor Commented:
thank you!  so quick to respond as well!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2008

From novice to tech pro — start learning today.