On Jul 21, 2013, at 7:47 PM, Igor Tandetnik <i...@tandetnik.org> wrote:

> This query is in fact perfectly legal. It's OK to refer to column aliases in 
> ORDER BY clause.

Perhaps in SQLite, yes. 

select 1 as a order by 1;
select 1 as a order by a;
select x as a from ( select 1 as x )  order by a;

But this is far from universal.

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to