Deck 9: Joining Data From Multiple Tables

ملء الشاشة (f)
exit full mode
سؤال
The USING clause must be used with the JOIN keyword when linking tables that do not contain a commonly named column.​
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
An outer join operator can be included in a FROM clause to list all rows from one table that do not have a corresponding row in the other table.​
سؤال
If a Cartesian join is used to link table A which contains two rows to table B which contains eight rows,there will be sixteen rows in the results.​
سؤال
​Data stored in multiple tables can be combined through the use of an ORDER BY clause.
سؤال
An outer join only lists rows that contain a match in both tables.​
سؤال
A table alias is assigned to a table in the WHERE clause.​
سؤال
Column qualifiers must be included in the WHERE clause if the columns used to join the tables have the same column names.​
سؤال
A Cartesian join usually results from the user omitting the joining condition that links two or more tables together.​
سؤال
The JOIN keyword is used in the WHERE clause to indicate the tables that should be joined or linked.
سؤال
The NATURAL JOIN keywords can be used to link two tables that have a commonly named and defined column.​
سؤال
When a self-join is created,each copy of the table must be assigned a table alias.​
سؤال
A column qualifier is used to indicate the table containing the column being referenced.​
سؤال
A column qualifier is separated from the column name with a colon.​
سؤال
If a Cartesian join is used to link table A which contains five rows to table B which contains eight rows,there will be 13 rows in the results.​
سؤال
A table alias can be assigned in the FROM clause,even when tables are being joined using the NATURAL JOIN keywords.​
سؤال
The NATURAL JOIN keywords can be used to create non-equality joins.​
سؤال
Equality,non-equality,and self-joins are all categorized as inner joins.​
سؤال
An inequality join refers to a join that is used to link a table to a copy of itself.​
سؤال
The most common type of join is an equijoin,which joins two or more tables together based upon the tables having equivalent data values in a common column.​
سؤال
An outer join operator consists of a minus sign enclosed in parentheses, (-).​
سؤال
A(n)non-equality join is used when there are no equivalent rows of data in the tables that are being joined._________________________​
سؤال
The outer join operator is placed on the side of the joining condition that references the table containing the deficient rows._________________________​
سؤال
A(n)non-equality join is when a table is joined to itself._________________________​
سؤال
The outer join operator is used to combine the results of multiple SELECT statements._________________________​
سؤال
The UNION set operator will not suppress rows that are returned by both queries.​
سؤال
Tables can be joined in the FROM clause or the WHERE clause of a SELECT statement._________________________​
سؤال
A column qualifier indicates the column containing the data being referenced._________________________​
سؤال
The outer join operator is placed on the side of the comparison that is deficient or is missing the matching rows.​
سؤال
The number of joining conditions required to join tables is always one less than the number of tables being joined.​
سؤال
A(n)outer join can be created by not including a joining condition in a SELECT statement._________________________​
سؤال
By default,use of the JOIN keyword creates an inner join.​
سؤال
A full outer join can be created by including an outer join operator on both sides of the linking condition stated in the WHERE clause.​
سؤال
The JOIN keyword must be used in the WHERE clause of a SELECT statement._________________________​
سؤال
A(n)non-equality join is also known as an equijoin,inner join,or simple join._________________________​
سؤال
The INTERSECT set operator only displays the rows returned by both queries.​
سؤال
​The MINUS set operator is used to display rows that were uniquely returned by the first query in the set.
سؤال
Set operators are used to combine the results of multiple queries.​
سؤال
A cross join between two tables,containing four rows each,will display eight rows in its output._________________________​
سؤال
A Cartesian join can be created by not including a joining condition in the WHERE clause of a SELECT statement._________________________​
سؤال
A(n)Cartesian Join replicates each row from the first table with every row from the second table._________________________​
سؤال
Which of the following is used to create an outer join in a WHERE clause?​

A) ​FULL OUTER JOIN keywords
B) ​LEFT OUTER JOIN keywords
C) ​RIGHT OUTER JOIN keywords
D) ​outer join operator (+)
سؤال
If a table alias is assigned in the SELECT clause,it must be used any time the table is referenced in that SQL statement._________________________​
سؤال
In Oracle12c,tables can be linked through which clause(s)?​

A) ​SELECT
B) ​FROM
C) ​WHERE
D) ​both b and c
سؤال
The ON clause can be used only if the tables being joined have a common column with the same name._________________________​
سؤال
A table alias is assigned in the FROM clause._________________________​
سؤال
Which of the following types of joins refers to results consisting of each row from the first table being replicated from every row in the second table?​

