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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

want a nested query

Status
Not open for further replies.

sangi

Programmer
Aug 8, 2002
1
US
hello,
iam in need of a nested query.
i have nearly 6 tables which have a field called "purchasenumber".
all the tables have the same field name and its the form of
"A/THI/001"
i want to find the maximum number from all the tables
plz do help me
bye
sangi
 


I think you could use nested queries - but they normally hurt my head.

Look into union queries.

select purchasenumber
from table1

union select purchasenumber
from table2

union select purchasenumber
from table3


Stew
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top