|
|
|
|
|
by seanhunter
1119 days ago
|
|
> - Subqueries in the FROM clause can omit aliases This is great. It never made any sense to me that this was required. For people who are unaware, say you want to understand a table a natural way of doing it might be select *
from the_table
order by some_metric desc
limit 10
so you'd think you can do the same for queries like select *
from (
select blah blah blah the rest of the query
) a
order by some_metric desc
limit 10
you need to put the alias 'a' to placate existing postgres even though it's never actually used, which never made any sense to me. |
|