1

Is it possible to use an alias in a WHERE condition?

For example:

SELECT n.name, count(c.name) as freq FROM names as n, names as c 
WHERE freq < 1 AND gender = 'f' order by rand() ) 

Or would I have to do this another way?

Sᴀᴍ Onᴇᴌᴀ
  • 8,218
  • 8
  • 36
  • 58

0 Answers0