0

I have this query which runs on MsSQL:

select BL.ID from O_USERS_BATCH
as UB join O_BATCH_LOCK as BL on UB.INSTANCE_ID = BL.ID order by BL.ID

How do I convert it to work with Oracle data base type?

Tal Angel
  • 1,301
  • 3
  • 29
  • 63

1 Answers1

1

The only change is to drop the as:

select BL.ID
from O_USERS_BATCH ub join
     O_BATCH_LOCK BL
     on UB.INSTANCE_ID = BL.ID
order by BL.ID;

Oracle doesn't support as for table aliases.

Gordon Linoff
  • 1,242,037
  • 58
  • 646
  • 786