How to know what sub query returns multiple rows

Hi all

Someone can give me hints, how to know what sub query returns many rows in the following query.
/* Formatted on 2011/05/17 19:22 (Formatter Plus v4.8.8) */
SELECT a.*, ROWNUM AS rnm
  FROM (SELECT DISTINCT '1' AS "Page View", ou.org_unit_name AS "Org",
                        prxm.mbr_idntfr AS "Beneficiary ID",
                           md.last_name
                        || ', '
                        || md.first_name AS "Beneficiary Name",
                        pci.idntfr AS "Tracking No.",
                        TO_CHAR (TRUNC (req.pa_rqst_date),
                                 'MM/dd/yyyy'
                                ) AS "Request Date",
                        sts.status_name AS "Status",
                        req.pa_rqst_sid AS "Request #",
                        prxm.mbr_sid AS "Mbr_sid",
                        TO_CHAR
                              (TRUNC (req.pa_revision_date),
                               'MM/dd/yyyy'
                              ) AS "Last Updated",
                        TO_CHAR (psd.TO_DATE, 'MM/dd/yyyy') AS "TO_DATE",
                        prxpl.prvdr_lctn_iid AS "PRVDR_LCTN_IID",
                        pd.prvdr_sid AS "PRVDR_SID", 'Y' AS "State View",
                        DECODE
                           ((SELECT DISTINCT pd.national_prvdr_idntfr
                                        FROM pa_request_x_provider_location prxplo
                                       WHERE prxplo.pa_rqst_sid =
                                                               req.pa_rqst_sid
                                         AND prxplo.oprtnl_flag = 'A'
                                         AND prxplo.pa_prvdr_type_lkpcd = 'RR'),
                            0, (SELECT prxplo.prvdr_lctn_idntfr
                                  FROM pa_request_x_provider_location prxplo
                                 WHERE prxplo.pa_rqst_sid = req.pa_rqst_sid
                                   AND prxplo.oprtnl_flag = 'A'
                                   AND prxplo.pa_prvdr_type_lkpcd = 'RR'),
                            NULL, (SELECT prxplo.prvdr_lctn_idntfr
                                     FROM pa_request_x_provider_location prxplo
                                    WHERE prxplo.pa_rqst_sid = req.pa_rqst_sid
                                      AND prxplo.oprtnl_flag = 'A'
                                      AND prxplo.pa_prvdr_type_lkpcd = 'RR'),
                            (SELECT DISTINCT pd.national_prvdr_idntfr
                                        FROM pa_request_x_provider_location prxplo
                                       WHERE prxplo.pa_rqst_sid =
                                                               req.pa_rqst_sid
                                         AND prxplo.oprtnl_flag = 'A'
                                         AND prxplo.pa_prvdr_type_lkpcd = 'RR')
                           ) AS "NPI/ID",
                        DECODE
                           ((SELECT pd.org_bsns_name
                               FROM pa_request_x_provider_location prxplo
                              WHERE prxplo.pa_rqst_sid = req.pa_rqst_sid
                                AND prxplo.oprtnl_flag = 'A'
                                AND prxplo.pa_prvdr_type_lkpcd = 'RR'),
                            NULL, (SELECT    pd.last_name
                                          || ', '
                                          || pd.first_name
                                          || ' '
                                          || pd.middle_name
                                     FROM pa_request_x_provider_location prxplo
                                    WHERE prxplo.pa_rqst_sid = req.pa_rqst_sid
                                      AND prxplo.oprtnl_flag = 'A'
                                      AND prxplo.pa_prvdr_type_lkpcd = 'RR'),
                            (SELECT pd.org_bsns_name
                               FROM pa_request_x_provider_location prxplo
                              WHERE prxplo.pa_rqst_sid = req.pa_rqst_sid
                                AND prxplo.oprtnl_flag = 'A'
                                AND prxplo.pa_prvdr_type_lkpcd = 'RR')
                           ) AS "Prvdr Name",
                        TO_CHAR (psd.from_date,
                                 'MM/dd/yyyy'
                                ) AS "Srvc From Date",
                        TO_CHAR (req.validity_start_date,
                                 'MM/DD/YYYY'
                                ) AS "Due Date",
                        (fn_get_busniess_days (TRUNC (req.validity_start_date))
                        ) AS "Days<br>Left",
                        req.pa_mode_type_lkpcd AS "Source",
                        TO_CHAR (TRUNC (wmdtl.rtng_date),
                                 'MM/dd/yyyy'
                                ) AS "Assigned On",
                        NVL (wmdtl.assigned_to_user_name,
                             'Not Assigned'
                            ) AS "Assigned To",
                        req.org_unit_sid AS "OrgUnitSid",
                        TO_CHAR
                             (wmdtl.modified_date,
                              'MM/dd/yyyy hh24:mi:ss'
                             ) AS "WTRD_MODIFIED_DATE",
                        TO_CHAR (wmdtl.rtng_date,
                                 'MM/dd/yyyy'
                                ) AS "WTRD_RTNG_DATE",
                        req.status_cid AS "PA_STATUS_CID",
                        TO_CHAR (req.modified_date,
                                 'MM/dd/yyyy'
                                ) AS "PA_REQ_MODIFIED_DATE",
                        prs.state_pa_srvc_type_code
                                                 AS "STATE_PA_SRVC_TYPE_CODE",
                        wmdtl.wm_pa_task_rtng_dtl_sid
                                                    AS "WM_TASK_RTNG_DTL_SID",
                        wmdtl.assigned_to_user_acct_sid
                                          AS "WTRD_Assigned_to_user_acct_sid",
                        (fn_get_busniess_days (TRUNC (req.validity_start_date))
                        ) AS "Days<br>LeftSort",
                        wmdtl.assigned_to_org_unit_sid
                                              AS "WTRD_Assigned_to_OrgUntSid",
                        DECODE
                           ((SELECT COUNT (*)
                               FROM pa_request_status prs
                              WHERE prs.pa_rqst_sid = req.pa_rqst_sid
                                AND prs.status_cid = 5
                                AND prs.oprtnl_flag = 'I'),
                            0, 'N',
                            'Y'
                           ) AS "SHOW_UTILIZATION"
                   FROM   pa_request req,
                         pa_certification_identifier pci,
                         status sts,
                         pa_request_x_member prxm,
                         wm_pa_task_routing_detail wmdtl,
                         pa_service_date psd,
                         org_unit ou,
                         pa_request_service prs,
                         pa_request_x_provider_location prxpl,
                         provider_location pl,
                         provider_detail pd,
                         provider p,
                         mbr_dmgrphc md
                  WHERE req.oprtnl_flag = 'A'
                    AND req.status_cid NOT IN
                                 (20, 30, 70, 25, 80, 96, 85, 5, 97, 98, 101)
                    AND req.org_unit_sid IN
                           (3057, 3142, 3058, 3143, 3059, 3144, 3060, 3145,
                            3061, 3146, 3062, 3147, 3063, 3148, 3064, 3149,
                            3065, 3150, 3066, 3151, 3067, 3152, 3068, 3153,
                            3069, 3154, 3070, 3155, 3071, 3156, 3072, 3157,
                            3073, 3158, 3074, 3159, 3075, 3160, 3076, 3161,
                            3077, 3162, 3078, 3163, 3079, 3164, 3080, 3165,
                            3081, 3166, 3082, 3167, 3083, 3168, 3084, 3169,
                            3085, 3170, 3086, 3171, 3087, 3172, 3088, 3173,
                            3089, 3174, 3090, 3175, 3091, 3176, 3092, 3177,
                            3093, 3178, 3094, 3179, 3095, 3180, 3096, 3181,
                            3097, 3182, 3098, 3183, 3099, 3184, 3100, 3185,
                            3101, 3186, 3102, 3187, 3103, 3003, 75000104,
                            75000108, 2006, 75000103, 75000102, 75000113,
                            75000111, 75000109, 2001, 2009, 75000105,
                            75000107, 2004, 2010, 2013, 2014, 2005, 2011,
                            75000112, 2002, 1001, 2012, 75000106, 2007,
                            75000101, 2003, 75000110, 2008, 3001, 3002, 3019,
                            3104, 3020, 3105, 3021, 3106, 3022, 3107, 3023,
                            3108, 3024, 3109, 3025, 3110, 3026, 3111, 3027,
                            3112, 3028, 3113, 3029, 3114, 3030, 3115, 3031,
                            3116, 3032, 3117, 3033, 3118, 3034, 3119, 3035,
                            3120, 3036, 3121, 3037, 3122, 3038, 3123, 3039,
                            3124, 3040, 3125, 3041, 3126, 3042, 3127, 3043,
                            3128, 3044, 3129, 3045, 3130, 3046, 3131, 3047,
                            3132, 3048, 3133, 3049, 3134, 3050, 3135, 3051,
                            3136, 3052, 3137, 3053, 3138, 3054, 3139, 3055,
                            3140, 3056, 3141)
                    AND req.pa_rqst_sid = prs.pa_rqst_sid
                    AND prs.oprtnl_flag = 'A'
                    AND prs.pa_rqst_srvc_sid = psd.pa_rqst_srvc_sid
                    AND psd.oprtnl_flag = 'A'
                    AND req.pa_rqst_sid = pci.pa_rqst_sid
                    AND pci.oprtnl_flag = 'A'
                    AND req.pa_rqst_sid = prxm.pa_rqst_sid
                    AND prxm.oprtnl_flag = 'A'
                    AND md.oprtnl_flag = 'A'
                    AND md.status_cid = 2
                    AND TRUNC (SYSDATE) BETWEEN md.from_date AND md.TO_DATE
                    AND prxm.mbr_sid = md.mbr_sid
                    AND ou.org_unit_sid = req.org_unit_sid
                    AND ou.oprtnl_flag = 'A'
                    AND req.pa_rqst_sid = prxpl.pa_rqst_sid
                    AND prxm.pa_rqst_sid = prxpl.pa_rqst_sid
                    AND pci.pa_rqst_sid = prxm.pa_rqst_sid
                    AND pci.pa_rqst_sid = wmdtl.subsystem_task_sid
                    AND pci.pa_rqst_sid = prxpl.pa_rqst_sid
                    AND prxpl.pa_prvdr_type_lkpcd = 'RR'
                    AND prxpl.oprtnl_flag = 'A'
                    AND req.status_cid = sts.status_cid
                    AND sts.status_type_cid = 3
                    AND sts.oprtnl_flag = 'A'
                    AND prxpl.prvdr_lctn_iid = pl.prvdr_lctn_iid
                    AND p.prvdr_sid = pd.prvdr_sid
                    AND p.prvdr_sid = pl.prvdr_sid
                    AND pd.oprtnl_flag = 'A'
                    AND pd.status_cid = 2
                    AND TRUNC (SYSDATE) BETWEEN pd.from_date AND pd.TO_DATE
                    AND wmdtl.subsystem_task_sid = req.pa_rqst_sid
                    AND wmdtl.subsystem_lkpcd = 'PA'
                    AND wmdtl.oprtnl_flag = 'A'
                    AND req.pa_rqst_date > (SYSDATE - 365)
                                   ORDER BY TO_DATE ("Request Date", 'MM/dd/yyyy hh24:mi:ss') DESC,
                        "Beneficiary Name" ASC) a
 WHERE ROWNUM < 102;