A) ​outer join
B) ​non-equality join
C) ​self-join
D) ​Cartesian join
سؤال
Equality,non-equality,and self-joins are broadly categorized as outer joins._________________________​
سؤال
When combining the results of two SELECT statements with the UNION keyword,duplicate rows are suppressed in the results._________________________​
سؤال
A(n)inner join will only include rows that have matching rows in the other table._________________________​
سؤال
Which of the following types of joins is created by matching equivalent values in each table?​

A) ​Cartesian join
B) ​equality join
C) ​non-equality join
D) ​outer join
سؤال
In a Cartesian join,linking a table that contains 10 rows to a table that contains 9 rows will result in ____ rows being displayed in the output.​

A) ​19
B) ​18
C) ​90
D) ​89
سؤال
​Which of the following keywords is used to create a Cartesian join?

A) ​OUTER JOIN
B) ​CROSS JOIN
C) ​NATURAL JOIN
D) ​JOIN...USING
سؤال
The JOIN...USING keywords are used to join two tables that do not have a commonly named and defined column._________________________​
سؤال
If you are joining five tables in a SELECT statement,five joining conditions will be required._________________________​
سؤال
If you are joining two tables in a SELECT statement,three joining conditions will be required._________________________​
سؤال
By default,the JOIN keyword creates an inner join._________________________
سؤال
When combining the results of two SELECT statements with the MINUS keyword,duplicate rows are suppressed in the results._________________________​
سؤال
​Which of the following types of joins refers to joining a table to itself?

A) ​Cartesian join
B) ​equality join
C) ​self-join
D) ​outer join
سؤال
The JOIN keyword is included in which of the following clauses?​

A) ​SELECT
B) ​FROM
C) ​WHERE
D) ​ORDER BY
سؤال
If you are joining four tables in a SELECT statement,three joining conditions will be required._________________________​
سؤال
If you are attempting to join two tables that have multiple common columns,which of the following JOIN keywords should be used to specify how the tables should be linked?​

A) ​OUTER JOIN
B) ​CROSS JOIN
C) ​JOIN...USING
D) ​none of the above
سؤال
Which of the following terms refers to a column with equivalent data that exists in two or more tables?​

A) ​common column
B) ​equiv-column
C) ​inner columns
D) ​simple columns
سؤال
​In which of the following examples is the ORDERS table used as a column qualifier?

A) ​o.order#
B) ​orders.order#
C) ​order#.o
D) ​order#.orders
سؤال
Which of the following set operators will display only the unique results of the combined SQL statements?​

A) ​UNION
B) ​UNION ALL
C) ​INTERSECT
D) ​MINUS
سؤال
​Which of the following set operators will display the results of the combined SQL statements without suppressing duplicate rows?

A) ​UNION
B) ​UNION ALL
C) ​INTERSECT
D) ​MINUS
سؤال
<strong>  ​ Structure of the ORDERS table   Structure of the CUSTOMERS table ​ Which of the following SQL statements will display all customers who have not recently placed an order?​</strong> A) ​SELECT customer# FROM customers UNION SELECT customer# FROM orders; B) ​SELECT customer# FROM orders MINUS SELECT customer# FROM customers; C) ​SELECT customer# FROM orders INTERSECT SELECT customer# FROM customers; D) ​SELECT customer# FROM customers MINUS SELECT customer# FROM orders; <div style=padding-top: 35px>
Structure of the ORDERS table
<strong>  ​ Structure of the ORDERS table   Structure of the CUSTOMERS table ​ Which of the following SQL statements will display all customers who have not recently placed an order?​</strong> A) ​SELECT customer# FROM customers UNION SELECT customer# FROM orders; B) ​SELECT customer# FROM orders MINUS SELECT customer# FROM customers; C) ​SELECT customer# FROM orders INTERSECT SELECT customer# FROM customers; D) ​SELECT customer# FROM customers MINUS SELECT customer# FROM orders; <div style=padding-top: 35px> Structure of the CUSTOMERS table

Which of the following SQL statements will display all customers who have not recently placed an order?​

A) ​SELECT customer# FROM customers
UNION
SELECT customer# FROM orders;
B) ​SELECT customer# FROM orders
MINUS
SELECT customer# FROM customers;
C) ​SELECT customer# FROM orders
INTERSECT
SELECT customer# FROM customers;
D) ​SELECT customer# FROM customers
MINUS
SELECT customer# FROM orders;
سؤال
A table alias cannot be assigned in the FROM clause if which of the following keywords is used to join tables?​

