0% found this document useful (0 votes)
16 views4 pages

Cec005-Cec41s4 SQL2 Manapao

Uploaded by

Pak Ganern
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views4 pages

Cec005-Cec41s4 SQL2 Manapao

Uploaded by

Pak Ganern
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Diploma in SQL: Beginner to Advanced Levels

Comprehensive Understanding of Joins and their Types

Quiz Result

Quiz Completion Time : 00:04:16

Wrong/Skipped

Right Answer

Your Score : 100%

Passing Score : 50%

Your Strong Areas:

Lesson - Introduction to Joins & Its Types Part 1

Lesson - Introduction to Joins & Its Types Part 2

Lesson - Lab Session on Joins Part 1

Lesson - Lab Session on Joins Part 2

1. Which SQL join gives both matched and unmatched rows of data?

Your Answer : OUTER JOIN

Description : When discussing unmatched rows being included along with matched rows, the OUTER
JOIN, either LEFT or RIGHT, fulfills this criterion by including all rows from at least one table along with

Page 1 of 4
matching rows from the other table.

Question Reference From : Introduction to Joins & Its Types Part 2

2. What is a "CROSS JOIN" in SQL?

Your Answer : A join that creates the cartesian product of two tables.

Description : A CROSS JOIN in SQL combines all rows from one table with all rows from another table,
creating the Cartesian product. It does not consider any matching conditions and results in a combined set
containing every possible combination of rows between the tables.

Question Reference From : Introduction to Joins & Its Types Part 2

3. In SQL Self Join, a table is joined to itself.

Your Answer : True

Description : In SQL Self Join, a table is joined to itself. This means each row of the table is joined with itself
and all other rows concerning stated conditions if any. In other words, we can say that it is a merge between
two copies of the same table. This is extremely helpful when the foreign key references the primary key of
the same table.

Question Reference From : Introduction to Joins & Its Types Part 1

4. Which field is responsible for linking two tables in a relational database?

Your Answer : Foreign Key

Description : In a relational database, the Foreign Key is a field or set of fields in one table that uniquely
identifies a record in another table, establishing a relationship between the tables.

Question Reference From : Introduction to Joins & Its Types Part 1

5. Outer joins always result in a reduced number of rows compared to inner joins.

Your Answer : False

Description : In an outer join, rows that do not have matching values in the joined columns are still
included in the result set, along with the matched rows. As a result, the number of rows in the output of an
outer join could be greater than or equal to the number of rows in the original tables, depending on the
specific join conditions and data present.

Question Reference From : Introduction to Joins & Its Types Part 2

6. Large databases are often prone to data ___________.

Your Answer : Redundancy

Description : Large databases can suffer from data redundancy, which refers to the unnecessary repetition
or duplication of data, potentially leading to inefficiencies, storage issues, and inconsistencies within the

Page 2 of 4
database.

Question Reference From : Introduction to Joins & Its Types Part 1

7. What is the primary purpose of using the SQL JOIN statement?

Your Answer : To combine data from two or more tables

Description : The primary purpose of the SQL JOIN statement is to merge or combine data from multiple
tables based on a related column between them, producing a unified result set.

Question Reference From : Introduction to Joins & Its Types Part 1

8. When might you use a "CROSS JOIN" intentionally, and what should you consider when using it?

Your Answer : Use a CROSS JOIN carefully, as it can lead to large result sets and performance
issues.

Description : A CROSS JOIN is used intentionally when you want to create a Cartesian product or combine
rows without specific matching conditions. However, caution is necessary as it can generate excessively
large result sets, impacting performance, and should be used judiciously to avoid unintended
consequences.

Question Reference From : Introduction to Joins & Its Types Part 2

9. When is a SQL SELF JOIN used?

Your Answer : When retrieving data from a single table

Description : A SQL SELF JOIN is used to combine rows from the same table based on a related column
within that table. It's employed when data needs to be correlated or compared within a single table.

Question Reference From : Introduction to Joins & Its Types Part 1

10. Which statement is used to join two or more tables in a JOIN condition?

Your Answer : SELECT

Description : The SELECT statement in SQL is used to retrieve data from one or more tables. When joining
tables, the SELECT statement is accompanied by the JOIN clause to specify the tables and conditions for
combining their data.

Question Reference From : Introduction to Joins & Its Types Part 1

Page 3 of 4
Page 4 of 4

You might also like