I am using Oracle. I am trying to view a table that looks like this
OBJECT_NAME OBJECT_TYPE
----------------- -----------
DEPARTMENT TABLE
DEPARTMENT_ID_PK INDEX
EMPLOYEE TABLE
EMPLOYEE_ID_PK INDEX
And this is what I have
SELECT OBJECT_NAME, OBJECT_TYPE
FROM USER_OBJECTS
WHERE OBJECT_NAME IN ('EMPLOYEE', 'DEPARTMENT');
But the table that is printed only shows the Department and Employee object name and types, not the department_id_pk and employee_id_pk. What am I missing?
WHERE object_name LIKE 'EMPLOYEE%' OR object_name LIKE 'DEPARTMENT%'