From the following table, create a view to find all the customers who have the highest grade
- برمجة سي كيو ال sql
- 2021-09-02
- mhanasmh00489829403
الأجوبة
CREATE VIEW highgrade
AS SELECT *
FROM customer
WHERE grade =
(SELECT MAX (grade)
FROM customer);
output:
sqlex=# select * from highgrade;
customer_id | cust_name | city | grade | salesman_id
-------------+----------------+--------+-------+-------------
3008 | Julian Green | London | 300 | 5002
3004 | Fabian Johnson | Paris | 300 | 5006
(2 rows)أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال