Requesting help with creating an SQL query to select similar records

This is a little hard to explain but I will do my best.  I need to write/update the example query below  so that it will return the records requested, but also return records based on what was returned. In my example below, two records are returned with "carnumber 55". I want to show those 2 records, but also any other records with the same "carname". In my example below, 3 additional records are displayed because they have the same car name as those returned from the original query. Can someone assist?

Select id, carnumber, carname
from tblOne 
where carnumber = 55

What I want returned from the new query

id   |   carnumber   |   carname
1    |      55       |   bobs car
5    |      55       |   johns car
7    |      88       |   bobs car
8    |      77       |   bobs car
21   |      97       |   johns car

Open in new window

earwig75Asked:
Who is Participating?

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

x
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.

Muhammad BurhanManager I.T.Commented:
try this
select * from table01
where carname = 'bobs car'
order by carnumber
0
earwig75Author Commented:
@muhammad, I will not have the carname in my query, I will only have the carnumber, that's why I need to use the results from the initial query to get the carname.
0
Scott PletcherSenior DBACommented:
Select id, carnumber, carname
from tblOne
where carname in (select carname from tblOne where carnumber = 55)
0

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
earwig75Author Commented:
Thank you!
0
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
Query Syntax

From novice to tech pro — start learning today.