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

Home -> Community -> Usenet -> c.d.o.misc -> SQL programming quesion

SQL programming quesion

From: <julie15ann_at_my-deja.com>
Date: Sun, 08 Aug 1999 22:59:30 GMT
Message-ID: <7ol24f$av2$1@nnrp1.deja.com>


What logic do you use when you have a column that says there are X items and I want to insert the information on those X items into another table. If I did it in another programming language I would program it as follows:

If "X items" > 1 Then
{

    For i = 1 to "X items"
    {

        Insert A
    }
}

What I need to do is find all the columns of this table where X is greater than 1 and when I find those coulumns I would like to insert the information from that record X number of times into another table. How can I do the above using SQL? If you respond to this post could you also please reply to my email address at
julie15ann_at_aol.com

Thanks

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't. Received on Sun Aug 08 1999 - 17:59:30 CDT

Original text of this message

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