brianc/node-sql

Using alias in 'where' clause

Closed this issue · 2 comments

How do we achieve the following?

select a, fn(b) as c from table where c > 10

Any ideas? Thanks in advance.

Thanks @brianc . But this example talks about table alias. My query is regarding column alias, created after applying function to an existing column. Any idea on that? Can you give me an example for the above query?