CBSE Class 12 Computer Science Question 15 of 78

Simple Queries in SQL — Question 8

Back to all questions
8
Question

Question 8

Write a query on the customers table whose output will exclude all customers with a rating <= 100, unless they are located in Shimla.

Answer
SELECT *
FROM customers
WHERE rating > 100 OR city = 'Shimla' ;