A) ​NATURAL JOIN
B) ​JOIN...ON
C) ​LEFT OUTER JOIN
D) ​FULL OUTER JOIN
سؤال
​A table alias can consist of a maximum of ____ characters.

A) ​12
B) ​225
C) ​255
D) ​30
سؤال
​A join based upon a column from each table containing equivalent data is known as a(n)____.

A) ​inequality join
B) ​outer join
C) ​equality join
D) ​all of the above
سؤال
​The outer join operator in the WHERE clause cannot be used with which of the following operators?

A) ​IN
B) ​OR
C) ​AND
D) ​both a and b
سؤال
<strong>  ​ Structure of the ORDERS table   Structure of the CUSTOMERS table ​ ​Which of the following SQL statements will return the names of all customers who placed an order on April 12,2003?</strong> A) SELECT lastname,firstname FROM customers WHERE orderdate = '12-APR-03'; B) SELECT lastname,firstname FROM customers NATURAL JOIN orders WHERE orderdate = '12-APR-03'; C) SELECT lastname,firstname FROM customers JOIN orders ON (customer#) WHERE orderdate = '12-APR-03'; D) ​both a and b <div style=padding-top: 35px>
Structure of the ORDERS table
<strong>  ​ Structure of the ORDERS table   Structure of the CUSTOMERS table ​ ​Which of the following SQL statements will return the names of all customers who placed an order on April 12,2003?</strong> A) SELECT lastname,firstname FROM customers WHERE orderdate = '12-APR-03'; B) SELECT lastname,firstname FROM customers NATURAL JOIN orders WHERE orderdate = '12-APR-03'; C) SELECT lastname,firstname FROM customers JOIN orders ON (customer#) WHERE orderdate = '12-APR-03'; D) ​both a and b <div style=padding-top: 35px> Structure of the CUSTOMERS table

​Which of the following SQL statements will return the names of all customers who placed an order on April 12,2003?

A) SELECT lastname,firstname
FROM customers
WHERE orderdate = '12-APR-03';
B) SELECT lastname,firstname
FROM customers NATURAL JOIN orders
WHERE orderdate = '12-APR-03';
C) SELECT lastname,firstname
FROM customers JOIN orders ON (customer#)
WHERE orderdate = '12-APR-03';
D) ​both a and b
سؤال
​A(n)____ is used to combine the results of two queries.

A) ​concatenation operator
B) ​set operator
C) ​comparison operator
D) ​logical operator
سؤال
<strong>  ​ Structure of the ORDERS table   Structure of the CUSTOMERS table ​ Which of the following SQL statements will list the name of each customer stored in the customers table,and,if the customer has placed an order that is contained in the ORDERS table,the order# of any order each customer has placed?​</strong> A) SELECT lastname,firstname,order# FROM orders RIGHT OUTER JOIN customers USING (customer#); B) SELECT lastname,firstname,order# FROM orders LEFT OUTER JOIN customers USING (customer#); C) SELECT lastname,firstname,order# FROM orders FULL OUTER JOIN customers USING (customer#); D) ​both a and c <div style=padding-top: 35px>
Structure of the ORDERS table
<strong>  ​ Structure of the ORDERS table   Structure of the CUSTOMERS table ​ Which of the following SQL statements will list the name of each customer stored in the customers table,and,if the customer has placed an order that is contained in the ORDERS table,the order# of any order each customer has placed?​</strong> A) SELECT lastname,firstname,order# FROM orders RIGHT OUTER JOIN customers USING (customer#); B) SELECT lastname,firstname,order# FROM orders LEFT OUTER JOIN customers USING (customer#); C) SELECT lastname,firstname,order# FROM orders FULL OUTER JOIN customers USING (customer#); D) ​both a and c <div style=padding-top: 35px> Structure of the CUSTOMERS table

Which of the following SQL statements will list the name of each customer stored in the customers table,and,if the customer has placed an order that is contained in the ORDERS table,the order# of any order each customer has placed?​

A) SELECT lastname,firstname,order#
FROM orders RIGHT OUTER JOIN customers
USING (customer#);
B) SELECT lastname,firstname,order#
FROM orders LEFT OUTER JOIN customers
USING (customer#);
C) SELECT lastname,firstname,order#
FROM orders FULL OUTER JOIN customers
USING (customer#);
D) ​both a and c
سؤال
​Which of the following set operators can be used to make certain that only the rows returned by both queries are displayed in the results?

