Computer Science, asked by tas11, 1 year ago


8. Write a query on the customers table whose output will exclude all customers with a rating <= 100,
unless they are located in Shimla.
9. Write a query that selects all orders (Order table) except those with zeros or NULLs in the amt field.

Answers

Answered by pankhuri1704
10

8. first picture

9. second picture

Attachments:
Answered by ridhimakh1219
1

SQL query

Explanation:

Query on the customers table whose output will exclude all customers with a rating <= 100

Select customerName  from customers where rating > 100 or  city like  ‘Shimla’;

where like matches the specified pattern

Query that selects all orders (Order table) except those with zeros or NULLs in the amt field

Select * from order where (amt is NOT NULL and amt <> 0);

where <>  defines  " not equal to"

Similar questions