Q:

Find the name of those cities with temperature and condition whose condition is either sunny or cloudy but temperature must be greater than 70F

belongs to collection: DBMS - SQL MCQ

0

Find the name of those cities with temperature and condition whose condition is either sunny or cloudy but temperature must be greater than 70F.


  1. SELECT city, temperature, condition FROM weather WHERE condition = \'sunny\' AND condition = \'cloudy\' OR temperature > 70;
  2. SELECT city, temperature, condition FROM weather WHERE condition = \'sunny\' OR condition = \'cloudy\' OR temperature > 70;
  3. SELECT city, temperature, condition FROM weather WHERE condition = \'sunny\' OR condition = \'cloudy\' AND temperature > 70;
  4. SELECT city, temperature, condition FROM weather WHERE condition = \'sunny\' AND condition = \'cloudy\' AND temperature > 70;

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

(c).SELECT city, temperature, condition FROM weather WHERE condition = 'sunny' OR condition = 'cloudy' AND temperature > 70;

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

DBMS - SQL MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Find all the tuples having temperature greater tha... >>
<< Find the names of these cities with temperature an...