A) ​UNION
B) ​UNION ALL
C) ​INTERSECT
D) ​MINUS
سؤال
<strong>  ​ Structure of the ORDERS table   Structure of the CUSTOMERS table ​ ​Which of the following queries will display data from both the ORDERS and CUSTOMERS tables?</strong> A) ​SELECT * FROM orders,customers; B) SELECT lastname,firstname,order# FROM orders NATURAL JOIN customers; C) SELECT lastname,firstname,order# FROM orders,customers WHERE orders.customer# = customers.customer#; D) ​all of the above <div style=padding-top: 35px>
Structure of the ORDERS table
<strong>  ​ Structure of the ORDERS table   Structure of the CUSTOMERS table ​ ​Which of the following queries will display data from both the ORDERS and CUSTOMERS tables?</strong> A) ​SELECT * FROM orders,customers; B) SELECT lastname,firstname,order# FROM orders NATURAL JOIN customers; C) SELECT lastname,firstname,order# FROM orders,customers WHERE orders.customer# = customers.customer#; D) ​all of the above <div style=padding-top: 35px> Structure of the CUSTOMERS table

​Which of the following queries will display data from both the ORDERS and CUSTOMERS tables?

A) ​SELECT * FROM orders,customers;
B) SELECT lastname,firstname,order#
FROM orders NATURAL JOIN customers;
C) SELECT lastname,firstname,order#
FROM orders,customers
WHERE orders.customer# = customers.customer#;
D) ​all of the above
سؤال
​Which of the following can only be used to link tables that have a common column?

A) ​FULL OUTER JOIN
B) ​JOIN...ON
C) ​NATURAL JOIN
D) ​CROSS JOIN
سؤال
​Which of the following keywords can be used to join two tables that do not contain a commonly named and defined column?

A) ​NATURAL JOIN
B) ​JOIN...ON
C) ​JOIN...USING
D) ​none of the above
سؤال
​Which of the following keywords is used to create an equality join?

A) ​NATURAL JOIN
B) ​JOIN...ON
C) ​JOIN...USING
D) ​all of the above
سؤال
​A column qualifier is separated from the column using which symbol?

A) ​comma (,)
B) ​plus sign (+)
C) ​period (. )
D) ​percent sign (%)
سؤال
<strong>  ​ Structure of the ORDERS table   Structure of the CUSTOMERS table ​ ​Which of the following SQL statements will list the name of each customer stored in the CUSTOMERS table,and,if the customer has placed an order that is contained in the ORDERS table,the order# of any order each customer has placed?</strong> A) SELECT lastname,firstname,order# FROM customers NATURAL JOIN orders WHERE orders.customer# IS NOT NULL; B) SELECT lastname,firstname,order# FROM customers,orders WHERE orders.customer# (+)= customers.customer#; C) SELECT lastname,firstname,order# FROM customers,orders WHERE orders.customer# = customers.customer# (+); D) SELECT lastname,firstname,order# FROM customers NATURAL JOIN orders WHERE orders.customer# IS NULL; <div style=padding-top: 35px>
Structure of the ORDERS table
<strong>  ​ Structure of the ORDERS table   Structure of the CUSTOMERS table ​ ​Which of the following SQL statements will list the name of each customer stored in the CUSTOMERS table,and,if the customer has placed an order that is contained in the ORDERS table,the order# of any order each customer has placed?</strong> A) SELECT lastname,firstname,order# FROM customers NATURAL JOIN orders WHERE orders.customer# IS NOT NULL; B) SELECT lastname,firstname,order# FROM customers,orders WHERE orders.customer# (+)= customers.customer#; C) SELECT lastname,firstname,order# FROM customers,orders WHERE orders.customer# = customers.customer# (+); D) SELECT lastname,firstname,order# FROM customers NATURAL JOIN orders WHERE orders.customer# IS NULL; <div style=padding-top: 35px> Structure of the CUSTOMERS table

​Which of the following SQL statements will list the name of each customer stored in the CUSTOMERS table,and,if the customer has placed an order that is contained in the ORDERS table,the order# of any order each customer has placed?

