ORDER BY clause when writing a subquery. A SUBQUERY EXAMPLE SQL Example 7.1 queries the employee table. You know at design time that you want to retrieve employee information where employee salaries are at or above $25,000, and employees work in department 3 or 7. Additionally, the actual criteria values used in row selection are hard-coded—$20,000 for the employee monthly salary and departments 3 and 6 for the department number. /* SQL Example 7.1 */ COLUMN "Last Name" FORMAT A15; COLUMN "First…
Words 8598 - Pages 35