Consider a table users(userid, country, city, street) with 50 million users. DBA creates the following index for the table
CREATE INDEX myindex ON users(country, city, street)
For which of the following queries will this index be least useful?
- (A)
SELECT userid FROM users WHERE country='IN'
- (B)
SELECT userid FROM users WHERE street='MG Road'
- (C)
SELECT userid FROM users WHERE country='IN' AND city='Pune' AND street='MG Road'
- (D)
SELECT userid FROM users WHERE country='IN' AND city='Pune'