Kind regards
Prakash P

Published by: BluShadow on May 17, 2011 15:01
addition of {noformat}
{noformat} tags around the code                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

3360 wrote:
See point 9 of this section of the FAQ on how to format the code.

SQL and PL/SQL FAQ

I see that you did.

No, I did. It's pretty easy to change if the code seems formatted anyway below. It's when I go to edit the message and find no sense because it is not formatted in all cases, I despair. {noformat} :) {noformat}

Tags: Database

Similar Questions

  • single line sub query returns multiple rows

    Hi, please help me to solve this, working with oracle 11g.


    Update t1 set t1.twyindex = twypoly (select twyindex from twyinfo where t1.id = t2.id t2);

    the error message is:
    *
    ERROR on line 1:
    ORA-01427: einreihig subquery returns multiple rows

    Thank you

    don123 wrote:
    Hi paul, thanks...

    duplicate existing due to the business logic data.

    can I use the SQL mentioned above for all cases?

    is it mandatory to remove duplicates?

    Please provide your suggestions...

    If the company says duplicates are allowed, you have to ask the person who wants what, of the different twyindexes, that they want to use
    updating twyinfo table...

    I use the SQL proposed until they tell you that twyindex to use.

  • How do I know what sql query is taken on time for the concurrent program

    Hi Sir,

    I am running simultaneous program, which takes time to run, I want to know what sql query causing performance

    Thanaks,

    Anthony

    Hi Anthony,.

    Activate the traces on the simultaneous program and then run tkprof on trace file.

    Octavio

  • Can't understand why this query returns multiple lines with the same data

    Hi all
    I am a relative novice and self-taught when it comes to SQL. I wrote a query to our reporting tool that returns multiple rows, and I can't understand why. I know that I can use the SELECT DISTINCT option, but it really slows the execution when I do. I'd really rather understand if I can change the code to avoid the multiples. This is the query. I've included a few statements in italics to help explain the break. Any ideas?

    SELECT MATSITE, MATPONUM, FIRSTRECPTDATE
    Of
    Subquery that concludes the first date on which purchase orders have been implemented with ACK State
    (SELECT ACKSTAT. PONUM AS 'ACKPONUM', (MIN (ACKSTAT. CHANGEDATE)) AS 'FIRSTACKDATE '.
    OF PZMAX. POSTATUS ACKSTAT
    WHERE (ACKSTAT. STATE = 'ACK') AND (ACKSTAT.ORGID ='CGSALTUS)
    GROUP OF ACKSTAT. PONUM),
    Subquery that concludes the first reception against a purchase order transaction for purposes of comparison
    (SELECT TRANS. PONUM AS "MATPONUM", TRANS. SITEID AS 'MATSITE', (MIN (TRANS. TRANSDATE)) AS 'FIRSTRECPTDATE '.
    OF PZMAX. MATRECTRANS TRANS
    WHERE (TRANS.ORGID ='CGSALTUS) AND (TRANS. HOUR > =: startDate and TRANS. TRANSDATE < =: endDate)
    TRANS GROUP. SITEID, TRANS. PONUM)
    WHERE
    (ACKPONUM = MATPONUM AND FIRSTRECPTDATE < FIRSTACKDATE) OR (NOT EXISTS (SELECT 1 FROM PZMAX. POSTATUS ACKSTAT2 WHERE (ACKSTAT2. PONUM = MATPONUM) AND (ACKSTAT2. STATE = 'ACK') AND (ACKSTAT2.ORGID ='CGSALTUS)))

    The where the instruction is intended to find when one of two conditions exists. ((1) received happened before the command either in ACK or 2) a reception that's happened, but the purchase order is never in ACK State. It seems that this second condition that creates multiple lines.

    Any thoughts will be appreciated geratly.

    Dave Teece
  • How Firefox knows what tabs/windows you had open when click you on "restore session"? If it is a temporary file or something, where it is preserved?

    My computer crashed and will not back to zero (I think it's because of a bad repair of Windows XP after a virus has passed my security). Before it crashed, I was easily 20 tabs open in Firefox, some of them being very important, but I don't remember what some of them were called or how I found them. I was wondering how Firefox knows what tabs/windows to open when you click on 'Restore Session', if it is stored in a file of all kinds, so that I could start on Linux, download the file and somehow use it once I have installed my new buy Win7. It is not a Firefox problem, but I didn't know where it is best to ask this question.

    See also http://kb.mozillazine.org/Session_Restore

  • I use 37 GB of my memory to documents on my Iphone. I don't know what it is or how even know what it is

    I use 37 GB of my memory to documents on my Iphone. I don't know what it is or how even know what it is

    There are several ways that you can potentially solve this problem. Restore the phone via iTunes would probably be easier, use iTunes to restore the iPhone, iPad or iPod to factory settings - Apple Support

    This article will show you how to restore through iTunes.

    How to back up your device using iCloud or iTunes - Apple Support

    I would use the link above to save your phone before you restore it so that you don't lose all your data and then restore the backup to the phone to see if the space is always taken to the top.

    I hope this helps.

  • If a view object query returns no rows, can the vacuum to be tested at all?

    All those who know or have also experienced:

    I guess that the answer should be Yes, but I tried anyway, I still didn't worked. Here is the code (it's a method behind a command button, a bean of support (I use JDeveloper 10.1.3.4).) In the code, LoggedInStudent is the name of a view object; ZBLCModule is the name of the application module):
        public String commandButton1_action() {
            FacesContext fc = FacesContext.getCurrentInstance();
            ValueBinding vb = fc.getApplication().createValueBinding("#{data}");
            BindingContext bc = (BindingContext)vb.getValue(fc);
            DCDataControl dc = bc.findDataControl("ZBLCModuleDataControl");
            ApplicationModule am = (ApplicationModule)dc.getDataProvider();
            ZBLCModuleImpl zblcam = (ZBLCModuleImpl)am;
            LoggedInStudentImpl studentsFound = (LoggedInStudentImpl)zblcam.getLoggedInStudent();
            
            String navCase = null;
            
            // Test (1): if the view cache is empty; always bombs up the application if it IS empty:
            if(studentsFound.getAllRowsInRange().length == 0) {
                navCase = "userNotFound";
            // (2) The following three tests gets to run only when the cache is not empty; they work fine.
            } else if (((Number)studentsFound.first().getAttribute("HoursAttm")).floatValue() == 0.0) {
                navCase = "noHours";
            } else if (((Number)studentsFound.first().getAttribute("Balance")).floatValue() > 0.0) {
                navCase = "notZero";
            } else if (!(studentsFound.first().getAttribute("Validated").equals(" "))) {
                navCase = "validated";
            } else {
                navCase = "zeroBal";
            }
            return navCase;
        }
    When the view object query returns a line, the whole of the application works without error. When the query returns no rows, test (1) always bombs toward the top of the application, prompting a Houston-30003 error.

    (1) test, I tried the following:
      if (studentsFound.getAllRowsInRange().length == 0)
      if (studentsFound.first() == null)
      if (studentsFound.getEstimatedRowCount() == 0)
      if (studentsFound.isDead()) //I do not know what isDead() does; just tried desperately.
      if (studentsFound.equals(null))
      if (studentsFound.getCurrentRow() == null)
    With each of these events, I got an error of Houston-30003. It does not matter what looks like the conditional test; It is important only when the objects from view cache is empty. If the view cache is not empty, everything, including the test (1), works very well. And when the cache is empty is not because of the failure of the connection to the database, but because the student is not in the data table and line are for the student.

    It is a requirement of the company to do something when the view object query returns no rows. Can it be tested at all? How?

    Or is there something wrong in the first lines in the method before the {color: green} String navCase = null; {color} line?

    Thank you very much for your help!


    Newman

    Hello

    What you have done, is to get a handle to the object that CAN execute queries to the database.
    However, you do not query the database.

    Just add:

      LoggedInStudentImpl studentsFound = (LoggedInStudentImpl)zblcam.getLoggedInStudent();
      //New line
      studentsFound.executeQuery();
    

    The code that Shay has given you is when you do not have a request for all module, but since you are talking about a command etc button I guess that the module of the application is already active.
    The line I gave you should be enough to make it work.

    I'd be careful with the

    studentsFound.hasNext();
    

    I suggest to use estimatedRowCount();

    -Anton

  • Oracle Text multi column index based query returns no rows

    Hello

    I have a MAH_KERESES_MV table with 3 columns OBJEKTUM_NEV, KERESES_SZOVEG_1, KERESES_SZOVEG_2. I create the following Oracle multi column text index:

    ctx_ddl.create_preference exec ('MAH_SEARCH', 'MULTI_COLUMN_DATASTORE');
    ctx_ddl.set_attribute exec ('MAH_SEARCH', 'COLUMNS', 'OBJEKTUM_NEV, KERESES_SZOVEG_1, KERESES_SZOVEG_2');

    create index MAX_KERES_CTX on MAH_KERESES_MV (OBJEKTUM_NEV)
    indexType is ctxsys.context
    parameters ("DATASTORE MAH_SEARCH");
    But the query returns no rows, although if I make the query with the 'like' operator, and then I get the results as expected:

    SELECT id, OBJEKTUM_NEV
    OF MAH_KERESES_MV
    WHERE CONTAINS (OBJEKTUM_NEV, "C") > 0;

    Can some body please help? TIA,

    Tamas

    You can do it in Oracle Text, well it is not necessarily desirable.

    You can search the

    WHERE CONTAINS(OBJEKTUM_NEV, '%C%')>0;
    

    And it will probably work in a simple test. However, using a leader like this wildcard prevents them the index on the table "list of words" used, so such a request can be very slow on a large system.
    You can improve this by using SUBSTRING_INDEX, but making your much bigger index. And you could always hit the 'expansions too' problem if %C % expansion is more than about 15,000 words (depending on version and different settings).

    Also be aware of differences in case - %C % will match 'fact' or 'FACT', as part of a CONTAINS, but not part of a TYPE.

  • Tecra M4: How to know what graphics card I have (6200, 6600)?

    Hello
    I buyed a Tecra M4 and don't know what graphics card I have...
    The shop said, it's a gforce go 6600 with 64 MB, but now I've read, that there is only one with 64 MB 6200 and 6600 with 128 MB...
    Windows and analyse the tools to say, it is "NVIDIA GeForce GO 6200 TE 64 MB / 6600 128 MB TE...»
    So, how can I know which one I have?

    Hello

    Have you checked the Device Manager? I think that here you can find a s information on your subject of an integrated graphics card.
    The second possibility is the use of the DirectX tool. Please enter in the window RUN the dxdiag command. Then the directx should appear, and you will find the detailed description on the graphics card and the properties.

    But as far as I know that the Tecra M4 has been delivered with nVIDIA GeForce FX Go6200 64 MB or 128 MB card nVIDIA GeForce Go6600 FX.

  • How to know what are the applications requested?

    I get notifications that my child asks permission to use specific applications.  But when I click on it, and on the page of queries - it doesn't tell me what are the applications, or lead me to a link so I can check.  I would like to know how can I know what are the apps on so I can decide whether to block or allow it.

    Thanks for your help.

    Hi Islandhomeschooler,

    We will do our best to help you with your concern about how you can give your child safely to the family's application.  To view and respond to requests, we recommend you follow these steps:

    1. On any computer, sign in to the Family Safety website with your Microsoft account.

    2. On the summary page of the family, under requests, click queries (number).

    3. To display all comments your child added, click the arrow next to the web address.

    4. Click the arrow next to Select a response, and then click approve for this account only, approve for all accountsor refuse.

    5. When you're done in response to requests, click Save.

    Let us know if you need additional assistance.

    Thank you.

  • A row of Sub query returns more than 1 row!

    I'm trying to update the values in one table from another table and get the error: void line query returns More Than 1 row.

    I want to PRV_NAME B chart updated in the table A PRV_NAME where A.PRVID = B.PRVID where B.PRV_TYPE = M"

    The two paintings were all unique PRVID, however, table B has PRVID that have the same name. So the data in table B can look like this:

    PRVID PRV_NAME
    1234 PHOENIX MED
    1235 MED BAG
    1236 MED BAG
    1237 OVERLAND
    etc...

    So, as you can see are the unique PRVID, but not the PRV_NAME. Is this the reason why I get this error?

    I do not build the tables and have no control over what is put in them. If this is the reason for the error, is there a way to fix this?

    For reference, here's the request. Maybe there's something wrong with that?


    Update msb_prv_source ps
    Set ps.prv_name =

    (select prv00.prv00_prv_name
    of prv00_prv prv00
    Join msb_prv_source ps
    On prv00.prv00_prv_id = ps.prvid
    where prv00.prv00_prv_type = am')

    Published by: user12296489 on April 19, 2013 10:46
    /* Formatted on 4/19/2013 2:00:43 PM (QP5 v5.185.11230.41888) */
    MERGE INTO msb_prv_source a
         USING (SELECT *
                  FROM prv00_prv
                 WHERE prv00_prv_type = 'M') b
            ON (a.prv00_prv_id = b.prvi)
    WHEN MATCHED
    THEN
       UPDATE SET a.prv_name = prv00_prv_name
    
  • How to know what are the patterns use in our db instance.

    Hi all

    Can someone tell me please... How we come to know, what are the patterns use in our database instance.
    means in our database, we have 10 users... out of 10 users, how many users is saved in.

    Thanks in advance,
    Sanjeev.

    user13483989 wrote:
    Hi all

    Can someone tell me please... How we come to know, what are the patterns use in our database instance.
    means in our database, we have 10 users... out of 10 users, how many users is saved in.

    Thanks in advance,
    Sanjeev.

    Select distinct username in the version of v$.

  • einreihig subquery returns multiple rows

    Hello


    In the sub query, I get the error "ORA-01427: einreihig subquery returns more than one line. In this query below, I must also display only the bsr_ind_id from rm_cust where are.bsr_borr_ctg_id = '1' and also all cust_name and client_id

    How can I modify this query?

    Select cust_name
    client_id
    , (select bsr_ind_id from rm_cust r where are.bsr_borr_ctg_id = '1') as "SSB".
    of rm_cust

    I haven't used the pivotal enough to help with that without doing some research which I do not have time for this moment. But back to your original problem: there is obviously more than 1 line in rm_cust with bsr_borr_ctg_id = '1', so what one do you? You can guarantee that you will not get the error if you use:

    select cust_name
          ,client_id
          ,(select max(bsr_ind_id) from rm_cust r where r.bsr_borr_ctg_id = '1') as "BSR"
    from rm_cust
    

    Or you can use min max. Either avoid the error you get. If both give you the same result, then that is what you need. If they give different results, then you need to determine what (if) is correct.

  • Help in the treatment of "subquery returns multiple rows.

    Appreciate your help on this.

    I have under sql query fails with the error "ORA-01427: einreihig subquery returns multiple lines"

    WITH t
         AS (SELECT 'A' Col1, 'B' Col2, 'C' Col3 FROM DUAL
             UNION
             SELECT 'D', 'E', 'F' FROM DUAL
             UNION
             SELECT 'E', 'F', 'G' FROM DUAL
             UNION
             SELECT 'A', 'T', 'U' FROM DUAL),
         t1
         AS (SELECT 'A' Col1, 'B' Col2, 'C' Col3 FROM DUAL
             UNION
             SELECT 'D1', 'E1', 'F1' FROM DUAL
             UNION
             SELECT 'D', 'E', 'F' FROM DUAL
             UNION
             SELECT 'S', 'V', 'W' FROM DUAL),
         t2
         AS (SELECT 'A' Col1, 'B' Col2, 'C' Col3 FROM DUAL
             UNION
             SELECT 'A', 'E1', 'F1' FROM DUAL
             UNION
             SELECT 'D', 'E', 'F' FROM DUAL)
    SELECT t.col1,
           (SELECT distinct col2
              FROM t2
             WHERE t2.col1 = t.col1) RND_COL
      FROM t, t1
    WHERE t.col1 = t1.col1
    
    WhenI checked the count using below query
    
    WITH t
         AS (SELECT 'A' Col1, 'B' Col2, 'C' Col3 FROM DUAL
             UNION
             SELECT 'D', 'E', 'F' FROM DUAL
             UNION
             SELECT 'E', 'F', 'G' FROM DUAL
             UNION
             SELECT 'A', 'T', 'U' FROM DUAL),
         t1
         AS (SELECT 'A' Col1, 'B' Col2, 'C' Col3 FROM DUAL
             UNION
             SELECT 'D1', 'E1', 'F1' FROM DUAL
             UNION
             SELECT 'D', 'E', 'F' FROM DUAL
             UNION
             SELECT 'S', 'V', 'W' FROM DUAL),
         t2
         AS (SELECT 'A' Col1, 'B' Col2, 'C' Col3 FROM DUAL
             UNION
             SELECT 'A', 'E1', 'F1' FROM DUAL
             UNION
             SELECT 'D', 'E', 'F' FROM DUAL)
    SELECT t.col1,
           (SELECT count(col2)
              FROM t2
             WHERE t2.col1 = t.col1) RND_COL
      FROM t, t1
    WHERE t.col1 = t1.col1 (+)
    
    it shows as below
    -----------------
    COL1    RND_COL
    A    2
    A    2
    D    1
    E    0
    
    My Requirement is for all the values in the column 'RND_COL' > 1 it should display text as 'Multiple', for 'RND_COL' = 1 display actual value returned by sub query and 'RND_COL' = 0 display it as NULL.
    
    expected output
    -------------------
    COL1    RND_COL
    A       Multiple
    A       Multiple
    D       E
    E       NULL
    
    
    
    

    Hello

    Here's another way.  It's like the solution in response #1, but it does not use a subquery:

    SELECT t.col1

    CASE

    WHEN COUNT (DISTINCT t2.col2) > 1

    THEN "Multiple."

    For ANOTHER MIN (t2.col2)

    END AS rnd_col

    T

    LEFT OUTER JOIN t2 ON t2.col1 = t.col1

    GROUP OF t.col1, t.col2, t.col3

    ORDER BY t.col1

    ;

    This assumes that in table t (col1, col2, col3) combination is unique.  If theat is not the case, change the GROUP BY clause, but you need to ensure that all lines of t becomes a separate group.

  • USERENV ('sessionid') returns multiple rows

    Hello
    Im trying to put in place a db trigger that will record all DDL operations on the db.
    for which purpose the following statement is included in the trigger to return information about the user who wishes to make changes:
         select 
          osuser,
          machine,
          process,
          program,
          AUDSID,
          sid,
          SERIAL#
       from 
          v$session
       where 
          AUDSID=USERENV('sessionid');
    problem is that this statement returns multiple lines when 2 users are connected to the same database by using the same username for example SYS;
    I see that audsid is the same for these 2 users, but the osuser, the machine etc. are different, so I can easily tell who is who.
    How to distinguish these in the query to be able to capture only the actually executing the DDL operation?
    ID appreciate any advice
    Thank you very much
    Rgds
    select
          osuser,
          machine,
          process,
          program,
          AUDSID,
          sid,
          SERIAL#
       from
          v$session
       where
          SID=USERENV('sid')
    /
    

    Published by: JohnWatson on November 23, 2012 14:32
    added

     tags                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
    

Maybe you are looking for

  • My Satellite M70 no longer works, and caps button flashes

    My problem was explained in the title. I just want to know if there is a problem or not. I work on Linux and windows XP, but the problem can happen in the BIOS.Thank you, Vivien.If you need more information, please ask me :)PS: it's the Satellite M70

  • Windows Vista update KB2631813 failure: error 80071AA7

    Help, please! The update referenced will not install after reboot. All other updates since January 9 were automatically installed. It presents with everyday. System information: Windows Vista Home Premium, 32-bit (x 86), SP2 Also: I have already run

  • ListField: why complexity?

    Hello everyone. I'm trying to do something that should be very simple.  I'm doing a ListField, filling and drawing, which was not a simple task.  Now, I'm doing a row of buttons at the bottom of the ListField so that I can load or remove the selected

  • How can I remove the UTC Timestamp of files saved by FileHistory?

    Given that I had so many problems with Windows 8.1 on my ASUS PC x202e, I backed up my files with the history of the Windows files on a hard drive external and restored the machine to factory settings, so I could start using Windows 8 again, with whi

  • need to install on a new PC

    We bought adobe CS5 years and now need to install on a new PC, however, we do not find the original download.  Anyone know how to redownload and get the keys to our license?