QuestionQ107
VerifiedTuning SQL StatementsYou administer a 19c database using the default optimizer settings.
This statement is extensively used as a subquery in the application queries:
SELECT city_id FROM sh2.sales WHERE city_id=:B1
You observe that these queries often perform poorly and therefore run:
SELECT city_id,COUNT(*) FROM sh2.sales GROUP BY city_id;
Review the results:

No index exists on the CITY_ID column.
Which two options improve performance?
Choose two
Community Discussion