1. Both CREATE ALIAS and CREATE SYNONYM work in DB2.
What is the difference between the two?
2. Created synonyms XYZ.tables for ABC.tables and granted SELECT on the ABC.tables to XYZ. I can do select count(*) on the XYZ.tables but unable to describe XYZ.tables when issuing 'db2 describe XYZ.salary_code'.
The table is NOT empty.
Column Type Type
name schema name Length Scale Nulls
------------------------------ --------- ------------------ -------- -----
0 record(s) selected.
SQL0100W No row was found for FETCH, UPDATE or DELETE; or the result of a query is an empty table. SQLSTATE=02000
What am I missing? Any other privilege is needed besides SELECT?
Thank you in advance.