A) SELECT lastname,firstname,order#
FROM customers NATURAL JOIN orders
WHERE orders.customer# IS NOT NULL;
B) SELECT lastname,firstname,order#
FROM customers,orders
WHERE orders.customer# (+)= customers.customer#;
C) SELECT lastname,firstname,order#
FROM customers,orders
WHERE orders.customer# = customers.customer# (+);
D) SELECT lastname,firstname,order#
FROM customers NATURAL JOIN orders
WHERE orders.customer# IS NULL;
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/119
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 9: Joining Data From Multiple Tables
1
The USING clause must be used with the JOIN keyword when linking tables that do not contain a commonly named column.​
False
2
An outer join operator can be included in a FROM clause to list all rows from one table that do not have a corresponding row in the other table.​
False
3
If a Cartesian join is used to link table A which contains two rows to table B which contains eight rows,there will be sixteen rows in the results.​
True
4
​Data stored in multiple tables can be combined through the use of an ORDER BY clause.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
5
An outer join only lists rows that contain a match in both tables.​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
6
A table alias is assigned to a table in the WHERE clause.​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
7
Column qualifiers must be included in the WHERE clause if the columns used to join the tables have the same column names.​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
8
A Cartesian join usually results from the user omitting the joining condition that links two or more tables together.​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
9
The JOIN keyword is used in the WHERE clause to indicate the tables that should be joined or linked.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
10
The NATURAL JOIN keywords can be used to link two tables that have a commonly named and defined column.​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
11
When a self-join is created,each copy of the table must be assigned a table alias.​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
12
A column qualifier is used to indicate the table containing the column being referenced.​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
13
A column qualifier is separated from the column name with a colon.​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
14
If a Cartesian join is used to link table A which contains five rows to table B which contains eight rows,there will be 13 rows in the results.​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
15
A table alias can be assigned in the FROM clause,even when tables are being joined using the NATURAL JOIN keywords.​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
16
The NATURAL JOIN keywords can be used to create non-equality joins.​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
17
Equality,non-equality,and self-joins are all categorized as inner joins.​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
18
An inequality join refers to a join that is used to link a table to a copy of itself.​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
19
The most common type of join is an equijoin,which joins two or more tables together based upon the tables having equivalent data values in a common column.​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
20
An outer join operator consists of a minus sign enclosed in parentheses, (-).​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
21
A(n)non-equality join is used when there are no equivalent rows of data in the tables that are being joined._________________________​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
22
The outer join operator is placed on the side of the joining condition that references the table containing the deficient rows._________________________​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
23
A(n)non-equality join is when a table is joined to itself._________________________​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
24
The outer join operator is used to combine the results of multiple SELECT statements._________________________​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
25
The UNION set operator will not suppress rows that are returned by both queries.​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
26
Tables can be joined in the FROM clause or the WHERE clause of a SELECT statement._________________________​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
27
A column qualifier indicates the column containing the data being referenced._________________________​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
28
The outer join operator is placed on the side of the comparison that is deficient or is missing the matching rows.​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
29
The number of joining conditions required to join tables is always one less than the number of tables being joined.​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
30
A(n)outer join can be created by not including a joining condition in a SELECT statement._________________________​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
31
By default,use of the JOIN keyword creates an inner join.​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
32
A full outer join can be created by including an outer join operator on both sides of the linking condition stated in the WHERE clause.​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
33
The JOIN keyword must be used in the WHERE clause of a SELECT statement._________________________​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
34
A(n)non-equality join is also known as an equijoin,inner join,or simple join._________________________​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
35
The INTERSECT set operator only displays the rows returned by both queries.​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
36
​The MINUS set operator is used to display rows that were uniquely returned by the first query in the set.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
37
Set operators are used to combine the results of multiple queries.​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
38
A cross join between two tables,containing four rows each,will display eight rows in its output._________________________​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
39
A Cartesian join can be created by not including a joining condition in the WHERE clause of a SELECT statement._________________________​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
40
A(n)Cartesian Join replicates each row from the first table with every row from the second table._________________________​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
41
Which of the following is used to create an outer join in a WHERE clause?​

A) ​FULL OUTER JOIN keywords
B) ​LEFT OUTER JOIN keywords
C) ​RIGHT OUTER JOIN keywords
D) ​outer join operator (+)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
42
If a table alias is assigned in the SELECT clause,it must be used any time the table is referenced in that SQL statement._________________________​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
43
In Oracle12c,tables can be linked through which clause(s)?​

