ANSI-89 vs ANSI-92

L

Leo Karl

Come to find out that this query:

SELECT first.cname, second.cname, first.rating
FROM Customers AS first, Customers AS second
WHERE first.rating = second.rating;

Will work under ANSI-89, but produces a syntax error when run under ANSI-92.

Can anyone tell me how to code it for running under ANSI-92?

Thanks, Leo
 
J

John Vinson

Come to find out that this query:

SELECT first.cname, second.cname, first.rating
FROM Customers AS first, Customers AS second
WHERE first.rating = second.rating;

Will work under ANSI-89, but produces a syntax error when run under ANSI-92.

Can anyone tell me how to code it for running under ANSI-92?

SELECT first.cname, second.cname, first.rating
FROM Customers AS first INNER JOIN Customers AS second
ON first.rating = second.rating;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top