ms sql nested query required

I have 3 tables:


Two columns: id(identity say 1) ,fullname (John Robert Smith)

I have parsed the
fullname into tableB
Two Colums
(id and name)
1 John
1 Robert
1 smith

I have a third table TableC
same structure as TableB.. but some names in TableB are not in TableC

This query will run properly . No problem
select * from tableB left join tableC on where is null

I need a queryi like this

Select id, name,(select * from tableB left join tableC on where is null) from TableA  where

so I can  see not only the missing word but the record (tableA) where I can find it.

The query sends an error:

Msg 116, Level 16, State 1, Line 1
Only one expression can be specified in the select list when the subquery is not introduced with EXISTS.

Say TableC does not have the name Robert

I need to see this outppot

1 Robert   John Robert Smith

Any ideas?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

Alexandre SimõesManager / Technology SpecialistCommented:
Hi mate,

here's your query:
Select tbA.ID, tbA.FullName, tbB.Name as MissingName
from TableA tbA
left join TableB tbB on tbA.Id =
left join TableC tbC on = and tbB.Name = tbC.Name
where is null

Open in new window

Here's a SQLFiddle of your scenario

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
Alexandre SimõesManager / Technology SpecialistCommented:
Just a small remark... Why did you put this under the JavaScript category?
robrodpProgrammerAuthor Commented:
Sorry a mistake
Alexandre SimõesManager / Technology SpecialistCommented:
No problem.

What about the query, Is that what you need?

robrodpProgrammerAuthor Commented:
Sorry I dind't use the right category
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

From novice to tech pro — start learning today.