Two different table join view

40 Views Asked by At

I'm trying to understand what he wants me to select because non of the tables or attributes have object_name or object_type. would anyone know what my teacher be talking about?

"Select object_name and object_type to see what objects you own"

1

There are 1 best solutions below

3
AudioBubble On

While connected to the standard SCOTT schema:

SQL> select object_name, object_type from user_objects;

OBJECT_NAME                    OBJECT_TYPE
------------------------------ ------------------------------
SALGRADE                       TABLE
PK_EMP                         INDEX
PK_DEPT                        INDEX
EMP                            TABLE
DEPT                           TABLE
BONUS                          TABLE

6 rows selected.

USER_OBJECTS is a system view that shows me what objects (tables, indexes, procedures, etc.) I own. Try it on your database, logged in as yourself.