Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help with subquery

Status
Not open for further replies.

mcf15

IS-IT--Management
Dec 5, 2012
4
US
Hello.

I have 2 tables: dbo.threeleveldirs and tbluserhomeonlychksums
I need get data from the dbo.threeleveldirs table where dbo.threeleveldirs.checksum = tbluserhomeonlychksums.checksum. I tried several ways but no luck. Below is the latest query. The query doesn't return any records.



select C.CHECKSUM, C.HOSTNAME
from dbo.threeleveldirs C INNER JOIN
(select dbo.tbluserhomeonlychksums.CHECKSUM
from dbo.tbluserhomeonlychksums) AS CS
on C.CHECKSUM = CS.CHECKSUM;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top