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
Answer / rao
generally if n tables will n-1 joins
here 4 tables 3joins
| Is This Answer Correct ? | 8 Yes | 2 No |
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 |
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 |
Answer / rao
generally if n tables will n-1 joins
here 4 tables 3joins
| Is This Answer Correct ? | 3 Yes | 2 No |
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 |
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 |
What can you do with pl sql?
Write a pl/sql script to display the following series of numbers: 99,96,93……9,6,3?
How to prepare for oracle pl sql certification?
Can you upgrade sql express to full sql?
Is a secondary key the same as a foreign key?
In a table only one column how to update rows
What are sql data types?
What are the different operators available in sql?
what is difference between procedure and function
10 Answers MCN Solutions, Wipro,
How to select the Nth maximum salary from Table Emp in Oracle SQL Plus ?
Is vs as in pl sql?
Suppose I have to create a view on a table, that is not yet been created by DBA. I khow the table structure. Is it possible to create the view before DBA creates this table? If yes then how? Is it possible to create synonym in this way?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)