Submitted Questions

  • How to update a rows with opposite gender in Sql?

    In Emp table there is a column which consists of gender (Male or Female) ? How should one Can update the Values of Male to Female and Female to Male with a single query ?

    sandeep

    • Nov 22nd, 2014

    I need to update in the table not to select can u guys show me how to change directly in the database

    NARSIMHA

    • Nov 13th, 2014

    SELECT DECODE(GENDER,M,F,F,M,NULL) FROM EMP