Ch 4 Flashcards
Which of the following is used to restrict rows is SQL?
Where
Which of the following are non-commercial open-source database management systems? I. MS SQL Server II. MongoDB III. Oracle
II only
Suppose there are two tables: A and B. What would the following code output? SELECT * from A RIGHT JOIN B on A.orderid = B.orderid
the complete set of records from table B, along with the matching records (depending on the availability) from table A where tables A and B have the same orderid
Suppose there are two tables: A and B. What would the following code output? SELECT * from A LEFT JOIN B on A.orderid = B.orderid;
the complete set of records from table A, along with the matching records (depending on the availability) from table B where tables A and B have the same orderid
Suppose there are two tables: A and B. What would the following code output? SELECT * from A INNER JOIN B on A.orderid = B.orderid;
only the records from both tables A and B where tables A and B have the same orderid
What is the function COUNT() used for?
to return the number of rows that match a specified criteria
Which of the following is not a type of join?
FULLER INNER JOIN
Which of the following does a relational database not contain?
ID Graphs
Which of the following includes matched records from the right table and all records from the left table?
LEFT JOIN
Which join uses records that have matching values in both tables?
INNER JOIN