Consider this test setup:
CREATE TABLE dept (deptid integer PRIMARY KEY, deptname TEXT);
CREATE INDEX dept_name_idx on dept(deptname);
The dept table contains 1000 rows and the deptname column contains 10 unique values that are evenly distributed.
Which of the following two sample queries would use the index dept_deptname_idx?
1) SELECT deptid from dept where deptname ='SAPA';
2) SELECT deptid from dept where deptname <>'SAPA';