You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
360 B
SQL
14 lines
360 B
SQL
/*3. Write a query to find the salesmen of the city New York who achieved the commission more than 13%.*/
|
|
|
|
/*Code to create the view*/
|
|
|
|
CREATE VIEW newyorkstaff
|
|
AS SELECT *
|
|
FROM salesman
|
|
WHERE city = 'New York';
|
|
|
|
/*Code to see the records form the view*/
|
|
|
|
SELECT *
|
|
FROM newyorkstaff
|
|
WHERE commission > .13; |