Query Varray help please

Is there a way that I can write a query so that a varray column is simply returned as some sort of delimited string, or even as just binary?
Any help is greatly appreciated.

Example for you:
[email protected]> create type num_array is varray(10) of number
3 /
Type created.
[email protected]> create table t902(id int,tab num_array);
Table created.
[email protected]> ed
Wrote file afiedt.buf
1 declare
2 v_tab num_array := num_array();
3 begin
4 v_tab.extend(2);
5 v_tab(1) := 1;
6 v_tab(2) := 2;
7 insert into t902 values(1,v_tab);
8 commit;
9* end;
[email protected]> /
PL/SQL procedure successfully completed.
[email protected]> select * from t902;
ID TAB
1 NUM_ARRAY(1, 2)
Best Regards
Krystian Zieja / mob

Similar Messages

  • MS Query - Repost, Help please!

    I have built a query in Access that I am accessing via .asp
    pages (VB
    Script). The query brings back related records (from another
    table) , and
    also has a count of these records against this relationship.
    Heres the SQL that Access creates
    SELECT sections.SectionID, sections.Section_Name,
    Count(articles.ArticleID)
    AS CountOfArticleID
    FROM sections INNER JOIN articles ON sections.SectionID =
    articles.SectionID
    GROUP BY sections.SectionID, sections.Section_Name;
    i.e.
    Table 1
    Sec 1
    Sec 2
    Sec 3
    Table Two
    Article 1, Sec1
    Article 2, Sec1
    Article 3, Sec 2
    SO the query displays
    Sec1, Article Count = 2
    Sec2, Article Count =1
    The problem I have is that how do I return Sec 3 within the
    Query with a 0
    (Zero) against it, it only seems to bring back the Sections
    with related
    record?
    Any help or links to tutorial would be grateful
    Thanks in advance

    I believe if you replace:
    INNER JOIN
    with
    LEFT OUTER JOIN
    It will work.
    Try it and let us know.
    "The 'Ox'" <[email protected]> wrote in message
    news:eqsr0b$10l$[email protected]..
    >I have built a query in Access that I am accessing via
    .asp pages (VB
    > Script). The query brings back related records (from
    another table) , and
    > also has a count of these records against this
    relationship.
    >
    > Heres the SQL that Access creates
    >
    > SELECT sections.SectionID, sections.Section_Name,
    > Count(articles.ArticleID)
    > AS CountOfArticleID
    > FROM sections INNER JOIN articles ON sections.SectionID
    =
    > articles.SectionID
    > GROUP BY sections.SectionID, sections.Section_Name;
    >
    >
    > i.e.
    >
    > Table 1
    > Sec 1
    > Sec 2
    > Sec 3
    >
    > Table Two
    > Article 1, Sec1
    > Article 2, Sec1
    > Article 3, Sec 2
    >
    > SO the query displays
    > Sec1, Article Count = 2
    > Sec2, Article Count =1
    >
    > The problem I have is that how do I return Sec 3 within
    the Query with a 0
    > (Zero) against it, it only seems to bring back the
    Sections with related
    > record?
    >
    > Any help or links to tutorial would be grateful
    >
    > Thanks in advance
    >
    >
    >
    >

  • Heirarchy query - Need help please!

    DB ver: Oracle DB 10g Rel2
    I have data as follows
    LAST_NAME EMPLOYEE_ID MANAGER_ID
    King 100 null
    Cambrault 148 100
    Bates 172 148
    Bloom 169 148
    Fox 170 148
    Ozer 168 172
    Smith 171 172
    De Haan 102 169
    Hunold 103 169
    Austin 105 169
    Ernst 104 170
    When Cambrault(emp.id:148) logs in he should see the reporting structure as follows
    - Cambrault
    -- Bates
    --- Ozer
    --- Smith
    -- Bloom
    --- De Haan
    --- Hunold
    --- Austin
    -- Fox
    --- Ernst
    Similerly when Bates(Emp.Id:172) logs in he should see as follows
    - Bates
    -- Ozer
    -- Smith
    How to write a query to get output of records as above?
    I could write it as follows but getting all the records.
    SELECT e1.ename||' works for Supervisor '||e2.ename
    FROM emp e1, emp e2
    WHERE e1.mgr = e2.empno;
    Any help is highly appreciated. Thanks in advance.
    movva
    Edited by: cmovva on 27-Oct-2011 12:07 PM

    maybe this example might help.
    SQL> select * from emp;
    EMPNO ENAME      JOB         MGR HIREDATE          SAL      COMM DEPTNO
    7902 FORD       ANALYST    7782 03-Dec-81     3000.00               20
    7839 KING       PRESIDENT       17-Nov-81     5000.00               10
    7698 BLAKE      MANAGER    7839 01-May-81     2850.00               30
    7782 CLARK      MANAGER    7839 09-Jun-81     2450.00               10
    7788 SCOTT      ANALYST    7782 09-Dec-82     3000.00               20
    7844 TURNER     SALESMAN   7698 08-Sep-81     1500.00      0.00     30
    7876 ADAMS      CLERK      7782 12-Jan-83     1100.00               20
    7900 JAMES      CLERK      7698 03-Dec-81      950.00               30
    7934 MILLER     CLERK      7782 23-Jan-82     1300.00               10
    7945 CINDY      SALESMAN   7698 16-Jan-83     1800.00               30
    7950 TINA       SALESMAN   7698 18-Jan-83     1850.00               30
    11 rows selected
    SQL>
    SQL>  select substr(lpad(' ',2*(level-1)) || ename,1,40) employee_name, job, hiredate, sal
      2    from emp
      3    start with mgr is null
      4    connect by prior empno = mgr;
    EMPLOYEE_NAME                            JOB       HIREDATE          SAL
    KING                                     PRESIDENT 17-Nov-81     5000.00
      BLAKE                                  MANAGER   01-May-81     2850.00
        TURNER                               SALESMAN  08-Sep-81     1500.00
        JAMES                                CLERK     03-Dec-81      950.00
        CINDY                                SALESMAN  16-Jan-83     1800.00
        TINA                                 SALESMAN  18-Jan-83     1850.00
      CLARK                                  MANAGER   09-Jun-81     2450.00
        SCOTT                                ANALYST   09-Dec-82     3000.00
        ADAMS                                CLERK     12-Jan-83     1100.00
        FORD                                 ANALYST   03-Dec-81     3000.00
        MILLER                               CLERK     23-Jan-82     1300.00
    11 rows selected
    SQL> using your sample data something like this:
    SQL> select *
      2    from (select 'King'      last_name, 100 employee_id, null manager_id from dual union all
      3          select 'Cambrault' last_name, 148 employee_id, 100  manager_id from dual union all
      4          select 'Bates'     last_name, 172 employee_id, 148  manager_id from dual union all
      5          select 'Bloom'     last_name, 169 employee_id, 148  manager_id from dual union all
      6          select 'Fox'       last_name, 170 employee_id, 148  manager_id from dual union all
      7          select 'Ozer'      last_name, 168 employee_id, 172  manager_id from dual union all
      8          select 'Smith'     last_name, 171 employee_id, 172  manager_id from dual union all
      9          select 'De,Haan'   last_name, 102 employee_id, 169  manager_id from dual union all
    10          select 'Hunold'    last_name, 103 employee_id, 169  manager_id from dual union all
    11          select 'Austin'    last_name, 105 employee_id, 169  manager_id from dual union all
    12          select 'Ernst'     last_name, 104 employee_id, 170  manager_id from dual) e;
    LAST_NAME EMPLOYEE_ID MANAGER_ID
    King              100
    Cambrault         148        100
    Bates             172        148
    Bloom             169        148
    Fox               170        148
    Ozer              168        172
    Smith             171        172
    De,Haan           102        169
    Hunold            103        169
    Austin            105        169
    Ernst             104        170
    11 rows selected
    SQL>
    SQL> select substr(lpad(' ',2*(level-1)) || e.last_name,1,40) last_name,
      2         e.employee_id,
      3         e.manager_id
      4    from (select 'King'      last_name, 100 employee_id, null manager_id from dual union all
      5          select 'Cambrault' last_name, 148 employee_id, 100  manager_id from dual union all
      6          select 'Bates'     last_name, 172 employee_id, 148  manager_id from dual union all
      7          select 'Bloom'     last_name, 169 employee_id, 148  manager_id from dual union all
      8          select 'Fox'       last_name, 170 employee_id, 148  manager_id from dual union all
      9          select 'Ozer'      last_name, 168 employee_id, 172  manager_id from dual union all
    10          select 'Smith'     last_name, 171 employee_id, 172  manager_id from dual union all
    11          select 'De,Haan'   last_name, 102 employee_id, 169  manager_id from dual union all
    12          select 'Hunold'    last_name, 103 employee_id, 169  manager_id from dual union all
    13          select 'Austin'    last_name, 105 employee_id, 169  manager_id from dual union all
    14          select 'Ernst'     last_name, 104 employee_id, 170  manager_id from dual) e
    15    start with e.manager_id is null
    16    connect by prior e.employee_id = e.manager_id;
    LAST_NAME                                EMPLOYEE_ID MANAGER_ID
    King                                             100
      Cambrault                                      148        100
        Bloom                                        169        148
          De,Haan                                    102        169
          Hunold                                     103        169
          Austin                                     105        169
        Fox                                          170        148
          Ernst                                      104        170
        Bates                                        172        148
          Ozer                                       168        172
          Smith                                      171        172
    11 rows selected
    SQL>

  • Query Error - Help Please

    The query below returns this error message: "ORA-00918: column ambiguously defined" It points to the last line of the query, at 'Colour' before the equals....
    WITH  ranked_data  As
         SELECT Members_Order.Catalogue_ID, Item.Item_Description, Item.Colour, Item.Hire_Charge, Members_Order.Number_of_Days, (Hire_Charge * Number_of_Days) AS Total, Item.Colour, RANK () OVER (ORDER BY Hire_Charge * Number_of_Days DESC) AS rnk
         FROM Members_Order, Item
         WHERE Members_Order.Item_ID = Item.Item_ID
    SELECT * FROM ranked_data
    WHERE Colour  = (SELECT  Colour FROM ranked_data WHERE rnk = 1);Could anyone help?
    Edited by: user10945931 on 16-Apr-2009 10:54

    Hi,
    TRy this code.
    REgards Salim.
    WITH ranked_data AS
         (SELECT members_order.catalogue_id, item.item_description, item.colour,
                 item.hire_charge, members_order.number_of_days,
                 (hire_charge * number_of_days) AS total, item.colour,
                 RANK () OVER (ORDER BY hire_charge * number_of_days DESC) AS rnk
            FROM members_order, item
           WHERE members_order.item_id = item.item_id)
    SELECT t.*
      FROM ranked_data t
    WHERE t.colour = (SELECT t1.colour
                       FROM ranked_data t1
                      WHERE t1.rnk = 1);

  • Query Tuning Help please

    I ran the below query two times . first this query run within 4 minutes now it is running withing 20 minutes only . and how can I reduce the running time of this query.
    my first table TABLE1 has partitioned day wise.
    Total 14 partition in TABLE1 so if it runs for total 14 partitions it will take 14*20= 280 minutes.
    Index created for TABLE1 and TABLE2
    CREATE INDEX TABLE1_COL_A_INX ON TABLE1(COL_A);
    CREATE INDEX TABLE1_COL_B_INX ON TABLE1(COL_B);
    CREATE INDEX TABLE2_BNO_TYP_INX ON TABLE2(COL_B,RECORD_TYP);TABLE1 contain 3 billion records
    TABLE2 contain 87 thousand records
    INSERT INTO TARGET_TABLE
    SELECT   t1.col_A,
                             t1.col_b,
                             t1.record_typ,
                             TO_date('14/06/2012','DD/MM/YYYY') ,
                             MIN( start_dt) AS First_Seen,
                             MAX( start_dt) AS Last_Seen
                    FROM     TABLE1  t1,
                             TABLE2  t2
                    WHERE    t1.start_dt = TO_date('14/06/2012','DD/MM/YYYY') - 12   
                             AND t1.col_b = t2.col_b
                             AND t1.record_typ = t2.record_typ                                                                                    
                    GROUP BY t1.col_a,t1.col_b,t1.record_typ,TO_date('14/06/2012','DD/MM/YYYY') ;Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE 11.2.0.1.0 Production
    TNS for 64-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    Explain plan with statistics
    SQL>
    117794 rows selected.
    Execution Plan
    Plan hash value: 1844245574
    | Id  | Operation                           | Name                    | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     | Pstart| Pstop |
    |   0 | SELECT STATEMENT                    |                         |   147K|  7362K|       |   615K  (1)| 02:03:05 |       |       |
    |   1 |  HASH GROUP BY                      |                         |   147K|  7362K|  9320K|   615K  (1)| 02:03:05 |       |       |
    |   2 |   NESTED LOOPS                      |                         |       |       |       |         |             |       |       |
    |   3 |    NESTED LOOPS                     |                         |   147K|  7362K|       |   613K  (1)| 02:02:43 |       |       |
    |   4 |     TABLE ACCESS FULL               | TABEL2                  | 87586 |  1282K|       |   137   (1)| 00:00:02 |       |       |
    |   5 |     PARTITION RANGE SINGLE          |                         |     3 |       |       |     3   (0)| 00:00:01 |     4 |     4 |
    |*  6 |      INDEX RANGE SCAN               | TABLE1_COL_B_INX        |     3 |       |       |     3   (0)| 00:00:01 |     4 |     4 |
    |*  7 |    TABLE ACCESS BY LOCAL INDEX ROWID| TABLE1                  |     2 |    72 |       |     7   (0)| 00:00:01 |     4 |     4 |
    Predicate Information (identified by operation id):
       6 - access("T1"."COL_B"="T2"."COL_B")
       7 - filter("T1"."START_DT"=TO_DATE(' 2012-06-02 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND
                  "T1"."RECORD_TYP"="T2"."RECORD_TYP")
    Statistics
            105  recursive calls
              0  db block gets
         640720  consistent gets
         363307  physical reads
         635656  redo size
        3896682  bytes sent via SQL*Net to client
          86718  bytes received via SQL*Net from client
           7854  SQL*Net roundtrips to/from client
              2  sorts (memory)
              0  sorts (disk)
         117794  rows processed
    SQL>TKPROF
    SELECT   t1.COL_A,
                             t1.COL_B,
                             t1.record_typ,
                             TO_date('14/06/2012','DD/MM/YYYY') ,
                             MIN(start_dt) AS First_Seen,
                             MAX(start_dt) AS Last_Seen
                    FROM     TABLE1  t1,
                             TABLE2 t2
                    WHERE    t1.start_dt = TO_date('14/06/2012','DD/MM/YYYY') - 12
                             AND
                             t1.COL_B = t2.COL_B
                             AND t1.record_typ = t2.record_typ
                    GROUP BY t1.col_a,t1.col_b,t1.record_typ,TO_date('14/06/2012','DD/MM/YYYY')
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        0      0.00       0.00          0          0          0           0
    Execute      0      0.00       0.00          0          0          0           0
    Fetch     7853      0.15       0.28          0          0          0      117793
    total     7853      0.15       0.28          0          0          0      117793
    Misses in library cache during parse: 0
    Parsing user id: 85  Which parameters or settings I want to check , because this query run before 4 minutes. now it takes 20 minutes... or in anyway I can rewrite this query using multiple staging table or something like that...

    Hi,
    1) you didn't trace the session correctly -- you probably switched tracing off before the session finished fetching all rows. Do it again, and this time end tracing by exiting the session (this way you make sure that the cursor is closed and plan stats are dumped to the trace file)
    2) the plan seems to be sensible -- it costs you only 600k reads to retrieve 150k rows, that's good read-to-row ratio. You can improve it if you get read of TABLE ACCESS BY ROWID operation, but that would require creating an index on all the columns that the query needs (both in WHERE clause and in column projection) which looks like a big overhead (especially given that this is a table with 3 billion records)
    3) autotrace stats seem to agree with the plan -- you're making 600k gets and half of them result in single-block disk reads. Assuming 5ms per read that's close to 20 min that you are getting. Of course, 50% buffer cache ratio is far from being perfect, and better caching is most likely the reason why the query was performing better in the past. Look at the the buffer hit ratio trend for the database -- perhaps some other activity is trashing the buffer cache, resulting in performance degradation of this query as well
    Best regards,
    Nikolay

  • Query quote help-Please ignore this thread

    Dear all,
    Please ignore this thread.
    Thanks for understanding
    Kai
    Edited by: KaiS on Nov 12, 2009 9:33 AM

    try
    and A.subno =''' || subno || ''' ;' from usr_inf where rownum <300;
    those are two single quotes ('), not double quotes.

  • Help please deploying Crystal Decisions 10 to Microsoft 2008 R2 IIS 7

    Folks, I need your help please. We've been using Crystal Decisions 10 with MS Server 2003. We're migrating to a VM envirionment with MS Server 2008 R2. I have everything working except for our crystal reports. We are a mostly an ASP Classic enviroment.
    When the report is called it opens, the SP query does not fail but the data does not show in the activex viewer. If there is a tree view associated with the report, you can see the expandable data points on the left but the report does not actually appear. No errors are apparent either.
    This thing is killing my production. Any help would be greatly appreaciated!

    Hi Jack
    I moved your post to the SAP Crystal Reports - Legacy SDKs SCN Space.
    I really doubt that you will ever get this working. As Sastry mentioned, CR 10 did not support MS Server 2008 R2. The only version of CR (using classic ASP) to support anything close (WIN 7) was CR XI R2 (v. 11.5.x), Service Pack 6. See the following wiki for more details:
    Crystal Reports v. 9.1 to SAP Crystal Reports, developer version for Microsoft Visual Studio Runtime Distribution and S…
    For CR XI R2 SP 6 and WIN 7 I wrote a small blog - essentially collating info reported by customers on how to get ASP working - on WIN 7 (sometimes this works, other times...). See:
    Report Designer Component (RDC) in classic ASP applications on Win 2008 Server and Win 7 - Possible Solutions
    Please note that both CR 10.x and 11.5.x are out of support (have been for years). My recommendation, understanding that porting the app to more recent versions of CR and either the .NET or Java SDK is not possible:
    Update to CR XI R2 and keep your fingers crossed. Your chances of getting this to work CR 10 are pretty well zero. Your chance of getting this to work with CR XI R2 SP 6 are better, but still approaching zero. You may be able to obtain CR XI R2 by calling sales (866-681-3435) or check the Worldwide Office Locations | SAP.
    Last note. If you do manage to get CR XI R2, please so keep in mind that:
    1) CR XI R2 is no longer supported.
    2) You will be using CR XI R2 in an unsupported environment (Server 2008).
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • How to get reports cumulated balances? need help please

    Dear all,
    I need your help please in this issue.
    I am creting a report using reports designer in oracle, well the fact is i don't know how to do the following:
    if i have for example in the report the following to be diplayed :
    Date Amount Balance
    25/5/2011 2000
    27/5/2011 5000 should be calculated and equal to 2000+5000=*7000*
    28/5/2011 4000 calculated and equal to 7000 + 4000=*11000*
    29/5/2011 1000 calculated equal to 11000 + 1000 = 12000
    what is the method so i can get the balance values calculated 7000, 11000 and 12000? what do i do? any hints please
    thanks for your help

    Using analytic function can be done through query as below...
    SQL> SELECT EMPNO, ENAME, SAL, SUM(SAL) OVER (ORDER BY SAL ROWS UNBOUNDED PRECEDING) RUNNING_BALANCE
      2  FROM SCOTT.EMP
      3  /
         EMPNO ENAME             SAL RUNNING_BALANCE
          7369 SMITH             800             800
          7900 JAMES             950            1750
          7876 ADAMS            1100            2850
          7521 WARD             1250            4100
          7654 MARTIN           1250            5350
          7934 MILLER           1300            6650
          7844 TURNER           1500            8150
          7499 ALLEN            1600            9750
          7782 CLARK            2450           12200
          7698 BLAKE            2850           15050
          7566 JONES            2975           18025
          7788 SCOTT            3000           21025
          7902 FORD             3000           24025
          7839 KING             5000           29025
    14 rows selected.
    SQL> -Ammad

  • BI query F4 Help on portal

    Hi
    I have the BI 7.0 Query as a Iview on portal . The problem which I am facing is that F4 help for Date in selection screen is not popping up with a calendar but it is just giving dates like 20.01.2003, 21.01.2003 etc
    In bex when I press F4 for the same query calendar comes
    Please advice

    Hi,
    May I know, on what logic you want to display selection values?
    One way to achieve that is to restrict values in query, this will display your query result with only restricted value. But it will show all values in selection.
    Another option can be of using authorization, user will see only his authorized values in the selection.
    If you can describe your requirement in more details, more help can be provided.
    Regards,
    Ashish

  • I am unable to download pictures from my Sony Cybershot to my iMac, I have tried using the USB port as well as simply inserting the memory stick into the slot.  I have been able to do this in the past as recently as a few weeks ago.... Help please..

    I am unable to download pictures from my Sony Cybershot to my iMac, I have tried using the USB port as well as simply inserting the memory stick into the slot.  I have been able to do this in the past as recently as a few weeks ago.... Help please..

    Thanks Eric for responding.
    I checked and it does not appear in the Applications folder.
    I tried yesterday on an ethernet connection with a download speed of 2 Mbps but, unfortunately the connection died(It happened from the ISP end, which is out of my control) in between after which there was no trace of the download that happened for so long(till the internet connection death). 
    One more serious query which I am unable to understand. If the internet connection, dies in the midst of the download is in progress why is it so that the state does not persist and one has to restart the entire process again. Is there no solution for this?
    I tried so many times and its the same case after some amount of download it vanishes. So many unsuccessful attempts. I am ****** off now. Is it not possible to see Mavericks? Why does different machines of Apple behave differently? Somewhere it goes smoothly and somewhere like my mine. Why did not Apple release a non apple store version? Is this not a bad sign of letting the users struggle when something is being offered for free?
    The reason I asked as whether we can download the .app of Mavericks is that, there are so many applications that I have downloaded web and have installed. All that works fine. Can't we do the same here? You download a copy of Mavericks installer application and upload it for me in Google drive or like online storage places which can be downloaded and used by me? Help me understand.
    Thanks again.

  • The query processor ran out of stack space during query optimization. Please simplify the query

    Can you suggest me that what should i do in this case.
    Actually i am having one table that is a MasterTable.I am referring this table in more than 300 tables that means i am having foreign key of this primary key in 300+ tables.
    due to this i am getting following error during deleting any row,
    doesn't matter that data is existing in reference table or not.
    Error that i am getting is 
    "The query processor ran out of stack space during query optimization. Please simplify the query"
    Can you suggest me that what should i do to avoid this error,because i am unable to delete this entry.
    Apart from it,i am getting performance problem too,so is it due to such huge FK on it.
    Please suggest me on following points
    1. Is it worst way to handle it,if yes then please suggest me solution for it.
    2. If it is a correct way then what should i do if getting error during deleting any record.
    3. Is it right to create Foreign key on each table where i am saving data of this master. if no then how to manage integrity.
    4. What people do in huge database when they wants to create foreign key for any primary key.
    5. Can you suggest me that how DBA's are handling this in big database,where they are having huge no. of tables.

    The most common reason of getting such error is having more than 253 foreign key constraints on a table. 
    The max limit is documented here:
    http://msdn.microsoft.com/en-us/library/ms143432(SQL.90).aspx 
    Although a table can contain an unlimited number of FOREIGN KEY constraints, the recommended maximum is 253. Depending on the hardware configuration hosting SQL Server, specifying additional foreign key constraints may be expensive for the query
    optimizer to process. If you are on 32 bit, then you might want to move to 64 bit to get little bigger stack space but eventually having 300 FK is not something which would work in long run.
    Balmukund Lakhani | Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
    This posting is provided "AS IS" with no warranties, and confers no rights.
    My Blog |
    Team Blog | @Twitter
    Author: SQL Server 2012 AlwaysOn -
    Paperback, Kindle

  • Dynamic Insert Help Please

    quote:
    <cfoutput query="stand">
    <tr bgcolor="#IIf(CurrentRow Mod 2, DE('ffffff'),
    DE('cccccc'))#">
    <td>
    <select name="score_identifierscore"
    id="score_identifierscore">
    <option value="0" selected>0</option>
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    <option value="4">4</option>
    <option value="5">5</option>
    </select>
    <input name="score_identifier" type="hidden"
    id="score_identifier" value="#stand.ident_name#">
    <input name="score_teacherid" type="hidden"
    id="score_teacherid" value="#session.pstid#">
    <input name="score_studentid" type="hidden"
    id="score_studentid" value="#url.stid#">
    <input name="score_vid" type="hidden" id="score_vid"
    value="#url.vid#">
    <input name="score_staid" type="hidden" id="score_staid"
    value="#url.staid#">
    <input name="score_studentname" type="hidden"
    value="#studentname.first_name# #studentname.last_name#">
    </td>
    <td><div
    align="center">#stand.ident_name#</div></td>
    <td> #stand.ident_description#</td>
    </tr>
    </cfoutput>
    Start off by saying I work for a school corp, so my knowledge
    is limited to what I've taught myself and any help will be
    appreciated.
    Alright, here's what I have. I'm dynamically creating a list
    of standards and for each standard I want to submit a score chosen
    by the teacher and the identifier along with some other
    information. My problem is that on the insert I can't figure out
    how to match score with identifier. I can't possibly create a field
    in the table for every identifier, so I need to take the list and
    insert it into another table with score_identifer and
    score_identifierscore and so on....the above way is not workign for
    me.
    How can I get this accomplished, I can usually work off of
    examples, so please examples or any help please? If you have a
    better way, I'm up for it, because this way isn't working.
    Thanks in advance...

    quote:
    Originally posted by:
    AlwaysWannaLearn
    What does the INSERT statement look like?
    Why can't you create a table with columns names as: PK,
    score_identifierscore, score_identifier, score_teacherid,
    score_studentid, score_vid, score_staid, score_studentname this way
    you can also map any of these fields against other tables to create
    a more robust query result set?
    Almost exactly the way I have it setup. Small snippet of the
    dynamically generate html code that the user inputs. The problem is
    in my insert statement:
    <tr bgcolor="ffffff">
    <td>
    <select name="score_identifierscore"
    id="score_identifierscore">
    <option value="0" selected>0</option>
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    <option value="4">4</option>
    <option value="5">5</option>
    </select>
    <input name="score_identifier" type="hidden"
    id="score_identifier" value="F1.17.1 ">
    </td>
    <td><div align="center">F1.17.1
    </div></td>
    <td> Estimate and secure necessary supplies
    </td>
    </tr>
    <tr bgcolor="cccccc">
    <td>
    <select name="score_identifierscore"
    id="score_identifierscore">
    <option value="0" selected>0</option>
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    <option value="4">4</option>
    <option value="5">5</option>
    </select>
    <input name="score_identifier" type="hidden"
    id="score_identifier" value="F1.17.2">
    </td>
    <td><div align="center">F1.17.2
    </div></td>
    <td> Determine plants, shrubs, and tree
    locations
    </td>
    </tr>
    <input name="score_teacherid" type="hidden"
    id="score_teacherid" value="#session.pstid#">
    <input name="score_studentid" type="hidden"
    id="score_studentid" value="#url.stid#">
    <input name="score_vid" type="hidden" id="score_vid"
    value="#url.vid#">
    <input name="score_staid" type="hidden" id="score_staid"
    value="#url.staid#">
    <input name="score_studentname" type="hidden"
    value="#studentname.first_name# #studentname.last_name#">
    Here's my insert statement, but now that I've look at it,
    that won't match the identifier with the score, so it's crap. Any
    help is appreciated. Thanks
    <cfloop index="I" list="#form.score_identifier#"
    delimiters=",">
    <cfquery datasource="whatever">
    INSERT INTO voc_scores
    (score_studentid, score_vid, score_staid, score_identifier,
    score_teacherid, score_studentname,score_identifierscore)
    VALUES('#FORM.score_studentid#','#FORM.score_vid#','#FORM.score_staid#','#I#','#FORM.score _teacherid#','#FORM.score_studentname#',
    '#FORM.score_identifierscore#')
    </cfquery>
    </cfloop>

  • b font color ='red' Java JDBC and Oracle DB URGENT HELP PLEASE /font /b

    Hello, I am a newbie. I'm very interested in Java in relation to JDBC, Oracle and SAP.I am trying to connect to an Oracle DB and I have problems to display the output on the consule in my application. What am I doing wrong here . Please help me. This is my code: Please Explain
    import java.sql.*;
    import java.sql.DriverManager;
    import java.sql.Connection;
    public class SqlConnection {
         public static void main(String[] args) {
              Class.forName("oracle.jdbc.driver.OracleDriver"); //Loading the Oracle Driver.
              Connection con = DriverManager.getConnection
              ("jdbc:orcle:thin:@34.218.5.3:1521:ruka","data","data"); //making the connection.
              Statement stmt = con.createStatement ();// Sending a query to the database
              ResultSet rs = stmt.executeQuery("SELECT man,jean,test,kok FROM sa_kostl");
              while (rs.next()) {
                   String man = rs.getString("1");
                   String jean = rs.getString("2");
                   String test = rs.getString("3");
                   String kok = rs.getString("4");
                   System.out.println( man, jean, test,kok );//here where my the
                                                 //compiler gives me errors
              stmt.close();
              con.close();
    }

    <b><font color ='red'>Java JDBC and Oracle DB URGENT HELP PLEASE</font></b>Too bad your attempt at getting your subject to have greater attention failed :p

  • I keep being asked to update my Safari but when I do a Software update it scans but never gives me a list and just says no new updates. Help please!

    I keep being asked to update my Safari but when I do a Software update it scans but never gives me a list and just says no new updates. Help please!

    There are no updates to either OS 10.5.8 or Safari 5.0.6.
    If you need a later version of Safari you must first upgrade your operating system to a later version of OS X.

  • At the end of my IMovie I want to write some text: as in" Happy Birthday Mandy we had a great time with you. etc..  How do I go about this? Which icon in IMovie lets me have a place to write text?? help please

    Please see my ? above: Im making an IMovie and need the last frame to just be text (can be on a color). I don't know how to go about doing this.  Ive already done all my photos and captions. Need to have it ready for TOMORROW: Friday May 23rd. Help please!
    Thanks

    You can choose a background for the text from Maps and Backgrounds.  Just drag a background to the end of the timeline, adjust to desired duration then drag title above it.
    Geoff.

Maybe you are looking for

  • How to load external data to SAP BW?

    Hi All, I try to load data from external application to SAP ware house using RFC, as i am new to SAP BW, I would like describe my question as below. 1. I have run RFC server in my local machine and resister in the SAP system successfully. 2. In the s

  • When trying to install flash ERROR!

    I have been trying to get flash to work on my computer for over a month. I have tried everything from uninstalling to installing. Changing settings, restoring to an earlier date, you name it I tried it. I was on a chat with HP yesterday for 6 hours -

  • Is it possible to delete photos that I have imported from my PC ?

    I imported some photos from my pc onto my Iphone4 but some are not very clear on the phone so I want to delete them. But I cannot find how to do this. I can delete photos I have taken but not those imported. Anyone got any ideas ?

  • The session variable has no value definition

    Hi Gurus, For all Dashboard reports and Adhoc reports suddenly we are facing the below error for some users A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 23006] The session variable, NQ_SESSION.AREA, has no va

  • Lightroom 5 - problem with diashow

    Diashow doesn't run. When I start the preview of the diashow I always see a black screen. And it is also not possible to export the video. Do you have some ideas to solve the Problem? in Lightroom 4 all the function ran very well.