A) ​SELECT
B) ​FROM
C) ​WHERE
D) ​both b and c
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
44
The ON clause can be used only if the tables being joined have a common column with the same name._________________________​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
45
A table alias is assigned in the FROM clause._________________________​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
46
Which of the following types of joins refers to results consisting of each row from the first table being replicated from every row in the second table?​

A) ​outer join
B) ​non-equality join
C) ​self-join
D) ​Cartesian join
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
47
Equality,non-equality,and self-joins are broadly categorized as outer joins._________________________​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
48
When combining the results of two SELECT statements with the UNION keyword,duplicate rows are suppressed in the results._________________________​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
49
A(n)inner join will only include rows that have matching rows in the other table._________________________​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
50
Which of the following types of joins is created by matching equivalent values in each table?​

A) ​Cartesian join
B) ​equality join
C) ​non-equality join
D) ​outer join
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
51
In a Cartesian join,linking a table that contains 10 rows to a table that contains 9 rows will result in ____ rows being displayed in the output.​

A) ​19
B) ​18
C) ​90
D) ​89
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
52
​Which of the following keywords is used to create a Cartesian join?

A) ​OUTER JOIN
B) ​CROSS JOIN
C) ​NATURAL JOIN
D) ​JOIN...USING
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
53
The JOIN...USING keywords are used to join two tables that do not have a commonly named and defined column._________________________​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
54
If you are joining five tables in a SELECT statement,five joining conditions will be required._________________________​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
55
If you are joining two tables in a SELECT statement,three joining conditions will be required._________________________​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
56
By default,the JOIN keyword creates an inner join._________________________
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
57
When combining the results of two SELECT statements with the MINUS keyword,duplicate rows are suppressed in the results._________________________​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
58
​Which of the following types of joins refers to joining a table to itself?

A) ​Cartesian join
B) ​equality join
C) ​self-join
D) ​outer join
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
59
The JOIN keyword is included in which of the following clauses?​

A) ​SELECT
B) ​FROM
C) ​WHERE
D) ​ORDER BY
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
60
If you are joining four tables in a SELECT statement,three joining conditions will be required._________________________​
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
61
If you are attempting to join two tables that have multiple common columns,which of the following JOIN keywords should be used to specify how the tables should be linked?​

A) ​OUTER JOIN
B) ​CROSS JOIN
C) ​JOIN...USING
D) ​none of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
62
Which of the following terms refers to a column with equivalent data that exists in two or more tables?​

A) ​common column
B) ​equiv-column
C) ​inner columns
D) ​simple columns
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
63
​In which of the following examples is the ORDERS table used as a column qualifier?

A) ​o.order#
B) ​orders.order#
C) ​order#.o
D) ​order#.orders
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
64
Which of the following set operators will display only the unique results of the combined SQL statements?​

A) ​UNION
B) ​UNION ALL
C) ​INTERSECT
D) ​MINUS
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
65
​Which of the following set operators will display the results of the combined SQL statements without suppressing duplicate rows?

A) ​UNION
B) ​UNION ALL
C) ​INTERSECT
D) ​MINUS
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
66
<strong>  ​ Structure of the ORDERS table   Structure of the CUSTOMERS table ​ Which of the following SQL statements will display all customers who have not recently placed an order?​</strong> A) ​SELECT customer# FROM customers UNION SELECT customer# FROM orders; B) ​SELECT customer# FROM orders MINUS SELECT customer# FROM customers; C) ​SELECT customer# FROM orders INTERSECT SELECT customer# FROM customers; D) ​SELECT customer# FROM customers MINUS SELECT customer# FROM orders;
Structure of the ORDERS table
<strong>  ​ Structure of the ORDERS table   Structure of the CUSTOMERS table ​ Which of the following SQL statements will display all customers who have not recently placed an order?​</strong> A) ​SELECT customer# FROM customers UNION SELECT customer# FROM orders; B) ​SELECT customer# FROM orders MINUS SELECT customer# FROM customers; C) ​SELECT customer# FROM orders INTERSECT SELECT customer# FROM customers; D) ​SELECT customer# FROM customers MINUS SELECT customer# FROM orders; Structure of the CUSTOMERS table

Which of the following SQL statements will display all customers who have not recently placed an order?​

A) ​SELECT customer# FROM customers
UNION
SELECT customer# FROM orders;
B) ​SELECT customer# FROM orders
MINUS
SELECT customer# FROM customers;
C) ​SELECT customer# FROM orders
INTERSECT
SELECT customer# FROM customers;
D) ​SELECT customer# FROM customers
MINUS
SELECT customer# FROM orders;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
67
A table alias cannot be assigned in the FROM clause if which of the following keywords is used to join tables?​

