To query a row or a column object table, you can use standard SQL normally used in querying relational tables.
The following example uses standard SQL to query the CUSTOMER_OBJ_TABLE table:
SELECT cust_id, first_name, last_name
FROM customer_obj_table ;
In this example, we query the object just like a normal relational table.
The following diagram illustrates the variables in the syntax:
Practical SQL
The following diagram shows an example of querying an object table:
Select, From, Where Clause In the next lesson, an alternative way of writing SQL to query an object table will be discussed.