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

Correct SQL Syntax - which one ?

Status
Not open for further replies.

karlomutschler

Programmer
Jun 5, 2001
75
DE
Hi,
which one of the following is correct ?

sel *
from contract con
JOIN customer cus ON con.customer_id = cus.customer_id

OR

sel *
from contract con
JOIN customer cus ON cus.customer_id = con.customer_id

TIA
Kind regards
Karlo
 
Actually, either Select statement should work - at least they would in MS SQL Server. In other words...

Select * From ta join tb On ta.ID=tb.ID

is equivalent to

Select * From ta join tb On tb.ID=ta.ID
Terry

The reason why worry kills more people than work is that more people worry than work. - Robert Frost
 
for compatibility with some other databases is better to write also what kind of join, inner, outer(right or left), full. John Fill
1c.bmp


ivfmd@mail.md
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top