A) ​NATURAL JOIN
B) ​JOIN...ON
C) ​LEFT OUTER JOIN
D) ​FULL OUTER JOIN
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
68
​A table alias can consist of a maximum of ____ characters.

A) ​12
B) ​225
C) ​255
D) ​30
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
69
​A join based upon a column from each table containing equivalent data is known as a(n)____.

A) ​inequality join
B) ​outer join
C) ​equality join
D) ​all of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
70
​The outer join operator in the WHERE clause cannot be used with which of the following operators?

A) ​IN
B) ​OR
C) ​AND
D) ​both a and b
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
71
<strong>  ​ Structure of the ORDERS table   Structure of the CUSTOMERS table ​ ​Which of the following SQL statements will return the names of all customers who placed an order on April 12,2003?</strong> A) SELECT lastname,firstname FROM customers WHERE orderdate = '12-APR-03'; B) SELECT lastname,firstname FROM customers NATURAL JOIN orders WHERE orderdate = '12-APR-03'; C) SELECT lastname,firstname FROM customers JOIN orders ON (customer#) WHERE orderdate = '12-APR-03'; D) ​both a and b
Structure of the ORDERS table
<strong>  ​ Structure of the ORDERS table   Structure of the CUSTOMERS table ​ ​Which of the following SQL statements will return the names of all customers who placed an order on April 12,2003?</strong> A) SELECT lastname,firstname FROM customers WHERE orderdate = '12-APR-03'; B) SELECT lastname,firstname FROM customers NATURAL JOIN orders WHERE orderdate = '12-APR-03'; C) SELECT lastname,firstname FROM customers JOIN orders ON (customer#) WHERE orderdate = '12-APR-03'; D) ​both a and b Structure of the CUSTOMERS table

​Which of the following SQL statements will return the names of all customers who placed an order on April 12,2003?

A) SELECT lastname,firstname
FROM customers
WHERE orderdate = '12-APR-03';
B) SELECT lastname,firstname
FROM customers NATURAL JOIN orders
WHERE orderdate = '12-APR-03';
C) SELECT lastname,firstname
FROM customers JOIN orders ON (customer#)
WHERE orderdate = '12-APR-03';
D) ​both a and b
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
72
​A(n)____ is used to combine the results of two queries.

A) ​concatenation operator
B) ​set operator
C) ​comparison operator
D) ​logical operator
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
73
<strong>  ​ Structure of the ORDERS table   Structure of the CUSTOMERS table ​ Which of the following SQL statements will list the name of each customer stored in the customers table,and,if the customer has placed an order that is contained in the ORDERS table,the order# of any order each customer has placed?​</strong> A) SELECT lastname,firstname,order# FROM orders RIGHT OUTER JOIN customers USING (customer#); B) SELECT lastname,firstname,order# FROM orders LEFT OUTER JOIN customers USING (customer#); C) SELECT lastname,firstname,order# FROM orders FULL OUTER JOIN customers USING (customer#); D) ​both a and c
Structure of the ORDERS table
<strong>  ​ Structure of the ORDERS table   Structure of the CUSTOMERS table ​ Which of the following SQL statements will list the name of each customer stored in the customers table,and,if the customer has placed an order that is contained in the ORDERS table,the order# of any order each customer has placed?​</strong> A) SELECT lastname,firstname,order# FROM orders RIGHT OUTER JOIN customers USING (customer#); B) SELECT lastname,firstname,order# FROM orders LEFT OUTER JOIN customers USING (customer#); C) SELECT lastname,firstname,order# FROM orders FULL OUTER JOIN customers USING (customer#); D) ​both a and c Structure of the CUSTOMERS table

Which of the following SQL statements will list the name of each customer stored in the customers table,and,if the customer has placed an order that is contained in the ORDERS table,the order# of any order each customer has placed?​

A) SELECT lastname,firstname,order#
FROM orders RIGHT OUTER JOIN customers
USING (customer#);
B) SELECT lastname,firstname,order#
FROM orders LEFT OUTER JOIN customers
USING (customer#);
C) SELECT lastname,firstname,order#
FROM orders FULL OUTER JOIN customers
USING (customer#);
D) ​both a and c
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
74
​Which of the following set operators can be used to make certain that only the rows returned by both queries are displayed in the results?

