Beruflich Dokumente
Kultur Dokumente
Read the problem carefully and write the answer on the spaces
provided for below.
#1:
Based on the employees table below, select all fields from
the employees table whose salary is less than or equal to $52,500 (no
sorting is required):
salary int,
dept_id int,
);
VALUES
VALUES
VALUES
VALUES
Answer:
______________________________________________
#2:
Based on the suppliers table below, select the unique city values that
reside in the state of California and order the results in descending
order by city:
city char(50),
state char(25),
);
VALUES
VALUES
VALUES
VALUES
VALUES
VALUES
VALUES
VALUES
VALUES
Answer:
city
Westlake Village
Redwood City
Mountain View
______________________________________________
#3:
Write a query to display the department number, department name,
department phone number, employee number, and last name of each
department manager. Sort the output by department name (Figure
P7.42).
The result is as follows:
Answer:
#4:
Based on the employees table, delete all employee records
whose salary is greater than $60,000:
salary int,
dept_id int,
);
VALUES
VALUES
VALUES
VALUES
Answer:
______________________________________________