Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Selecting Object Types

Re: Selecting Object Types

From: Gerard Averill <gaverill_at_chsra.wisc.eduNOSPAM>
Date: 20 Mar 2001 19:05:20 GMT
Message-ID: <906A85EE3gaverill@144.92.88.10>

ncroston_at_cceb.med.upenn.edu (Nate Croston) wrote in <3AB79FE5.86205C06_at_cceb.med.upenn.edu>:

<snip>

>If I am not mistaking the syntax to query each attribute in the object
>type is COLUMN_NAME.ATTRIBUTE. So my query is SELECT
>HOSPITAL_ADDRESS.STATE FROM HOSPITAL. This is when I get the ORA-00904
>error.

Nate,

I believe you must use a table alias to access individual attributes of your object in SQL:

  SELECT H.HOSPITAL_ADDRESS.STATE FROM HOSPITAL H WHERE... HTH,
g

-- 
Gerard Averill
gaverill<at>chsra<dot>wisc<dot>edu
Received on Tue Mar 20 2001 - 13:05:20 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US