A) ​UNION
B) ​UNION ALL
C) ​INTERSECT
D) ​MINUS
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
75
<strong>  ​ Structure of the ORDERS table   Structure of the CUSTOMERS table ​ ​Which of the following queries will display data from both the ORDERS and CUSTOMERS tables?</strong> A) ​SELECT * FROM orders,customers; B) SELECT lastname,firstname,order# FROM orders NATURAL JOIN customers; C) SELECT lastname,firstname,order# FROM orders,customers WHERE orders.customer# = customers.customer#; D) ​all of the above
Structure of the ORDERS table
<strong>  ​ Structure of the ORDERS table   Structure of the CUSTOMERS table ​ ​Which of the following queries will display data from both the ORDERS and CUSTOMERS tables?</strong> A) ​SELECT * FROM orders,customers; B) SELECT lastname,firstname,order# FROM orders NATURAL JOIN customers; C) SELECT lastname,firstname,order# FROM orders,customers WHERE orders.customer# = customers.customer#; D) ​all of the above Structure of the CUSTOMERS table

​Which of the following queries will display data from both the ORDERS and CUSTOMERS tables?

A) ​SELECT * FROM orders,customers;
B) SELECT lastname,firstname,order#
FROM orders NATURAL JOIN customers;
C) SELECT lastname,firstname,order#
FROM orders,customers
WHERE orders.customer# = customers.customer#;
D) ​all of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
76
​Which of the following can only be used to link tables that have a common column?

A) ​FULL OUTER JOIN
B) ​JOIN...ON
C) ​NATURAL JOIN
D) ​CROSS JOIN
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
77
​Which of the following keywords can be used to join two tables that do not contain a commonly named and defined column?

A) ​NATURAL JOIN
B) ​JOIN...ON
C) ​JOIN...USING
D) ​none of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
78
​Which of the following keywords is used to create an equality join?

A) ​NATURAL JOIN
B) ​JOIN...ON
C) ​JOIN...USING
D) ​all of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
79
​A column qualifier is separated from the column using which symbol?

A) ​comma (,)
B) ​plus sign (+)
C) ​period (. )
D) ​percent sign (%)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
80
<strong>  ​ Structure of the ORDERS table   Structure of the CUSTOMERS table ​ ​Which of the following SQL statements will list the name of each customer stored in the CUSTOMERS table,and,if the customer has placed an order that is contained in the ORDERS table,the order# of any order each customer has placed?</strong> A) SELECT lastname,firstname,order# FROM customers NATURAL JOIN orders WHERE orders.customer# IS NOT NULL; B) SELECT lastname,firstname,order# FROM customers,orders WHERE orders.customer# (+)= customers.customer#; C) SELECT lastname,firstname,order# FROM customers,orders WHERE orders.customer# = customers.customer# (+); D) SELECT lastname,firstname,order# FROM customers NATURAL JOIN orders WHERE orders.customer# IS NULL;
Structure of the ORDERS table
<strong>  ​ Structure of the ORDERS table   Structure of the CUSTOMERS table ​ ​Which of the following SQL statements will list the name of each customer stored in the CUSTOMERS table,and,if the customer has placed an order that is contained in the ORDERS table,the order# of any order each customer has placed?</strong> A) SELECT lastname,firstname,order# FROM customers NATURAL JOIN orders WHERE orders.customer# IS NOT NULL; B) SELECT lastname,firstname,order# FROM customers,orders WHERE orders.customer# (+)= customers.customer#; C) SELECT lastname,firstname,order# FROM customers,orders WHERE orders.customer# = customers.customer# (+); D) SELECT lastname,firstname,order# FROM customers NATURAL JOIN orders WHERE orders.customer# IS NULL; Structure of the CUSTOMERS table

​Which of the following SQL statements will list the name of each customer stored in the CUSTOMERS table,and,if the customer has placed an order that is contained in the ORDERS table,the order# of any order each customer has placed?

A) SELECT lastname,firstname,order#
FROM customers NATURAL JOIN orders
WHERE orders.customer# IS NOT NULL;
B) SELECT lastname,firstname,order#
FROM customers,orders
WHERE orders.customer# (+)= customers.customer#;
C) SELECT lastname,firstname,order#
FROM customers,orders
WHERE orders.customer# = customers.customer# (+);
D) SELECT lastname,firstname,order#
FROM customers NATURAL JOIN orders
WHERE orders.customer# IS NULL;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 119 في هذه المجموعة.