General information
Forum:
Microsoft SQL Server
Title:
Multiple fields in Subquery
Environment versions
SQL Server:
SQL Server 2005
Hey all!
I'm trying to do something simple. I'd like to match 2 fields on a subquery.
Is this possible?
Select * from TopTable
toptable.number, toptable.date IN
(select table2.bill_number, table2.service_date from table1
inner join table2
on table1.facID = table2.facID
and table1.billingID = table2.billingID)
If I run the sub query by itself..it works fine.
I'm just not sure if you can match the fields this way.
thanks,
Dan
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only