Which of the following statements will display the player's name, number and points for all players with an entry in both tables?
A. SELECT names.name, names.number, points.points
FROM names INNER JOIN points ON names.name=points.name
B. SELECT names.name, names.number, points.points
FROM names FULL OUTER JOIN points ON names.name=points.name
C. SELECT names.name, names.number, points.points
FROM names LEFT OUTER JOIN points ON names.name=points.name
D. SELECT names.name, names.number, points.points
FROM names RIGHT OUTER JOIN points ON names.name=points.name
A 44. Which of the following products is designed for analyzing data with more than two dimensions?
A. DB2 OLAP Server
B. DB2 Warehouse Manager
C. DB2 Relational Connect
D. DB2 Data Links Manager
B 45. Given the following table definition:
STAFF
id INTEGER
name CHAR(20)
dept INTEGER
job CHAR(20)
years INTEGER
salary DECIMAL(10,2)
comm DECIMAL(10,2)
Which of the following SQL statements will return a result set that satisfies these conditions?
Displays the total number of employees in each department
Displays the corresponding department ID for each department
Includes only departments with at least one employee receiving a commission (comm) greater than 5000
Sorted by the department employee count from greatest to least
A. SELECT dept, COUNT(*) FROM staff GROUP BY dept HAVING comm >; 5000 ORDER BY 2 DESC
B. SELECT dept, COUNT(*) FROM staff
WHERE comm >; 5000
GROUP BY dept, comm
发表评论