CH 2B- Introduction to Structured Query Language Flashcards

1
Q

techniques for querying data from multiple tables

A

– The SQL subquery

– The SQL join

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

SQL subquery

A

– A nested query
– A query within a query

*only the columns of the top level query can be displayed in the query results!

  • Multiple subqueries can be used to process three or even more tables.
  • All parts if the SQL SELECT statement syntax can be applied to the table displaying the results of an SQL query using subqueries.

**can only be used to retrieve data from
the “top table.”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

SQL join operation

A

used to combine parts or all of two or more tables.

a) Explicit join ─ the SQL JOIN operator is used as part
of the SQL statement.

b)Implicit join ─ the SQL JOIN operator is not used as
part of the SQL statement.

**can be used to obtain data from any number
of tables, including the “top table” of the subquery.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

SQL CROSS JOIN

A

-combines each row in one table with every row in another table.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Implicit SQL INNER JOIN

A

-selecting rows by matching by the primary key values
of one table with the foreign key values of a second table.

does not appear in the SQL statement, this is an implicit join.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Explicit SQL INNER JOIN

A

Selecting rows by matching by the primary key values of one table with the foreign key values of a second table

*does appear in the SQL statement,
this is an explicit join.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

SQL ALL Keyword

A

-wanted the duplicated rows to be displayed in the query output

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

SQL INTERSECT Operator

A

-In both

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

SQL EXCEPT Operator

A

-Excluding one option

How well did you know this?
1
Not at all
2
3
4
5
Perfectly