clarification of required query

Hi all

Please clarify the below

Select a.*, b.*, c.

Of

(select 1 double),

b (select option 2 double),

(select empid from emp where empno = 3455) c

For me, nothing is returned that it returns NULL as the select empid from emp doesn't return any value.

I need to put as

1, 2, null

Help, please

S

Assuming that you are really looking for a single line then why join all?  Simply:

dev1 > select (select 1 double).

2B (select option 2 double),

3 (select descr in t where id = 1) name

4 double;

A NAME B

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

1          2

John

Tags: Database

Similar Questions

  • Partition on the clarification of required list

    Hello gurus

    I need clarification on the partition table
    TABLE
    PART)
    Primary key NUMBER PARTNO,
    NUMBER OF LB/PO2
    MEDIAN NUMBER)

    MEDIAN will have 10 distinct values from 0 to 9

    so I created 10 partition list on PART Table for 1 part01 part02 for 2... so now

    Select partno
    a part

    Watch the plan INDEX (PRIMARY KEY is used with scan limited quick index)


    Select partno
    partition part01 - selection '1' median part

    don't watch no clue is scanned... It is in full table scan


    Please suggest
    My partno primary key must be local indexed?
    MEDIAN should be indexed at the local level?


    Help, please

    S

    Select partno

    a part

    Here you select the entire table, then there should be a FULL table scan.

    Select partno

    partition part01 - selection '1' median part

    Here the partition must be ENTIRELY digitized as all lines are being accessed.

    My partno primary key must be local indexed?

    I think he must have the overall index, assuming that the primary key should be used without using the partitioning key column in the WHERE clause.

    MEDIAN should be indexed at the local level?

    Yes.

    Here are the generic guidelines for the creation of global/local index:

    When you decide what type of partitioned index to use, you should consider the following recommendations in order:

    1. If the table partitioning column is a subset of index keys, use a local index. If this is the case, you are finished. If this is not the case, continue to guideline 2.
    2. If the index is unique and does not include the partitioning key columns, use a global index. If this is the case, then you are finished. Otherwise, continue to guideline 3.
    3. If your priority is the ease of management, use a local index. If this is the case, you are finished. If this is not the case, continue to guideline 4.
    4. If the application is an OLTP we and users need fast response time, use a global index. If the application is an a MAS and users more interested in flow, use a local index.

    Concepts of partitioning

  • Clarification of required application permissions


    When you perform the installation using javaloader, are you specifying the filenames of cod or the JAD file?  Note that if you specify only the COD file names you can see the permissions issues and how the application appears in the form of applications (Options, Advanced Options, Applications).  This installation method is not complete details of application on BlackBerry handheld.

    If you specify the JAD file with javaloader or install using any other way, you should see the "correct" behavior

  • Required query for multiple rows

    Hello


    I have a situation, where I have given, as mentioned below:

    Category ID

    1 P1

    1 P2

    1 0

    2 P1

    2 0

    3 P2

    3 0

    4 0

    Now, I need to establish three report:

    1. who should display all the IDS that are in all three categories. that is 1 m approx, 2 m env, 0 (here, the output must be 1)

    2. who should display all the IDs that are only in two categories. i.e (0 P1 or P2, 0) (here 'the power should be 2 for 1 m env, 0' and ' output should be 3 for P2, 0 "")

    3. who should display all the IDS that is present in a single category. that is 0 (here, the output should be 4)

    Kindly help.

    Thank you

    If you have data than data above as below then cover this situation request is lower.

    ID, CAT

    5, P1

    5, P2

    6, P1

    6, P1

    select id,comb_cat,count_cat
    from
    (
    select id,listagg(cat,',') within group( order by cat) comb_cat,count(distinct cat) count_cat
    from testid where cat in('P1','0','P2') group by id
    )
    where 1= case when count_cat = 3 then 1 when count_cat = 2 and comb_cat in('0,P1','0,P2')
    then 1 when count_cat = 1 and comb_cat in ('0') then  1 end
    
  • Clarification of SQL query

    Script to use:

    create table time_dim as select rownum id, trunc (sysdate) + level double dates to connect by level < 100;

    ALTER table time_dim add constraint time_dim_pk primary key;

    create table cust_emp (cust_name varchar2 (10), integer date_of_join_seq, around date_of_marriage_seq);

    ALTER table cust_emp add constraint time_dim_join_fk Foreign key (date_of_join_seq) makes reference to time_dim (id);

    ALTER table cust_emp add constraint time_dim_marriage_fk Foreign key (date_of_marriage_seq) makes reference to time_dim (id);

    insert into cust_emp values ('cust1', 22, 33);

    insert into cust_emp values ('cust2', 2, 40);

    Question:

    Here date_of_join_seq and date_of_marriage_seq are in fact ID pointing to the date indicated in the table time_dim

    and I want back the dates of this table.


    CUST_NAME DATE_OF_JOIN_SEQ DATE_OF_MARRIAGE_SEQ JOIN_DATE MARRIAGE_

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

    22 33 Date2 Date1 cust1

    2 40 Date3 Date4 cust2


    where date1,date2,date3date4 are based on the time_dim table values

    SQL> select cust_name
      2       , date_of_join_seq
      3       , date_of_marriage_seq
      4       , t.dates date_of_join
      5       , t1.dates date_of_marriage
      6    from cust_emp c
      7    join time_dim t
      8      on c.date_of_join_seq = t.id
      9    join time_dim t1
     10      on c.date_of_marriage_seq = t1.id;
    
    CUST_NAME  DATE_OF_JOIN_SEQ DATE_OF_MARRIAGE_SEQ DATE_OF_J DATE_OF_M
    ---------- ---------------- -------------------- --------- ---------
    cust1                    22                   33 29-JUL-15 09-AUG-15
    cust2                     2                   40 09-JUL-15 16-AUG-15
    
    SQL> select cust_name
      2       , date_of_join_seq
      3       , date_of_marriage_seq
      4       , max(decode(date_of_join_seq, id, dates)) date_of_join
      5       , max(decode(date_of_marriage_seq, id, dates)) date_of_marriage
      6    from cust_emp c
      7    join time_dim t
      8      on c.date_of_join_seq = t.id
      9      or c.date_of_marriage_seq = t.id
     10   group
     11      by cust_name
     12       , date_of_join_seq
     13       , date_of_marriage_seq;
    
    CUST_NAME  DATE_OF_JOIN_SEQ DATE_OF_MARRIAGE_SEQ DATE_OF_J DATE_OF_M
    ---------- ---------------- -------------------- --------- ---------
    cust1                    22                   33 29-JUL-15 09-AUG-15
    cust2                     2                   40 09-JUL-15 16-AUG-15
    
  • vShield Manager investment - clarification of required documentation

    I'm trying to deploy vShield Manager in our test environment and dev (before we implement production).

    I have read the documentation "vShield Installation and Upgrade Guide - vShield Manager 5.1". On page 20, the following statement is made:

    NOTE do not place the management interface of the vShield Manager in the same port as well as the Service Console VMkernel group.

    Question:

    Is it OK for the vShield Manager to be in the same subnet and VLAN as the Service Console and VMkernel, with the help of a group of dedicated ports?

    For example, I create another port that has the same VLAN as the VMkernel and Service and the vShield Manager Console uses this group?

    Let me explain with an example.

    On page 19, the following statement is made:

    With vShield 5.0 and later, you can install the vShield Manager in a different vCenter as the vShield Manager is going to be that interacts with. A single vShield Manager offers a server environment unique vCenter.

    vCenter1

    • It's the vCenter the vShield Manager will be deployed to
    • It uses the portgroup 'Network management' with 18 VLAN for the Service Console and VMkernel
    • It's on the 192.168.10.0/24 subnet

    vShield Manager

    • This vShield Manager runs under vCenter 1
    • It uses the portgroup 'Management network for vShield Manager ONLY' with 18 VLAN
    • This is where the management of the vShield Manager interface will run
    • It's on the 192.168.10.0/24 subnet

    vCenter2

    • It's the vCenter the vShield Manager will be Interoperation with
    • It is a virtual machine running under vCenter1
    • It's on the 192.168.10.0/24 subnet
    • It uses the portgroup 'Network management' with 18 VLAN for VM traffic

    So my question once again:

    Is it OK for the vShield Manager to be in the same subnet and VLAN as the Service Console and VMkernel, with the help of a group of dedicated ports?

    Yes, it's good to have the Manager on the same VLAN as the vmkernel interfaces.    According to your description below you will be fine and actually following practice correctly.

    Do know not why the docs say not to put it in the same portgroup as the vmkernel or console service that those are special exchanges and you can't put a virtual machine (the Director) in a GRPE ports console vmkernel or service.   I'll have our people docs on that paycheck.

  • VCP5 required courses

    I would like a clarification on required courses - I already followed the official course VMware vSphere: install, configure, manage [V4.1] a (20-May-2011) for a long time ago, but unfortunately had not had the chance to attempt the certification at the same time.

    What would be my way to VCP5 - do I have to take the full course of training for the v5 or can I attend only a shorter for like what's new? Am I right in asuming that I need to start training from scratch or the expiry was only for review?

    G

    Path 3 on this page applies to you: (VCP5-VTC) VCP-Data Center Virtualization

  • zcfgsvc.exe running after start and 80 to 90% of CPU usage

    I have a Toshiba Satellite runnig XP home uptodate all - it is slow - like zcfgsvc.exe takes 80 to 100% of cycles cpu, I can finish it in process Explorer, but if I disable it at startup until my without wire does not connect course, anyone has an idea why this forum works after the start, and why it would take that much CPU cycles

    Thanks to two of your answers.  I ran Malwearbytes nothing found, have not found anything this either with intel active in the machine, well keep looking.

    Thanks again

    Maybe a little clarification is required.

    The wireless adapter should be "managed" to connect to wireless networks.

    The manufacturer of the chip - in your case Intel - provided a utility to do this.  zcfgsvc.exe belongs to who and why stop using the Task Manager causes your wireless adapter stop working.

    ALSO Microsoft provides a utility to manage wireless cards and include it in Windows XP.  It's called Wireless Zero Configuration or WZC and there are various files that compose, including wzcsvc.dll.

    Although there must be an active utility to manage the wireless card, it can only be one active utility at the same time.  Thus, most of the utilities provided by the manufacturers have an option, somewhere in their menu 'Préférences' or 'Settings' to turn off in favor of Windows WZC.  I do not use Intel PRO/Set, so I don't know exactly where he is, but if you right-click on the icon of PRO/Set in the Notification System (next to the time display) area you should see a way to get into the preferences of the utility.

    As Windows WZC is concerned, open network connections (start > run > ncpa.cpl > OK), right-click on the icon for your wireless adapter and select Properties.  Click the "Wireless networks" tab and at the top you will see a checkbox "Use Windows to configure my wireless network."

    MVP Jack has an account here: http://www.ezlan.net/wzc.html

  • invisible special character in the column of table all_source-text

    Hi all

    Query:

    SELECT P.TEXT, S.TEXT, P.LINE, S.LINE, LENGTH (P.TEXT), LENGTH (S.TEXT), LENGTH (REPLACE (P.TEXT,' ', ")), LENGTH (REPLACE (S.TEXT,' ',"))

    All_source p, all_source@LINK_TST. S WORLD

    WHERE p.TYPE = 'FUNCTION '.

    AND p.owner = 'ASAP '.

    AND P.OWNER = S.OWNER AND P.TYPE = S.TYPE AND P.LINE = S.LINE AND

    P.NAME = S.NAME AND

    AND LENGTH (TRIM (P.TEXT)) <>LENGTH (TRIM (S.TEXT));

    Clarification:

    This query returns the line offset accordingly.

    1 line of a function is driven on the request, seeing that the two text values are similar.

    1 TRIM feature works TRIM (text) <>TRIM (text)

    2.length (Trim (P.Text)) <>LENGTH (TRIM (S.TEXT));

    3. used function REPLACE not working LENGTH (replace (P.TEXT, ' ')) <>LENGTH (replace (S.TEXT,' '));

    I checked that a function a invisible extra character in the column of text which the query should return an incorrect value.

    How to exclude the invisible character in the query?

    Thank you

    Fabrice

    You see invisible characters

    Maybe...

    REGEXP_REPLACE (text, "[^ [: print:]]'")

  • Need for outer join

    Hi gurus

    Need your advice once again.

    I have following script.

    Table creation and Insertion.

    drop table full_data;

    drop table not_full_data;

    create the table full_data

    (

    GRP varchar2 (10)

    )

    ;

    insert into full_data

    (

    Select '100' across double Union

    Select '200' of any double union

    Select '300' of the double

    );

    create the table not_full_data

    (

    GRP varchar2 (10),

    cvg_code varchar2 (10),

    line_type varchar2 (1)

    );

    insert into not_full_data

    (

    Select '100', '0', 'L' from dual

    Union of all the

    Select '200', '20130801', 'L' from dual

    );

    Select * from not_full_data has.

    full_data b

    where = b.grp a.grp (+)

    and line_type (+) = 'L '.

    and (cvg_code (+) = '0'

    or cvg_code > = '20120101')

    ;

    I'm putting the outer join to get all rows in full_data but when I try to put the outer join, then oracle does not allow me to put it and gives me below error:

    Error

    ORA-01719: outer join operator not allowed in operand of GOLD or IN

    01719 00000 - "outer join operator not allowed in GOLD or IN the operand.

    * Cause: Outer join appears in a clause or.

    * Action: If A and B are predicates, to achieve the effect of (has or B).

    Try (where select them (a and not B)) Union all the (where select them (B)).

    Error on line: column 33: 17

    I do not want to use full join and need this using the outer join. Thanks in advance

    Concerning

    Shu

    This is the required query

    SELECT *.

    Not_full_data a, full_data b

    WHERE a.grp (+) = b.grp

    AND line_type (+) = 'L '.

    AND (cvg_code = '0' OR cvg_code > = '20120101' OR cvg_code is NULL)

  • désélectionnera not Photoshop elements

    I'm not low on memory, but on both of my laptops Mac (pro and air) when I move an object, it continues to move with the beach ball will. THERE IS NO WAY TO DESELECT.

    It is as I have more memory and move to the right on the screen and off the file. I can't stop it. I tried to move manually the object with click by click with additional cursor moves, but it takes FOREVER. I have used PS elements for ten years and do graphic design for a living. So it kills me. Until this started past D option deselected. Help, please

    Martha Rosenberg

    What type of program you are using Photoshop Elements or Premiere Elements? Option D sounds like Photoshop elements Mac. If this is the case, you have posted your thread in the wrong forum. Some how your son got posted in the Forum Adobe Premiere elements (video editing).

    If it is as I suspect, please re-post your thread in the Forum of Adobe Photoshop elements to take advantage of the expertise, it. Photoshop Elements

    There seems little things I can tell you here if you have worked with Photoshop Elements products for 10 years. Did you take the classic route of deleting the file settings for the editor of Photoshop Elements? You are talking about

    When I move an object, it continues to move with the beach ball will. THERE IS NO WAY TO DESELECT.

    If your son could be on track movement in a video presentation of Premiere Elements, then specify here

    so that we can find the solution. Even if I take it as a matter of Photoshop Elements, clarification is required on your program and what you do. It seems to get the message about it deselect in Photoshop elements editor does not work, but I'm not sure of the surrounding details. If it wasn't for another of your coordinates, I'd say you've had a commitment pending (text or other) that is prevention, that you seem to seek the removal of a selection.

    Thank you.

    RTA

  • Queries for use by ExecuteQueryRS infra v8 API

    I will carry out ExecuteQueryRS of the infra v8 API to run a query below. I was under the impression that this could be any question, as if I was using the below customer as an officer. But this doesn't seem to be the case. I get an error, for example executing a query named 'Are called Current Status' and use a group below as the current assignee:

    "Application" get call Current Status"not found. »

    This indicates that this request is not available on my system.

    Then, I came across an example in this forum that mention the query with the name 'escalation status call '. It works fine on my installation. Applications are available in the infra v8 API using the ExecuteQueryRS method? Are there available out-of-the-box queries? I try to run a query that finds all calls assigned to a group.

    Thank you.

    If it is similar to the v8 somehing like in v9, you can check standard and customized (if you have the ones) questioned in *.sql [inside the Config folder] files.

    If there is no required query, you can define a (query or procedure) in your custom_infra.sql (or similar) of the file and analysed in the VSM Server Console. If you have created a new request file, don't forget to make a reference to it at the end of the file ' config - queries.xml.

    I just checked - there is none "are called Current Status" and "Climbing status call" in the standard VSM 9 queries (I suspect v8 has the same situation).

    G

  • Doubt: Filters in the Golden Gate region

    Hi all

    I am a developer ODI (Beginner) and have doubt abt Golden Gate.

    I have the script for monitoring:

    GG->-> area Mastersaf

    Customer told me to not make the filters on the first market (GG-> staging), at the stage of staging-> Mastersaf.

    Is this correct (should be)? Why?
    Kind regards

    It is a common requirement / query. Basically if you have the GG data capture for a database, you want to capture everything you pourriez have need, including in the future, rather than get everything what you know that you need today. So, Yes, all enter (or rather do not filter for free) and send everything to the staging area. Next week you many have another client (or a change in the rules) seeking additional data. If you are already captures the data, you don't have to change your configuration to get the additional tables, lines or columns & return to the source. Yes, it takes a little extra (temporary) storage space, but disk and bandwidth are (usually) cheaper that the development effort, no matter how much effort it really is. (Many data stores, to much more time to do the "paperwork" to make changes on the server of DB as the time it would take to make real change. This type of proactive policy ('capture in case we need") prevents this).

  • Increamental Dates check the records in the table

    My professional background is in the history table,
    I would like to write a query that search job history dates are correct.
    concerning

    rownum ID startdate enddate jobtitle
    1 200 xxxx 01.01.1990 30.12.2000
    2 300 yyyyyy 01.01.2001 15.07.2006
    3 400 zzzzzz 16.07.2006 null



    start dates or (endates) will check the required query like 01.01.1990 < = 01.01.2001 < = 16.07.2006

    I use ORACLE 10 g Standard Ed.

    concerning

    Edited by: Siyavus on September 14, 2009 12:32

    Edited by: Siyavus on September 14, 2009 12:34

    something like

         , case when lead (startdate) over (order by startdate) > startdate
                  or lead (startdate) over (order by startdate) is null
           then 'OK'
           else 'NOK'
           end
    

    as in

    SQL> with test as
      2  (
      3  select 200 id, 'xxxx'   jobtitle, to_date ('01.01.1990', 'dd.mm.yyyy') startdate, to_date ('30.
    12.2000', 'dd.mm.yyyy') enddate from dual union all
      4  select 300 id, 'yyyyyy' jobtitle, to_date ('01.01.2001', 'dd.mm.yyyy') startdate, to_date ('15.
    07.2006', 'dd.mm.yyyy') enddate from dual union all
      5  select 400 id, 'zzzzzz' jobtitle, to_date ('16.07.2006', 'dd.mm.yyyy') startdate, null from dua
    l
      6  )
      7  select startdate
      8       , case when lead (startdate) over (order by startdate) > startdate
      9                or lead (startdate) over (order by startdate) is null
     10         then 'OK'
     11         else 'NOK'
     12         end
     13    from test
     14  /
    01-JAN-90 OK
    01-JAN-01 OK
    16-JUL-06 OK
    SQL> 
    
  • I need to stop a download of the query, I thought a stand-alone application but turns require a higher level (FCPX) as a 'parent' and I do not who have, or want to buy.

    I need to stop a download of the query, that I thought a stand-alone application but turns require a higher level (FCPX) as a 'parent' and I do not have that, or I want to buy it.

    Motion IS a stand-alone application. It is mainly designed to make effects for Final Cut Pro X, but it is not necessary to have with FCPX nor is it necessary to have FCPX to create projects for other purposes. When you open the query, simply select project of work outside the FCPX motion. You can save regular projects of Motion anywhere on your system.

Maybe you are looking for