We can use EXISTS in which the condition

Hi all
We can use EXISTS (instead of IN) in which the status of a query that is not part of a subquery?

for example:

Update gpf_vou_sm set up_amt = 0 where src_cd ('1101 ', ' 1201');

the application works very well with the IN instead of EXISTS operator.

Everyone please help.


Thomas k prakash

Using in your case is better...

Yu S.Nayef are right IN suits here because the values are known

Tags: Database

Similar Questions

  • concatenation error - when I use the value of the column of text in which the condition.

    Hello

    I'm creating Materialized view using a few columns from two tables and by obligation, I need to prepare a select statement with a where condition in another column. (new heading)

    I tried like below...

    create a materialized view HAND
    force refresh on demand
    as
    Select
    a.table_name,
    a.column_name,
    b.trial_name,
    ' Select * from ' | '. a.table_name |' where ' | a.column_name | ' = '|| b.trial_name | « ; » "QUERY".
    Of
    exp_csv_tB has,
    b exp_csv_tr;


    the value of name a.table is: monitoring_table
    a.column_name value is: study
    b.trial_name = fty777



    Materialized view created with an extra column, but it is not added "(codes) to the value of the text in which the condition.

    output I got is:

    Select * from monitoring_table where study = fty777;

    but

    I need output like

    Select * from monitoring_table where to study = "fty777";

    value of fty777 must be in the codes like "fty777". I read a few articles, but did not get this example.

    Help, please.

    You need to escape your quotes (double upward on quote)

    create materialized view MAIN
    refresh force on demand
    as
    select
    a.table_name,
    a.column_name,
    b.trial_name,
    'select * from '||a.table_name||' where '||a.column_name|| ' = '''|| b.trial_name||''';' "QUERY"
    from
    exp_csv_tB a,
    exp_csv_tr b;
    
  • My wife has created a book of the best photos of the year project. How can I copy these photos in a standard album so I can use this set in the future?

    My wife has created a book of the best photos of the year project. How can I copy these photos in a standard album and the book so I can use this set in the future? All the commands I want to use are grayed.

    Using Photos of Apple.

  • How the installation and from D-link DES-1024r program to the internet so I can use 2 PCs on the internet

    How the installation and from D-link DES-1024r program to the internet so I can use 2 PCs on the internet

    "Why can´t I share my Internet connection on multiple computers if you use my D-Link switch or hub?

    "If you connect directly to a cable or DSL modem, you will need a router to share your Internet connection or a computer using ICS (Internet Connection Sharing) or Proxy." Switches and hubs don't allow you to share a single IP address to multiple computers.

    Another solution is to contact your ISP and buy additional IP addresses for each additional computer. "

    Cody C
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • I want to know if I can use creative cloud with the same account on different computers

    I want to know if I can use creative cloud with the same account on different computers, because my children want to she and I have known if I buy when I can use it on several computers at the same time

    If it is the individual subscription, you can activate on 2 computers only.

    However, there is no limit for installation, but you can connect and activate on 2 computers only.

    If you had already signed and activated CC apps on 2 computers, and there still if you want to activate on a 3' rd computer, you can simply disconnect one of the 2 comps, so that you can keep counties of activation.

    For more information, see the link below:

    https://www.Adobe.com/content/dotcom/IE/products/creativecloud/FAQ.html

  • Please can someone tell if I can use my creations with the tool shape in Photoshop, commercially for example on t-shirts? [was: on]

    Please can someone tell if I can use my creations with the tool shape in Photoshop, commercially for example on t-shirts. Thank you.

    Yes.  No problem.

    [EDIT]  I decided to qualify that.  No problem with forms that come standard with Photoshop, but just about every logo, symbol of the brand, can be downloaded in two vector forms and brush presets.  It would be another story, obviously if you have used this kind of work, but you knew I'm sure.

  • You can use a Clip in the UILoader?

    You can use a Clip in the UILoader?

    Thanks, rower

    You can load a swf file using the uiloader.  what you trying to do?

  • You can use functions defined by the user in orardf: statement?

    Hello, reading Chapter 5: refined for RDF data access control
    I found this example:

    OPTIONAL
    {
    ? control pred: hasContractValue? Val.
    ? control pred: hasManager * ' sys_context ("his $ appctx ', 'app_user_uri') ' ^^ orardf: instruction *.
    }

    See the orardf type: statement, I got the question if you can use functions defined by the user in the place where he has used the sys_context?

    Thank you.

    PD: The translation was made from Spanish to English by using Google Translator

    Hello Alberto,.

    Only the sys_context function is supported. The user-defined functions are not supported.

    Thank you
    Matt

  • Use existing footage of the external drive instead save the library?

    I can't find any info on the internet for this using FCPX.   There is a sequence library file that records your videos (makes copies) in the library of FCPX.   You have to do if you already have your video on an external drive?  Otherwise, I am just double everything I have and fill up my external drive even faster with 4 K images.  FCPX should the images of the library that are duplicated or can work with existing external images already on my drive (copied from my GH4).

    Images can be stored either inside the whole library, or it can be stored in a place designated outside the library. Media imported from a camera, a camera card or camera archive must be copied to the location of library media, either inside the library or to the designated place. Media who are not in a camera folder structure can be left in its original location and linked to the PCF, using symbolic links.

    So "GH4 copied" is not really accurate enough. If you copy the media in its folder structure, media have again copy in the location of library of the PCF. If you check out the media out of the folder structure on your hard drive you can use it in FCP with symbolic links, even if you run the danger that the media are not treated properly or it separates symbolic links through mismanagement.

  • You can use NI 9237 for the LVDT readings

    Dear comrades,

    I wonder if I can use NI 9237 and NI 9945 to get the reading of an LVDT. The interest is to measure the movement using Solartron DC Miniature LVDT.

    In our laboratory, we have NI 9237 and NI 9945 and I would get your advisor if it would be good enough to measure the movement of an LVDT.

    Thanks in advance.

    Hi Gtharm,

    For the Solartron DC Minitature LVDT transducer already includes oscillator, demodulator and filter which alow the sensor to accept the input voltage and provide a DC output from the position. Therefore, instead of using the bridge according to the measure such as the NI 9237 or NI9945 modules, you must only input I take the input voltage.

    The LVDT voltage range would determine which modules HAVE you need to take the measure. Of the specification, you need to at most 100 Hz to get the signal from the probe safely.

    I hope that this help mate.

  • How to write a select statement in which the condition?

    Hello Frs,

    Need help in the development of a discoverer report.

    My requirement is to write a query similar to this one

    Select * from emp is dept_no not in (select Department dept_no where emp_name like ' a % ;))

    Help, please.


    Thank you
    Rajesh

    Hello
    to do this exactly how you can do 1 of 3 things:
    1 use the Discoverer Desktop edition (most didn't do it) and use the sub query option you will find in the conditions.
    2. create a custom in the BA folder and create the report on the new custom folder
    3. create a view of db that contain your selection, and then create a folder in the BA based on this point of view and then create your report.

    Tamir

  • The Nike Apple Watch can use bands other than the band of Nike, it comes with

    I am looking to buy a Apple Watch series 2 and I'm not sure if I want the Nike + one or not. So I was wondering if I can use any other group with her other than Nike, with it will come?

    Hello

    Yes - all the bands of Apple Watch, past and present, will suit any Apple Watch of the same size of the case (42mm or 38mm), including Apple Watch Nike +.

  • You can use local drive as the mapped drives raw groups

    We have a new host with vShere4U1 installed on a couple of mirrored disks.  The host will initially run a SQL server and the operating system will be SAN (fibre) as all of our other machines are virtual host.  We do not have enough space on the SAN or the budget to upgrade to allow us to run the newspapers/Db SQL, then the host was purchased with an extra 14 discs (much less expensive) who were divided into two disk RAID groups 1 + 0 (410Gb & Go 540)

    I can attach disks locak to the host, but it is shaped as a vmfs and the dbo wants to use these discs as raw as he wants to use the size of the set and is limited to 256GB VMDK in the vmfs.

    Is there a way to present records in vSphere while they give me the opportunity to fix to the virtual machine as raw disks similar to the san, or in any other way.

    I'm a pretty confident user of ESX without being an expert (admin typical average closed sys - too many hats) and basic linux would be appreciate some comments/help.

    Home - HP DL160 G6

    See you soon

    If you remove the data store and then choose a block size, you can have a data store up to 2 TB in a single LUN. If you need you can extend the data to 62 to using extensions store.

    You really want to use raw disks. I don't know if it is possible anyway.

  • Using AJAX code for the conditional selection list.

    Hello

    I use AJAX code for the first time, I have no knowledge in java, I got the code from this forum and try to manipulate my requirement.

    My requirement is that I have two selection lists, host_name) 1 and 2) database_name.
    As soon as I pick/choose the value of host_name select list, I need to fill in only the databases on this particular host. I don't want to send the page for this action.

    Here is the code, thank you if anyone can help.


    On request the code application process:
    -----------------------------------------------------
    declare
    number of l_counter;
    l_o_name varchar2 (2000);
    Start
    owa_util.mime_header ("text/xml", FALSE ");
    HTP.p ('Cache-Control: non-cache');
    HTP.p ('Pragma: non-cache');
    owa_util.http_header_close;
    HTP. PRN ("< select > '");
    for rec in (select "ORA_DATABASES_VW". "' Database_name ' as 'database_name ',.
    'ORA_DATABASES_VW '. "" DB_ID "as"DB_ID ".
    of 'ORA_DATABASES_VW '.
    where 'ORA_DATABASES_VW '. ("' HOST_NAME ' =: TEMP_ITEM)
    loop
    HTP. PRN ("< option value ="' | rec.db_id |) '">' || Rec.database_name | ("< / option >");
    end loop;
    HTP. PRN ("</select > '");
    end;

    Header HTML on this page:
    =================
    < script language = "JavaScript1.1" type = "text/javascript" >

    function get_List_XML (source_item, target_item) {}

    var v_Target = html_GetElement (target_item);
    var v_Source = html_GetElement (source_item);
    var ajaxResult = new htmldb_Get (null, & APP_ID, 'APPLICATION_PROCESS = POPULATE_LIST_XML', 0);
    ajaxResult.add ('TEMP_ITEM', source_item.value);
    var v_result_xml = ajaxResult.get ('XML');

    If (v_result_xml & & v_Target)
    {
    var options_Contents = v_result_xml.getElementsByTagName ("option");
    v_Count = options_Contents.length;
    v_Target.length = 0;

    for (var i = 0; i < v_Count; i ++)
    {
    var v_opt_xml = v_result_xml.getElementsByTagName ("option");
    appendToSelect (v_Target, v_opt_xml.getAttribute ('value'), v_opt_xml.firstChild.nodeValue)
    }
    }

    }
    function appendToSelect (target_item, option_val, option_content) {}
    var v_Opt = document.createElement ("option");
    v_Opt.option_value = option_val;
    {if (document. All)}
    target_item.options.Add (v_Opt);
    v_Opt.innerText = option_content;
    } else {}
    v_Opt.appendChild (document.createTextNode (option_content));
    target_item. AppendChild (v_Opt);
    }
    }
    < /script >


    Attribute of the form in the host_name column element. P935_INSTANCE_DB_NAME is my page for database_name.
    OnChange = "get_List_XML (this,"P935_INSTANCE_DB_NAME").

    Feel free to mark the answers useful or correct ;)

  • You can use variable substitution in the Calc script.

    Hi guys,.

    I want to use variable substitution in the calculation script. I v_SECSUBAREA that my substitution variable and its value would be like C12.00 or C13.00 or C12.00, C13.00.

    But it gives me error mentioned below by checking the syntax of the calculation script.

    Error: parsing formula [statement of DIFFICULTY] (line 15) 1200315 error: invalid object type

    Calculation script:

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

    FIX (& v_CLEARYEAR, & v_CLEARMON)

    FIX (& v_SECSUBAREA)

    DIFFICULTY ('REPGBP', 'REPEUR', 'REPUSD', 'local', @DESCENDANTS ("DIVISION"), @LIST(&v_SECDNBENTITY), @DESCENDANTS ("SubAnalysis"),

    @DESCENDANTS ("RTNROW"), @DESCENDANTS ("RTNCOL"))

    CLEARDATA "RESUB."

    ENDFIX;

    ENDFIX;

    ENDFIX;

    Variable substitution:

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

    PRCCOR_ALLv_SECSUBAREAC12.00

    Calculation script does not have C12.00 as the value for the variable substitution. If I give FY15 then Script gives me a correct syntax.

    Please help me to get this resolved.

    Thank you

    Shruti

    Hello

    Assuming that you calculate in the PRC. Database COR_ALL.

    You may set the C12.00 value in quotes like "C12.00".

    Kind regards

    Philip Hulsebosch.

Maybe you are looking for