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

Using Aliases to shorten stuff

Status
Not open for further replies.

mdweezer

Technical User
Jun 15, 2004
56
US
How do I go about creating Aliases to shorten the length of stuff in a SQL query?

Thanks
 
Hi,
Code:
Select A.Field1, B.Field2...
From MyTable1 A, MyTable2 B
Where A.FieldA=B.FieldA...
Is this what you meant?

Skip,

Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
It might be... I will give that syntax a try
 
I normally try to use something a bit more descriptive like
Code:
Select MAT.Field1, ORD.Field2...
From Material MAT, Orders ORD
Where MAT.FieldA=ORD.FieldA...


Skip,

Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top