[Cookbook][Security] Use uppercase SQL keywords in query

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | all
| Fixed tickets | -

Following the conventions from the MySQL docs, SQL keywords are written uppercase.