I wrote this query to find the number of purchases for which there are at least 1000 other purchases, but only if ServiceType, GST and PaymentType are the same.
I was thinking of adding an index to make this query faster, I thought an bitmap index would be the way to go and create this on ServiceType, PaymentType and GST columns.
What is the best index to speed up the query above?
Thanks,
Jim