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

Retrieve unique field in all tables

Status
Not open for further replies.

babeo

Technical User
Mar 30, 2000
398
CA
how to check all records of a unique field that located in any table of a database, eg
I have a field named "Johna" in all table a, table b, table f of database customer. It means in the out put of querying data, I should see something like this:

namealias table date otherfieldx
--------- ----- ---- -----------
Johna tablea Jan 1, 01 xxxx
Johna tableb Feb 15, 01 xxxxxx
Johna tablef Feb 20, 01 xx

Notes: I have tried with "datepart(datetime, namealias)", but getting error of "unknown field name namealias..."

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top