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

Answers were Sorted based on User's Feedback



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

Answer / rao

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

Is This Answer Correct ?    8 Yes 2 No

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

Answer / arata kumar pattanaik

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
generally if n tables will n-1 joins
here 4 tables 3joins

Is This Answer Correct ?    2 Yes 0 No

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

Answer / mohan

There should be Three joins in where clause. no point of that the table "atable" is aliased twice. It will treat as two separate tables....

Is This Answer Correct ?    2 Yes 0 No

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

Answer / rao

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

Is This Answer Correct ?    3 Yes 2 No

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

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

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

Answer / satya

HERE WE HAVE TOTAL NO. OF TABLE IS 3 SO NO. OF JOIN REQUIRE
IS 2







Thanks
satya
+919916174212

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More SQL PLSQL Interview Questions

HOW CAN I FIND MAX SAL ,ENAME FROM EMP TABLE.

16 Answers  


What are the different types of triggers?

0 Answers  


how to findout the 100th maximum salary

28 Answers   Amdocs,


Explain ttitle and btitle.

0 Answers  


What is the difference between microsoft access and sql server?

0 Answers  






how to debugg a procedure or package using dbms_output.put_line in plsql

1 Answers   Polaris,


What is the criteria while applying index to any column on any table.

1 Answers   Infogain,


what is the syntax used for partition in tsql? : Transact sql

0 Answers  


What are the advantages of sql?

0 Answers  


What is forward declaration in pl sql?

0 Answers  


Hi how to import oracle sequence in Informatica? Please write stored procedure code that will import oracle sequence in Informatica SP transformation as per below scenario Oracle table product list Pro_id, pro_name 101, LED Lights. 102, 20watt CFL Lights. 103, 30 watt CFL lights Now a new flat file with new product list needs to be added to oracle table product list with oracle sequence. flat file product Prono,pro_name, 1, 20 watt tube light 2, 30 watt tube light & target should be like 101, LED Lights. 102, 20watt CFL Lights. 103, 30 watt CFL lights. 104, 20 watt tube light 105, 30 watt tube light thks reg suvarna joshi suvarnaatsuvarna@rediffmail.com

0 Answers   TCS,


What view means?

0 Answers  


Categories