Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Oracle (https://www.askmehelpdesk.com/forumdisplay.php?f=443)
-   -   Need records of unmatched (https://www.askmehelpdesk.com/showthread.php?t=788599)

  • Apr 3, 2014, 08:57 PM
    venkateshan
    Need records of unmatched
    hi all,

    I want to get the records which is not in DB.
    For example;
    this is my db values

    id name mark
    -- ---- ----
    cs1 aa 89
    cs2 bb 88
    cs3 cc 80



    select id from table where id in('cs1','cs2','cs3','cs4')
    --------------------------------------------------------

    here I will get the result
    cs1,cs2,cs3.

    but I want get only the unmatched column cs4


    some on help me please
  • Apr 4, 2014, 04:43 AM
    ScottGem
    This is unclear. If you only want records that have an ID of cs4, then just use:

    WHERE id = 'cs4'

  • All times are GMT -7. The time now is 05:48 PM.