Avoid SQL queries not using the first column of a composite index in the WHERE clause | CAST Appmarq