Re: A question about table alias and "group by"



On Oct 31, 7:45 pm, sybrandb <sybra...@xxxxxxxxx> wrote:
On Oct 31, 7:56 am, syukai <chinazhuhu...@xxxxxxxxx> wrote:





i have write a sql, but when put it into excution. some problem was
happening...

the sql is like this:

select sth from
(select sth from A1 A2) B1,
(select sth from C1 C2) B2,
(select sth from B2 group by sth) B3
where
B1.conditons compare with B2.conditions
And B2.condtions compare with B3.conditions

but it shows that the B2 table not exists messege. and who can tell me
how drill infomation from B2?

too much thanks... ^_^

You need the WITH statement.

--
Sybrand Bakker
Senior Oracle DBA- Hide quoted text -

- Show quoted text -


thanks Sybrand and Brian, for your kindly reply and suggestions to
the point... ^_^

.



Relevant Pages

  • Re: Compare two columns and display value in 3 cloumn
    ... are you looking for sth like this: ... I have data in Excel Sheet in the following way ... The data in Column B have to compare the value in Colmun A and if found the ... Can you please me regarding htis issue. ...
    (microsoft.public.excel.misc)
  • Re: A question about table alias and "group by"
    ... the sql is like this: ... (select sth from B2 group by sth) ... And B2.condtions compare with B3.conditions ... Senior Oracle DBA ...
    (comp.databases.oracle.server)
  • Re: Display Structure Array?
    ... It would be too difficult to compare one by one of each element. ... find sth like that in the File Exchange: ...
    (comp.soft-sys.matlab)
  • A question about table alias and "group by"
    ... i have write a sql, but when put it into excution. ... (select sth from B2 group by sth) ... And B2.condtions compare with B3.conditions ...
    (comp.databases.oracle.server)