Can i  check or compare a column to three column?

working days,no of absent,leaves and lop are columns...
below if statement is correct?
if WORKING_DAYS <= IN(NO_OF_ABSENTS,LEAVES,LOP) then
end if;

You can do it like this
IF working_days <= LEAST(no_of_absents, leaves, lop) then
end if;

Similar Messages

  • How can I make my query to compare only columns of two tables... not the storage information?

    11GR2
    =-----------------------------------
    I am using below querry to compare two table that has same name, under two different users... But after making storage information false like below and  if the storage information is different on column level than it create "Alter modify " statements for the column ... How can I make my query to compare only columns of two tables... not the storage information?
    begin
    DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'PRETTY', TRUE);
    DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'SQLTERMINATOR',TRUE);
    DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'SEGMENT_ATTRIBUTES', FALSE);
    DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'STORAGE', FALSE);
    DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'TABLESPACE',FALSE);
    DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'CONSTRAINTS',FALSE);
    DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'REF_CONSTRAINTS',FALSE);
    DBMS_METADATA.SET_TRANSFORM_PARAM(DBMS_METADATA.SESSION_TRANSFORM,'CONSTRAINTS_AS_ALTER',FALSE);
    End;
    select REGEXP_REPLACE(dbms_metadata_diff.compare_alter('TABLE','TABLE_NAME_A','TABLE_NAME_A','USER1','USER2'),('USER1...'),'', 1, 0, 'i') from dual

    I am using below querry to compare two table that has same name, under two different users... But after making storage information false like below and  if the storage information is different on column level than it create "Alter modify " statements for the column ... How can I make my query to compare only columns of two tables... not the storage information?
    If you want help you have to SHOW us what you are doing and how you are doing it; you can't just try to tell us in your own words.
    We can't see your computer screen.

  • Using VBA Can we check the Font Testing in all the sheets (Arial)

    Team,
    Using VBA Can we check the Font Testing in all the sheets.
    Let us Assume the Font Type is Arial.
    I Need to create a File with Two Sheets.
    1) First Sheet
    a) Serial No
    b) Path of the Files ( Excel Files to check the Format)
    2) Second Sheet
    If the Font is not Arial.  We have to track the File Name (that we should get it from First Sheet Path Column) , Cell Number (ex: C3), Cell Value.
    Is that Possible?
    Thanks!
    Kiran

    Hi John,
    Thank you very much for your reply,
    But the above code is taking long time to run.
    Basically I have a Main file which calls set of files in a certain folder. When I click on Check format button I need to compare all the file mentioned in the Main file.
    When comparing the Main sheet should create a new sheet with all the Failures of Format checking Results.
    I mean which are NON-Arial. The newly created sheet should have 3 columns
    1) File Name
    2) Sheet Name
    3) Cell Name - Cell Value - Arial Font is not matching
    Main File Format of Sheet 1
    https://www.dropbox.com/s/kzoh1brbaf7e55r/Format_Checker_Main%20Sheet.jpg?dl=0
    Sheet 2
    This Sheet need to be created by Macro for Capturing the Failed Non-Arial ones.
    Many Thanks!
    Kiran

  • Quicker way to find total number of check marks in a column

    Hello my Numbers using friends.
    I use Numbers to take attendance at events. Each row is a persons name, each column is a date of a gathering. I have the cells functioning as check marks, and I just check people as present when they are there.
    I would like to know how many check marks are in a given column. The only way I know to effectively do this is by pressing = then clicking on every cell in the column. This takes a really long time.
    Is there an easier way to do it?
    Please advise.
    Thank you for reading this.

    This is my novice solution.
    Add an extra column. Put a formula in the first cell to set it to 1 if there is a check in the checkbox column, otherwise "". Replicate that formula to all cells in that column. Sum the column.
    I wizard can probably do it without the extra column.

  • Control-k key binding broken. How can I check and change my key bindings?

    I use the Terminal app a lot. Unfortunately I am not able to use the control-k shortcut to cut lines in the terminal anymore. How can I check (and change) the Terminal key bindings?
    Thank you!

    Basing on your input, you should get the following values:
    1) session keys
    SK_ENC: 6DCE2A99BACB5207A7A96A92F114D66C
    SK_MAC: 0D446132B168F75CD6F0A780693A4DD3
    SK_DEK: 19F7B0F94837F32874B29B5EFB7809F6
    2) host cryptogram
    1B781553209748EA
    3) Retail MAC
    01761103B810F00E
    Summing up, the External Authenticate command should have the following value:  84 82 01 00 10 1B781553209748EA 01761103B810F00E.
    Try to compare it with your results.
    Regards

  • How to compare all columns in a SELECT with all columns in a Cursor ?

    Hi All,
    I would like to know if something like this is possible in PL/SQL
    I have a cursor CUR1 which is a SELECT * FROM T1.
    And in my loop for every record found in CUR1 I am trying to retrieve its consecutive record in the table T2. Unfortunately T1 and T2 do not have a primary key so there are duplicates. But if I can compare each column of CUR1 with its respective column in T2, I can find the record. But the question is how ?
    So I tried something like this, but of course this is wrong, but hope this would give you an idea of what I trying
    VAR_T2 T2%ROWTYPE;
    CUR_T1 IS SELECT * FROM T1
    LOOP CUR_TI
    SELECT * INTO VAR_T2
    FROM T2 WHERE
    ‘ALL COLUMNS OF T2’ = ALL COLUMNS OF CUR1;
    So is there a easy way to accomplish this. Thank you, AJ

    As Walter says, this is simply an intersect if you are comparing all the columns.
    However, if you really must do it in a slow by slow, PL/SQL loop (no real valid reason why you would though)...
    DECLARE
      VAR_T2 T2%ROWTYPE;
      CUR_T1 IS
        SELECT * FROM T1;
    BEGIN
      FOR i IN CUR_TI
      LOOP
        SELECT * INTO VAR_T2
        FROM T2
        WHERE T2.col1 = i.col1
          AND T2.col2 = i.col2
          AND T2.col3 = i.col3
          AND T2.colN = i.colN;
      END LOOP;
    END;There is no simple mechanism for just saying "compare all the columns", you will have to specify each one individually in the WHERE clause.

  • Mixed bag  1.     I have a security app on my computer, Flashbrief.  I have it checked in the hide column but whenever I turn on the computer it appears in the top menu line.  2.     Whenever I turn on the computer, a new blank document window in MS Word

    mixed bag
    1.         I have a security app on my computer, Flashbrief. I have it checked in the hide column but whenever I turn on the computerit appears in the top menu line.
    2.         Whenever Iturn on the computer, a new blank document window in MS Word 2011 appears.  I do not have this listed in the login items.
    3.         I have a current model of Apple wireless mouse. It keeps getting stuck in text or e-mails and I have to somehowotherwise move the cursor to break it free.
    Help with any of these will be appreciated.
    BF

    1.         I have a security app on my computer, Flashbrief. I have it checked in the hide column but whenever I turn on the computerit appears in the top menu line.
    I've never heard of this software, and cannot find any reference to it online, which is a bit concerning.  What is it supposed to do?  There really isn't much need for security software on a Mac.
    2.         Whenever Iturn on the computer, a new blank document window in MS Word 2011 appears.  I do not have this listed in the login items.
    In Mac OS X 10.7, any applications left open when you shut down or restart are re-opened at startup, and any documents left open in an app when you quit are re-opened when you launch them again.  The former can be controlled by unchecking the box in the restart/shutdown alert:
    You will need to do this each time you shut down or restart, it won't remember that setting.
    The latter can be deactivated by unchecking the box in System Preferences -> General:
    3.         I have a current model of Apple wireless mouse. It keeps getting stuck in text or e-mails and I have to somehowotherwise move the cursor to break it free.
    That does not sound normal, but I don't use a mouse with my MBP, so I can't provide a solution, other than to try replacing the batteries in the mouse.

  • Combine checked item and update column

    Hi all,
    need to design a screen that allow user to update column (code) and also pick which statement to display for the next stage. My thought was to create a checkitem and LOV display. Once user has checked the box , the process should update the code first then select the checked item into a new table. But it appears to me I can get checked item cocept to work and inserted it to a new table but fail to address the LOV update. Can you help ?
    table: sample1, display as the following
    seq     code     comments amt
    1     T     test1     30
    2     A     test2     20
    3     T     test3     80
    4     T     test4     20
    user action: picked seq 1,2  and update code from A to T for seq2
    ==> process will insert the selected statement to result table
    table:result
    seq     code     comments amt
    1     T     test1     30
    2     T     test2     20mushar

    I am sorry . Just realized I posted this to a wrong forum.

  • How to compare 2 columns with data like...

    Hi,
    I have to compare 2 columns from 2 different tables the columns contain data like
    SELECT CIRCLE FROM RATE_PLAN
    OUTPUT
    (AP,NAT)
    (AS,NAT)
    (BH,NAT).
    SELECT CIRCLE FROM subscriber_info
    (AP,NAT)
    (AS,NAT)
    (BH,NAT)
    but when i put a join on the tables on this column i get the ouput as -0 rows returned
    select col1,col2 from rate_plan,subscriber_info
    where
    rate_plan.CIRCLE=subscriber_info.CIRCLE
    HOW DO I COMPARE THE 2 COLUMNS SO THAT I GET MATCHING RECORDS??
    NOTE:-DATATYPE OF BOTH THE COLUMNS IS SAME.

    Hi,
    using SQL*Plus can you cut and paste the result of following commands :set tab off
    set trimout on
    set trimspool on
    desc rate_plan;
    SELECT '-'||CIRCLE||'-' c FROM RATE_PLAN ;
    desc subscriber_info;
    SELECT '-'||CIRCLE||'-' c FROM subscriber_info ;And be sure to use the tags {noformat}{noformat} before and after the pasted output.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How can I check photoshop is giving correct colour screen display ?

    Hi,
    I photograph a bright red car in raw mode on a digital slr (Canon 20D) set to Adobe rgb 1998  and view it in BreezeBrowser and it looks just as I remember it. I open it into Pshop CS5 extended (which is set to Adobe rgb1998, Europe ISO Coated Fogra27, (as I am UK and this is what a calibration company set our works proofer to)  gray gamma 2.2 dot gain 20% and its become a little desaturated. Sampling it and comparing screens and colours with BreezeBrowser its definitley less red, a bit more orangey red instead. I need to up saturation to return the red, both in RAW converter and also after image opened if not done so beforehand in RAW converter.
    Colours just look muted.
    What tests can I carry out to find out what is going on ?
    Perhaps create a rgb 255 0 0 image in a way not influenced by photoshop and photo the monitor, then open this in photoshop and sample it. However that would be influenced by the exposure of the camera. Maybe I need to create a kodak grey card type image and establish correct exposure for the monitor brightness first. so what would that be as rgb ?
    Any other ideas ?
    I know though that Pshop is displaying duller. Once upon a time we had Adobe gamma and one would go through the calibration wizard to set up photoshop having already set up the monitor.
    What do we have to do after installing CS5 extended or CS4 to ensure Pshops display is correct ?
    I have Adobe gamma in the control panel, Is this something we still have to do in CS5, I wonder if its there because I still have Pshop 7 installed which used that wizard.
    XP pro is my OS.
    Envirographics

    How can I check photoshop is giving correct colour screen display ?
    Photoshop Monitor & Profile Image(link)
    a big tip - why colors in Photoshop look different in other applications - is:
    View> Proof Setup: Monitor RGB
    that should duplicate what the other apps are displaying (the RGB numbers are going straight to the monitor with no color adjustment) - Photoshop converts/adjusts source colors to the monitor profile for a so-called 'true-color' display...

  • Create ViewCriteria comparing two columns from same table

    Does anyone know how I can create a ViewCriteria where clause that compares two columns from the same table?
    For example if I had two integer columns (MINSAL and MAXSAL) and wanted to see if they are equal. I would normally do the following SQL below.
    SELECT * FROM EMPL
    WHERE MINSAL = MAXSAL

    It works, but it is not ideal.
    Setup a Transient column that performs a groovy evaluation of MINSAL=MAXSAL and then my ViewCriteria evaluates the column to true and I set Query Execution Mode to Both.

  • Tableview - column color disaply based on comparing other column on the tab

    Hi,
    Can any one give me some idea about how to compare two columns of table on IF_HTMLB_TABLEVIEW_ITERATORRENDER_CELL_START ?. I have to compare the column 3 with column 4 and display the color on column 3. I am trying to do that on IF_HTMLB_TABLEVIEW_ITERATORRENDER_CELL_START but this is not working out. Any suggestion ?.

    Hi,
    in IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START you only have the actual row in P_ROW_DATA_REF.
    Either you make the the availabe as iterator's attribute when instantiating or you collect the row P_ROW_DATA_REF when in RENDER_CELL_START to a class attribute.
    Regards,
    Sebastian

  • Check the type of column using powershell within a splist

    hi,
    i have a column called BU in my splist in many site collections.i had created using with lookup datatype and  now  since my design is changed i  want to create this as  a a choice field with few default values. Can anyone please
    help how to check this using powershell? i mean check the  datatype of  column using PS and  if its lookup then need to delete the list and recreate it with choice field. i know hot to create a splist with choice field using PS,
    but  i am unable to get the code for existence of lookup or choice field.
    $web = Get-SPWeb "http://sitename"
    $fieldnamebu= "BU"
    $mysplist = $web.lists["mysplist1"]
    $lookupfieldA="Lookup"
    foreach($sfield in $mysplist.fields)
    # how to check the datatype pf column as lookup
    if ( ##todo#### -eq $lookupfieldA )
    $mysplist.Delete();
    $web.upate();
    create the splist with choice field$spTemplate = $web.ListTemplates["Custom List"] #Create SPTemplate instance of Type Custom List
    $web.Lists.Add("mysplist1", "for approvers", $spTemplate)   #Add list to site$spList = $spWeb.Lists["mysplist1"]    #Get list instance
    $spList.OnQuickLaunch = $True   $spList.Update()    #Update list to reflect changes in site
    $spFieldType = [Microsoft.SharePoint.SPFieldType]::Text      #Get Field type to create
    $spList.Fields.Add("Mymn", $spFieldType, $false)      #Add new field to list}

    HI,
    To get the field types please refer below link...
    foreach ($field in $list.Fields) #Get all fields in lists
    if($spField -eq $field.Title) #if field in lists equals field in views
    Write-Host $spField " | " $field.Type -ForegroundColor Green #Write out each field (column)
    https://gallery.technet.microsoft.com/office/SharePoint-Get-SPFields-49039dc0
    To Create Choice field follow below reference:
    https://social.msdn.microsoft.com/Forums/en-US/8a874677-91cf-41dd-a601-f0dd7fdce213/creating-a-choice-column-via-powershell
    http://adicodes.com/add-fields-to-list-with-powershell-in-sharepoint-2010/
    Don't
    forget to mark it as an Answer if it resolves your issue and Vote Me as helpful if it useful.
    Mahesh

  • Compare 2 Columns using SSIS from two different tables

    Hello,
    A newbie to ssis.
    I have a Table 1 with Address Details and Table 2 with Address Details of same customer but from different sources. I have loaded these two data sources and also joined these two tables.
    I want to compare address column of one table with the other table, if they are not equal need to insert into another table.
    With Sql query we can perform it, but just want to know how to perform this with ssis.

    You can use the
    LookUp Transformation
    Arthur
    MyBlog
    Twitter

  • Passed parameter value to be checked with the retrieved column value

    select app.compositename,
    (select distinct stringvalue from WFMESSAGEATTRIBUTE where taskid = APP.taskid and name = 'approverPayload') as APPROVERPAYLOAD,
                                     from DEVT_SOAINFRA.WFTASK APP
                                   where APP.TEXTATTRIBUTE6 not like 'Product Data%'
                                   and (:P_REQUESTTYPE like '%JobCha%')
                                   and (:P_APPROVERID is null or
                                                   upper(nvl(APPROVERPAYLOAD,'-1')) like upper(:P_APPROVERID || ',%') or
                                                   upper(nvl(APPROVERPAYLOAD,'-1')) like upper('%,'||:P_APPROVERID ||',%') or
                                                   upper(nvl(APPROVERPAYLOAD,'-1')) like upper(:P_APPROVERID)
                                                                             above is my query and iam retriving approverpayload based on below select statement
                                                                             (select distinct stringvalue from WFMESSAGEATTRIBUTE where taskid = APP.taskid and name = 'approverPayload')
                                                                                                                and in the where conditions can i check the passed parameter :P_APPROVERID exists in the APPROVERPAYLOAD as i have tried below
                                                                             and (:P_APPROVERID is null or
                                                   upper(nvl(APPROVERPAYLOAD,'-1')) like upper(:P_APPROVERID || ',%') or
                                                   upper(nvl(APPROVERPAYLOAD,'-1')) like upper('%,'||:P_APPROVERID ||',%') or
                                                   upper(nvl(APPROVERPAYLOAD,'-1')) like upper(:P_APPROVERID)
                                                                                                                is my attempt correct if not can any one suggest me how to write it so.

    You cannot use the column alias in the same level in the where clause as you are doing it. It needs to be done one level higher. So it will look something like this.
    select * from
       select <column_name> <new_column_alias>
       from <table_name>
    where <new_column_alias> <operator> <condition>Regards
    Raj

Maybe you are looking for

  • How to add a user to an existing group????

    Can't seem to find how to add a user to an existing group (staff). I am trying to share data (rw) between my admin account (root) and a development user. On any other UNIX system I would just add the user name in the /etc/group file & logout/login in

  • Doubt in report Program

    I need to understand why logic for two movement type elements 9N7, both with storage Location “AFFL” and C__WERKS = U001. please see code below are mapped differently  .Answer is somewhere in this block…just I am getting lost within all those case/if

  • PC needs two attempts to turn on

    I'm starting the computer, everything sounds and looks fine, except my monitor keeps turning on and off, stating that it doesn't have input over the display port cable. When I reset the system via the button on my case, it boots correctly and the mon

  • A Doubt on Customization

    Hi, I read the following in OAF dev guide Extension is extending the functionality of an aplication using - Adding new functional flows. - Extending or overriding existing functional flows. - Extending or overriding existing business logic. I underst

  • IMac crashed when installing 9.2.1 over 9.1

    Towards the end of installing 9.2.1 (from downloaded image) I got an error dialog box which said Retry, Skip or Stop. No matter what I did, the machine crashed. Now it won't start up normally or from any bootable CD - just sits there with a grey scre