

Joining Tables or Database Records › Testing Your Knowledge
Testing Your Knowledge
Using the sample tables in Appendix A:, code a SELECT statement for each of the queries listed below. num=B.Answers, contains one possible answer. Remember, there can be more than one way to achieve the same result when you use the SELECT statement.
- List the average salary for employees in the Boston office
- List all employees in the Springfield office who are programmer/analysts
- List the average salary of the managers in table DEPT
- List all employees who are either programmer/analysts, paste-up artists, or a brainstorming manager
Using the data structure diagram in code a SELECT statement for these database record queries:
- List each employee's job title and salary
- For each job assigned to more than one employee, list the number of employees assigned to the job and their average salaries
- List each employee's manager
Copyright © 2013 CA.
All rights reserved.
 
|
|