1 SELECT a.field1, b.field2, c.field3, d.field4
2 FROM atable a, atable b, ctable c, dtable d
3 ?
4 ORDER BY 1

What is the minimum number of joins that must be specified
on line 3 in the sample code above to properly link the
tables? Notice that the table "atable" is aliased twice:
once as "a" and once as "b."

1. One join
2. Two joins
3. Three joins
4. Four joins
5. Five joins

Answer Posted / rao

generally if n tables will n-1 joins
here 4 tables 3joins

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is rownum?

530


how to use myisamchk to check or repair myisam tables? : Sql dba

500


Are ddl triggers fired for ddl statements within a pl/sql code executed using the dbms.sql package?

609


How do I turn a list into a table?

502


How does a trigger work?

531






How would you reference column values before and after you have inserted and deleted triggers?

616


What is sql*loader and what is it used for? : aql loader

610


What is the sql query to display the current date?

544


Why is the cursor important?

527


Explain what is a database?

641


How do you delete duplicates in sql query using rowid?

531


What is pl sql block in dbms?

522


How to get list of all tables from a database?

620


Can we create a trigger on view?

479


What is the main difference between sql and pl/sql?

558