0

How do I query on a self-defined variable? Example:

SELECT *, MID(dateandtime, 12, 2) as 'xxx'
FROM xyz
WHERE year = '18-19'
AND xxx > 18

Is there a way to use xxx in the query like in the last line of the example?

nemja
  • 459
  • 4
  • 19

0 Answers0