Number Query

kappa

Registered User.
Local time
Tomorrow, 09:44
Joined
May 11, 2005
Messages
21
Hi All,
I am trying to perform a query on two tables, with the result being a Dept Name & Dept Number. One table consists of an Index Number & Dept Name, the other table has Dept Number. The index Numbers & Names 14 thru 37 in first table correspond to Dept Numbers 1 thru 24 in second table.
Sorry if this is an easy one..

Thanks in advance :)

Kappa
 
SELECT DISTINCT [Table1].[Dept Name], [Table2].[Dept Number]
FROM [Table1], [Table2]
WHERE ([Table1].[Index Number]-13)=[Table2].[Dept Number]
.
 
Thanks Jon K,
Worked like a treat... :cool:
 

Users who are viewing this thread

Back
Top Bottom