Zusammenfassung der Ressource
Frage 1
Frage
You need to retrieve data from two related database tables based on a column that exists in both tables. Which command should you use in a query?
Antworten
-
INTERSECT
-
UNION
-
JOIN
-
TRUNCATE
Frage 2
Frage
You need to combine the results of two queries into a single result that contains all of the rows from both queries. Which Structured Query Language (SQL) statement should you use?
Antworten
-
TRUNCATE
-
JOIN
-
EXCEPT
-
UNION
Frage 3
Frage
You have a Customer table and an Order table. You join the Customer table with the Order table by using the CusromerID column. The results include:
. All customers and their orders
. Customers who have no orders
Which type of join do these results represent?
Antworten
-
Complete join
-
Partial join
-
Inner join
-
Outer join
Frage 4
Frage
You have two tables named Cars and Color as defined below. The two tables are related by ColorId.
How many rows does the SQL statement return?
Frage 5
Frage
This question requires that you evaluate the underlined text to determine if it is correct. The UNION keyword combines the results of two queries and returns only rows that appear in both result sets. Instructions: Review the underlined text. If it makes the statement correct, select “No change is needed.” If the statement is incorrect, select the answer choice that makes the statement correct:
Antworten
-
No change is needed
-
INTERSECT
-
ALL
-
UOIN