Why can\'t I give an alias to a table in Oracle DB? I tried to write a statement like this one:
select count(id) from users as usr where usr.dept = \"SVC\";
Oracle doesn't allow as for table aliases, only column aliases. So do:
as
select count(id) from users usr where usr.dept = 'SVC';