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 / sss

We need minimum of n-1 joins to join n tables.
here 3 tables are there.
so we need minimum of 2 joins to join the 3 tables

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a Mapplet?

630


What are its different types of dbms?

511


how to run 'mysql' commands from a batch file? : Sql dba

595


What is sqlcommand?

531


What is database migration?

493






What is package in pl sql?

551


How do you define a foreign key?

504


What is memory optimized table?

550


What will you get by the cursor attribute sql%found?

512


Why stored procedure is better than query?

485


how to get @@error and @@rowcount at the same time? : Sql dba

507


how many values can the set function of mysql take? : Sql dba

510


What is schema in sql?

493


How do you write a complex sql query?

560


What jobs use sql?

502