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: Question on PL/SQL statement.

Re: Question on PL/SQL statement.

From: <feilip_at_gmail.com>
Date: 14 Jun 2006 07:26:58 -0700
Message-ID: <1150295218.092853.323630@f6g2000cwb.googlegroups.com>


Thanks for your insight. I appreciate that.

How about this:

       EXEC SQL SELECT COUNT(*)
                INTO :rowcount
                FROM MY_LIST L1
                WHERE AND L1.batch_id = '1'
                AND L1.send_delete_ind = 'Y'
                OR L1.send_delete_ind = 'N';

Would it be the same as following? I just don't understand why it has L1 and L2. What are they for? Thanks.

       EXEC SQL SELECT COUNT(*)
                INTO :rowcount
                FROM MY_LIST L1,
                     MY_LIST L2
                WHERE L1.key_no = L2.key_no
                AND L1.supply_code = L2.supply_code
                AND L1.batch_id = '1'
                AND L1.send_delete_ind = 'Y'
                AND L2.batch_id = '1'
                AND L2.send_delete_ind = 'N';
Received on Wed Jun 14 2006 - 09:26:58 CDT

Original text of this message

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