interface SQL problem

Hello
I am John and I am facing problem with the sql interface.
his does not work. How do I solve it

Vinil

Vinil,

Yes, it might be.

1. I think you go to control panel-> administration-> sources ODBC tools.

2. not to do this, go to C:\WINDOWS\system32\odbcad32.exe and create a DSN system here.

3. now, try to do the same step in the opening of the data preparation editor and... to see the name of the newly created System DSN

I would like to know if it works.

Sandeep Reddy, Enti
HCC
http://hyperionconsultancy.com/

Tags: Business Intelligence

Similar Questions

  • A parsing sql problem?

    Hi all

    I'm on the OracleXE 11 GR 2 and have the following conditions for the release of the select statement:
    Tables:
    GARAGE
    ======
     ID GARAGE_NAME
    --- -----------
      1    GARAGE_1
      2    GARAGE_2
      
    
    PERSONS
    =======
     ID GARAGE_ID NAME
    --- --------- -----
      1         1 NAME1_1
      2         1 NAME1_2
      3         1 NAME1_3
      4         1 NAME1_4
      5         1 NAME1_5
      6         1 NAME1_6
      7         2 NAME2_1
      8         2 NAME2_2
      9         2 NAME2_3
     10         2 NAME2_4
    
    CARS 
    ==== 
     ID GARAGE_ID CAR
    --- --------- -----
      1         1 CAR1_1
      2         1 CAR1_2
      3         1 CAR1_3
      4         1 CAR1_4
      5         2 CAR2_1
      6         1 CAR2_2
      7         1 CAR2_3
      8         1 CAR2_4
      9         1 CAR2_5
     10         1 CAR2_6
    The power required is:
    GARAGE_ID GARAGE_NAME CAR    PERSON
    --------- ----------- ------ -------
            1    GARAGE_1 CAR1_1 NAME1_1
            1    GARAGE_1 CAR1_2 NAME1_2
            1    GARAGE_1 CAR1_3 NAME1_3
            1    GARAGE_1 CAR1_4 NAME1_4
            1    GARAGE_1        NAME1_5
            1    GARAGE_1        NAME1_6
            2    GARAGE_2 CAR2_1 NAME2_1
            2    GARAGE_2 CAR2_2 NAME2_2
            2    GARAGE_2 CAR2_3 NAME2_3
            2    GARAGE_2 CAR2_4 NAME2_4
            2    GARAGE_2 CAR2_5 
            2    GARAGE_2 CAR2_6 
    How can I achieve this output?
    What is a parsing SQL problem?
    Dear community, I need your help!

    Kind regards

    Looks like than just an outer join...

    But how are you going to jining cars and people - from the name?

    Or something like that?

    with c as
    (
      select c.garage_id,c.car,g.garage_name g_name,
             row_number() over(partition by c.garage_id order by c.id) rn
      from cars c,garage g
      where c.garage_id = g.id
    ),
    p as
    (
      select p.garage_id,p.name p_name,g.garage_name g_name,
             row_number() over(partition by p.garage_id order by p.id) rn
      from persons p,garage g
      where p.garage_id = g.id
    )
    select nvl(p.garage_id,c.garage_id) garage_id,
           nvl(p.g_name,c.g_name) garage_name,
           car,p_name person
    from c
         full outer join p on
          (c.garage_id = p.garage_id and c.rn = p.rn);
    
    GARAGE_ID GARAGE_NAME CAR    PERSON
    --------- ----------- ------ -------
            1 GARAGE_1    CAR1_1 NAME1_1
            1 GARAGE_1    CAR1_2 NAME1_2
            1 GARAGE_1    CAR1_3 NAME1_3
            1 GARAGE_1    CAR1_4 NAME1_4
            1 GARAGE_1           NAME1_5
            1 GARAGE_1           NAME1_6
            2 GARAGE_2    CAR2_1 NAME2_1
            2 GARAGE_2    CAR2_2 NAME2_2
            2 GARAGE_2    CAR2_3 NAME2_3
            2 GARAGE_2    CAR2_4 NAME2_4
            2 GARAGE_2    CAR2_5
            2 GARAGE_2    CAR2_6         
    
     12 rows selected 
    

    If this isn't what you want, please explain the logic to get to your exit.
    Published by: JAC on November 17, 2012 15:15

  • SQL +-PROBLEM OF QUERY IN MULTI TABLE

    HAI ALL,

    ANY SUGGESTION PLEASE?

    SUP: SQL +-PROBLEM OF QUERY IN MULTI TABLE


    SQL + QUERY DATA:
    -----------
    SELECT PATIENT_NUM, PATIENT_NAME, HMTLY_TEST_NAME, HMTLY_RBC_VALUE,

    HMTLY_RBC_NORMAL_VALUE, DLC_TEST_NAME, DLC_POLYMORPHS_VALUE,

    PATIENTS_MASTER1 DLC_POLYMORPHS_NORMAL_VALUE, HAEMATOLOGY1,

    DIFFERENTIAL_LEUCOCYTE_COUNT1
    WHERE PATIENT_NUM = HMTLY_PATIENT_NUM AND PATIENT_NUM = DLC_PATIENT_NUM AND PATIENT_NUM

    = & PATIENT_NUM;
    -----------
    RESULT:

    & PATIENT_NUM = 1
    no selected line
    ---------
    & PATIENT_NUM = 2
    no selected line
    ------------
    & PATIENT_NUM = 3
    PATIENT_NUM 3

    PATIENT_NAME KKKK

    HMTLY_TEST_NAME HEMATOLOGY

    HMTLY_RBC_VALUE 4
    4.6 - 6.0 HMTLY_RBC_NORMAL

    DLC_TEST_NAME LEUKOCYTE COUNT PREMIUM

    DLC_POLYMORPHS_VALUE 60

    DLC_POLYMORPHS_NORMAL_VALUE 40-65

    -------------
    -------------

    REAL WILL BE:

    & PATIENT_NUM = 1

    PATIENT_NUM 1

    PATIENT_NAME BBBB

    HMTLY_TEST_NAME HEMATOLOGY

    HMTLY_RBC_VALUE 5
    4.6 - 6.0 HMTLY_RBC_NORMAL

    -----------

    & PATIENT_NUM = 2

    PATIENT_NUM 2

    PATIENT_NAME GEORGE

    DLC_TEST_NAME LEUKOCYTE COUNT PREMIUM

    DLC_POLYMORPHS_VALUE 42

    DLC_POLYMORPHS_NORMAL_VALUE 40-65
    ---------------
    & PATIENT_NUM = 3
    PATIENT_NUM 3

    PATIENT_NAME KKKK

    HMTLY_TEST_NAME HEMATOLOGY

    HMTLY_RBC_VALUE 4
    4.6 - 6.0 HMTLY_RBC_NORMAL

    DLC_TEST_NAME LEUKOCYTE COUNT PREMIUM

    DLC_POLYMORPHS_VALUE 60

    DLC_POLYMORPHS_NORMAL_VALUE 40-65
    ----------------------------

    4 TABLES OF LABORATORY CLINIC FOR DATA ENTRY AND GET REPORT ONLY FOR THE TESTS CARRIED OUT FOR PARTICULAR

    PATIENT.

    TABLE1:PATIENTS_MASTER1
    COLUMNS: PATIENT_NUM, PATIENT_NAME,

    VALUES:
    PATIENT_NUM
    1
    2
    3
    4
    PATIENT_NAME
    BENAMER
    GIROT
    KKKK
    PPPP
    ---------------
    TABLE2:TESTS_MASTER1
    COLUMNS: TEST_NUM, TEST_NAME

    VALUES:
    TEST_NUM
    1
    2
    TEST_NAME
    HEMATOLOGY
    DIFFERENTIAL LEUKOCYTE COUNT
    -------------

    TABLE3:HAEMATOLOGY1
    COLUMNS:
    HMTLY_NUM, HMTLY_PATIENT_NUM, HMTLY_TEST_NAME, HMTLY_RBC_VALUE, HMTLY_RBC_NORMAL_VALUE

    VALUES:
    HMTLY_NUM
    1
    2
    HMTLY_PATIENT_NUM
    1
    3
    MTLY_TEST_NAME
    HEMATOLOGY
    HEMATOLOGY
    HMTLY_RBC_VALUE
    5
    4
    HMTLY_RBC_NORMAL_VALUE
    4.6 - 6.0
    4.6 - 6.0
    ------------

    TABLE4:DIFFERENTIAL_LEUCOCYTE_COUNT1
    COLUMNS: DLC_NUM, DLC_PATIENT_NUM, DLC_TEST_NAME, DLC_POLYMORPHS_VALUE, DLC_POLYMORPHS_

    NORMAL_VALUE,

    VALUES:
    DLC_NUM
    1
    2
    DLC_PATIENT_NUM
    2
    3
    DLC_TEST_NAME
    DIFFERENTIAL LEUKOCYTE COUNT
    DIFFERENTIAL LEUKOCYTE COUNT
    DLC_POLYMORPHS_VALUE
    42
    60
    DLC_POLYMORPHS_NORMAL_VALUE
    40-65
    40-65
    -----------------


    Thank you
    RCS
    E-mail:[email protected]
    --------

    I think you want an OUTER JOIN

    SELECT PATIENT_NUM, PATIENT_NAME, HMTLY_TEST_NAME, HMTLY_RBC_VALUE,
     HMTLY_RBC_NORMAL_VALUE, DLC_TEST_NAME, DLC_POLYMORPHS_VALUE,
     DLC_POLYMORPHS_NORMAL_VALUE
    FROM PATIENTS_MASTER1, HAEMATOLOGY1,  DIFFERENTIAL_LEUCOCYTE_COUNT1
    WHERE PATIENT_NUM = HMTLY_PATIENT_NUM (+)
    AND PATIENT_NUM = DLC_PATIENT_NUM (+)
    AND PATIENT_NUM = &PATIENT_NUM;
    

    Published by: shoblock on November 5, 2008 12:17
    the outer join brands became stupid emoticons or something. try hard

  • version of interface inspection problem

    Try to configure the interface of the Inspector via ' create new custom of interface:

    2009 VBAI and LabVIEW 2009 running. Edition example of interface customized to add digital entries.

    Registered as LV/2009 I get the error msg: "this step only supports screw LabVIEW 8.5.

    Tried except for the previous version (8.5) and "it is not VI in the specified path.

    I'm new, but it had local support here Friday - he left looking for answers (not a vision guy and I'm not a guy of LV).

    Thought I'd throw it here, too.

    Any help?  Thank you! -Mike

    Vision Builder HAVE 2009 SP1 should release in the coming weeks and it will fix this problem. In the next version it will allow you to use screws that have been registered for the previous a more recent version of LV when you register for precedent it creates a VI that is compatible with the LV 8.5, but it has not been compiled in LV 8.5 yet. Vision Builder AI 2009 SP1 will compile now screw for you (if you choose to have the Vision Builder AI fix the problem for you), which means that it will support elderly live, recorded for other operating systems and screws not compiled to the correct operating system (i.e. If you use a smart camera, you won't need to compile the VI for VxWorks more) , and screws saved for a previous one. This applies to the step of the custom user interface and the step run a LabVIEW VI.

  • interface vlan problems addin

    Hello

    I have a problem with my 8164F with 6.1.0.1 powerconnect version

    I create the vlan 643

    then I create an interface vlan

    interface vlan 643
    IP 172.24.64.2 255.255.240.0
    output

    When I ping the ip address of the switch

    ping 172.24.64.2
    Ping 172.24.64.2 with 0 bytes of data:

    4 packets transmitted, 0 packets received, 100% packet loss
    round-trip (MS) min/avg/max =<10><10><>

    in the journal, I have the following line

    <173>11 Jun 14:39:29 172.16.8.100 - 2 TRAPMGR [1206213340]: traputil.c (697) 1604 %% link on Vl643 is down

    show ip interface vlan 643

    State of the routing interface... Down
    Primary IP address... 172.24.64.2/255.255.240.0
    Method......................................... Manual
    Routing mode... Enable
    Administrative mode... Enable
    NET before realized emissions... Disable
    Proxy ARP...................................... Enable
    Local Proxy ARP... Disable
    Statement of assets... Inactive
    MAC address... D067. E595.0B1A
    Type of encapsulation... Ethernet
    IP MTU......................................... 1500
    Bandwidth...................................... 10000 Kbps
    Destination unreachable... Activated
    ICMP redirects... Activated

    that really interested me

    I simplified my config and merge the two portchannel.

    and it works.

    I'll come by later to STDs

  • To UPDATE/DELETE SQL problems

    Once I created a connection to my local DB Table, I can INSERT as many times I want.  Using this same Table DB, I can't put DAY/remove this line (the one I have just inserted).  SELECT works very well and I have not received any SQL errors.

    I am positive that all my SQL commands are typed correctly and works as I tested on other data in the same DB table that was created outside my request.  It seems that as soon as my application has modified the information in this line, the line becomes locked

    Any ideas?  Thank you

    I managed to solve the problem, guess I wasn't paying enough attention when I reread my INSERT queries, I put single quotes around the int index, so I need these quotes on other queries

  • Teredo tunneling Pseudo-Interface driver problem

    Hello.

    I was wondering if anyone else has had problems with this driver "teredo tunneling Pseudo-Interface"?

    I just bought a computer laptop sony vaio with windows 7 preinstalled (and a buncha need other nonsense that I don't really want or (?)), and from the day I brought it home I was getting blue screen breaks down every day, sometimes several times a day, with the 'bad pool head' as a reason.  (the computer used to determine tool wasn't bad RAM, which seems to imply bad driver any...)    After HOURS of research, relocation, etc. (and I'm really NOT very savvy... was a hellish nightmare of tedious) I found that my vaio under the "devices" window, said there was a problem with this driver.  I don't know what it is, how it happened on my computer and even after researching online, I can't even really tell what it is supposed to do.  I have since uninstalled/removed and for 48 hours up to now no blue screen... I keep the crossed numbers.

    even had squad geek of the best buy on line today, to try to make sure there weren't remainders hidden him somewhere and the gentleman, that I spoke also put doubt how it came to be installed on my computer, and how it got damaged.

    anyone has any comment on the issue, is known to cause problems or was my isolated problem? I have not intentionally saved all depressed, I have no idea how to do that, with regard to troubleshooting.

    any help is greatly appreciated.

    a life seriously "non-geek" in a world of geek...

    Hello

    Since this is a new computer, you really need to get Sony to repair or replace the system. BlueScreens
    on a new system of are NOT good and should be set by the manufacturer of the system.

    Sony - Contacts
    http://eSupport.Sony.com/us/Perl/contact-land.pl

    Sony - drivers
    http://eSupport.Sony.com/Perl/select-System.pl

    Sony - Support
    http://eSupport.Sony.com/

    -------------------------------------------------------------

    If you want to troubleshoot problems check this thread for more information on using BlueScreenView.
    MyEventViewer and other methods of troubleshooting BlueScreens - two top answers.

    http://social.answers.Microsoft.com/forums/en-us/w7repair/thread/8df6485a-50cc-4cdc-BE3E-0f05c7745117

    =================================

    Check these threads for the teredo pseudo-interface.

    http://social.answers.Microsoft.com/forums/en/w7network/thread/754c8f29-3a87-4E77-Babd-a69c8910e17e

    http://social.answers.Microsoft.com/forums/en-us/w7hardware/thread/757db042-c91e-464c-B963-c1f442fdf925

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • Web interface SG200 problems - 50 p

    I just bought a Cisco SG200 - 50 used p switch. I use it in my house. I'm trying to access the web based interface to play and manage the switch. The problem is that the interface doesn't have any language and it does give me an option to select English. I am able to open a session, once again, the initial screen is without any text at all. I've attached screenshots. What I am doing wrong?

    Any help would be appreciated?

    Hello

    It is because of IE, the IP address of the switch must be approved in Internet Explorer

    IE under internet option--> Security--> Trusted site--> click on Site and add the IP address of the switch to Trusted Sites and try again

    Please rate this post or mark it as answered to help other customers of Cisco

    Thank you

    Mehdi

  • Cisco Nexus 3548/3524 SNMP Interface traffic problem

    Hi all!

    I would like to share with you the problem I've encountered SNMP interface respect tracking on the Cisco Nexus 3500 of traffic devices.

    We is transferring our network infrastructure in the Nexus and we encountered a problem with the interface bitrate of tracking traffic on Nexus 3548: deltas SNMP counter ifHCInOctets and ifHCOutOctets show no valid data.

    We have investigated this issue and figured he could be linked with the refresh rate of the meter.
    I measured, by snmpwalk, the time between simple increments the counter ifHCInOctets to Interface VLAN and it apears to about 140seconds. But for physical interfaces (Eth), the interval of interface SNMP counters are 15 seconds and with sampling frequency of the 1960s for the queries we can still observe the problems on graphs (see attached screnshot).

    We get the same results when testing the question on various physical devices (3548 Nexus) on versions of different software - including the last being.

    And for Ethernet interfaces (same NMS - ZABBIX-config):

    We tested a wide Huawei s6700 switches and the range of Cisco IOS devices and there is no such problems.

    The main problem is that we cannot monitor our crucial nexus, via SNMP devices (as you can see from the attached chart).  Results are the same when configure us Cacti or Zabbix to monitor Nexus devices.

    The results of this monitoring not having meritorical value or use.

    We are working on this case with Cisco TAC, and they manage to reproduce the problem in their LAB environment. But for now, they cannot provide any solution and they claim that this isn't a bug. If we get any final statement for this case, I'll post here for your information.

    I'll be more than happy if you can post ideas that help me solve the problem described.

    Thank you in advance!

    Michal

    Looks like a bug to me.  His return of erroneous data.

    Maybe try asking your file be traced back to the team leader.

  • How can I solve the RDP and SQL problems after cloning of a paralytic?

    I got a job Server 2008 R2 system running SQL Server Enterprise 2012 all on an 8 G/4CPU VM and did a ' copy to ' VAPP Cloner.

    The new VAPP has been on one VLAN separated. During the copy process, customizing of comments was shortlisted, and I gave the new virtual machine, a new name for the machine. I can access both VLAN via my WIndows 7 x 64 desktop client OpenVPN.

    So far so good, I could use the vDC to log on the new machine of vApp using my previous administrator credentials.

    I found myself with two problems though...

    (1) none of my previous connections will work with SQL Server, when I try to launch SQL Server Management Studio. I get a message saying "Connection failed for user 'newmachine\user'" so maybe the MSN usr for duplicate users are not the same as the original sid user? I think that he could not tell the difference, if everything has been cloned and the machine name has changed.

    (2) my RDP 7 Windows client does not connect unless I have configure the new server to allow "a MOP" instead of just "Network Level Authentication" that has been configured on the original server that I cloned from. When I activate "all RDP" I can RDP into the cloned fine system.

    The cloned machine had the new name of the machine and a new SID assigned by the cloning process. The original and clone are on VLAN isolated and cannot see. Both not use areas and working groups.

    If I leave the cloned server THAT RDP "NLA" value only as the original server, my Windows 7 client gets a message complaining that RDP does not support the NLA for the cloned machine. RDP works fine connecting to the original server that still has not specified NLA. The RDP instance that says I need enabled NLA, watch NLA is activated in the about box.

    Someone at - he saw either of these issues? Any suggestions?

    Thanks, Dave

    Hi, my understanding is that sysprep does much more than simply by changing the SID of the box, it will also use the SID to regenerate the local MSN accounts system which is problably the origin of the problem, you're experiency. This is done for the security reasosns avoid guests who have accounts with the same sid on different machines. There is a tool called newsid that changes the SID of the server and let the system SID accounts because they were, but it has been known to have other issues but allow him to achieve what you want? I thiknk MS have retired it now, but you can always download on the net.

    If you need get SQL running sysprep and want to automate the process to set up your DB and users following post useful:

    http://msdn.Microsoft.com/en-us/library/ee210754.aspx

  • form_check.php returns the Configuration of SQL problem

    Hello, I'm hosting the MUSE outside BC and the shape cannot send e-mail. http:// /scripts/form_check.php < site > shows that there is a problem of Configuration of SQL. How to repair?

    SQL is just unused (like many other technologies that are installed on your hosting problem).

    Please refer to Troubleshooting Muse form used on the servers of third party Widgets>. Generally, the arguments are going to spam or the host has restrictions on what emails, you can send to. It is common for the default hosts only allow sending messages of form to an e-mail address on the same domain (monentreprise.com) as the Web site.

  • Body of function from PL/SQL query SQL - problem with where Cluase return

    Hi all
    I have problem with sub PL/SQL. Where clause does not filter the values even when I change the value: P7_INVESTIGATOR. I have marked with an asterisk for where clause where I want the values to filtered.


    DECLARE
    v_sql varchar2 (5000);
    v_inv VARCHAR2 (100);

    Start
    v_inv: = UPPER(:P7_INVESTIGATOR);

    v_sql: = ' select TBLCASES. INVESTIGATOR as an INVESTIGATOR,';
    v_sql: = v_sql | "TBLCASES. CASENUMBER as CASENUMBER,';
    v_sql: = v_sql | "TBLCASES. OPENDATE as OPENDATE,';
    v_sql: = v_sql | "TBLCASES. ESTCOMPLETE as DATE_CIBLE,';
    v_sql: = v_sql | "TBLCASES. STATUS of STATUS ';
    v_sql: = v_sql | "TBLCASES. Case CODE case CODE as,';
    v_sql: = V_sql | "TBLCASES. FAIR_HOTLINE as FAIRHotline,';
    v_sql: = v_sql | "TBLCASES. NYSIG as NYSIGCase,';
    v_sql: = v_sql | "TBLCASES. The REGION';
    v_sql: = v_sql | "TBLCASES. PROGAREA as PROGArea ';
    v_sql: = v_sql | ' from TBLCASES where 1 = 1';
    **************************************************************
    If v_inv <>null then
    v_sql
    : = v_sql | "and UPPER (trim (tblcases.investigator)) = UPPER (trim (v_inv))';
    END IF;
    ***************************************************************
    v_sql: = v_sql | "order by tblcases.investigator";
    Return v_sql;
    end;


    Thank you

    wrote:
    Or it is possible to write it this way:

    if v_inv is not null then
    v_sql := v_sql ||'  and UPPER(trim(tblcases.investigator)) = UPPER(trim(:P7_INVESTIGATOR))';
    END IF ;
    

    In this case we will use bind variables and we all know that it is very important.

    Lev

    Of cause, it is the best option. and I strongly suggest the OP to use.
    But it depends on how the sql is used later.
    Without knowing that, we cannot be sure if the item is available here.

  • SQL - problem starting Data Modeler

    Hello
    I created a relational model with Oracle SQL Developer maker data, with a few tables, and everything worked ok.
    Yesterday, I made some changes to the model, add columns and another table, saved the template and closed the Data Modeler.
    Today - when I tried to open the template, I get only an error 'some objects are not loaded correctly. See the log file for more details"

    Shows that the newspaper at the bottom of the Data Modeler: ' Open Design: "model name" "and no details of what went wrong. No other details are provided and as far as I can see - and now I can't view the model at all.

    Any ideas how to find the problem / fix in order to retrieve the created model?

    Thank you
    Coenraad

    You must open the file ' a - erd2.xml ' (with text editor) and look for the name of your models - they are in such a construction:

              Logic
    ....

    You should not some special characters in the name of the party: <&>'.
    'Name' in the example above makes sense (the text between the opening tag and closing name - ). Normally the Modeler must handle these characters, but of course, there is a bug in the persistence of this file.

    Philippe

  • Interface SQL and Group By

    Is it possible to use the Group By clause in the SQL interface or what I need to create a view in the data source with the group required to achieve this?

    You can simply drop your entire sql statement in the first box. Ignore others in the State of charge of sql.

    I tend to develop my sql scripts in another tool (like the toad) and then copy and paste the script into the charge status select box (you need to remove the word "select" in your statement). This way you can make order bys, joins, all you want.

    Published by: Sean V on March 10, 2009 08:25

  • PL | SQL problem: PLS-00302:

    Hello

    I'm runing trouble a piece of PL/SQL. The problem is that I get an initialization error, but the variable cannot be initialized.
    set serveroutput on;
    declare
          cursor cust is
                          select order_id, item_id from ph2 
                          order by order_date, customer_id, ship_date, order_id, item_id
                          for update of order_id, item_id;
                          
          neworder_id  ph2_item.order_id%type;
          multicust multi_site_cust.cust%type;
          newitem_id ph2_item.item_id%type;
          
          
    begin
            /*Initialising neworder_id */
            select 
                  max(order_id)+1
            into
                  neworder_id
            from
                  sales_order;     
            
            newitem_id := 1;
                      
             for c_rec in cust loop
             
             /*initilising multicust */
                select
                      customer
                into
                      multicust
                from
                      multi_ships_cust
                order by
                      customer;
    
                    update 
                            ph2_item p 
                        set 
                            p.order_id =
                                      (
                                        case
                                              when 
                                                    c_rec.customer_id = multicust
                                              then 
                                                    neworder_id
                                              else
                                                    neworder_id + 1
                                         end
                                      ),
                            p.item_id = 
                                     (
                                      case
                                              when 
                                                    c_rec.customer_id = multicust
                                              then
                                                    newitem_id + 1 
                                              --else
                                                   -- newitem_id
                                        end
                                     )
                   where current of cust;
              end loop;
    end;
    /

    Evil in the definition of the cursor. You must select the customer_id in the definition of the cursor cust. check the code below

    Set serveroutput on;
    declare
    client cursor is
    Select order_id, item_id, customer_id ph2
    order of order_date, customer_id, order_id item_id, ship_date
    update the order_id, item_id;

    neworder_id ph2_item.order_id%type;
    multicust multi_site_cust.cust%type;
    newitem_id ph2_item.item_id%type;

    Start
    / * Initialization neworder_id * /.
    Select
    Max (order_id) + 1
    in
    neworder_id
    Of
    sales_order;

    newitem_id: = 1;

    for c_rec looping cust

    / * initilising multicust * /.
    Select
    customer
    in
    multicust
    Of
    multi_ships_cust
    order by
    customer;

    Update
    ph2_item p
    set
    p.order_id =
    (
    case
    When
    c_rec.customer_id = multicust
    then
    neworder_id
    on the other
    neworder_id + 1
    end
    ),
    p.item_id =
    (
    case
    When
    c_rec.customer_id = multicust
    then
    newitem_id + 1
    -other
    -newitem_id
    end
    )
    the location being the customer.
    end loop;
    end;
    /

    Published by: cdkumar on October 6, 2008 14:55

Maybe you are looking for

  • NB520 do not run Skype

    Performance for SKYPE. I was recommended to replace my trusty R-100 a 1.1 Ghz single core with 1.25 MB of RAM with the duel core NB520 etc., after the beginning of disorders of the mobo. I can't begin to say how disappointed I am with it. After havin

  • Satellite A500 - click right does not

    Please give me a way on how can I fix my laptop problem. I use Toshiba Satellite A500 on Windows 7. It s over 22 months, no problems until recently. For some time, the right click on my touchpad no longer works. Double tapping left and, click the job

  • XP Service Pack 3 KB936929

    I can't install Service Pack 3. I have disabled the anti-virus programs, wrote to Microsoft, spent hours searching forums. The code KB93629 happens. Where can I go for help? I find no phone number even if the site says that it is available. Does anyo

  • my email address has been blocked from sending emails, and I need help as soon as possible.

    I tried for 3 days get my fixed email account! I have received no help and im very angry against this process. I also had my old account e-mail * address email is removed from the privacy * stolen from me and I need this account has been closed and I

  • Report on the seller's account is disabled?

    Hello I'm connected with my seller account IDs, but I get the error message like "account of supplier status is disabled. How can I proceed? I want to record a Blackberry world app. Please help me. Thank you best regards &,. Naresh Kodumuri.