Answered Questions

  • How many ways you can delete the table records ?

    In how many ways can I delete all the contents of a table and the entire table. Explain with syntax ?

  • What is SCN number in Oracle? Plz any one give me the explanation for SCN

    venu

    • Sep 1st, 2012

    SCN is generated by oracle when a transaction is successfully commited. This is referred to as SystemChangeNumber. We can think of it as a transaction id generated when we make some transaction in an ...

    SANTHOSH

    • Aug 15th, 2012

    SCN no is a number which is generated by the oracle, when we made any changes to the data that statements will be recorded in redo log files and every committed statement will be given this SCN no by oracle.

  • What is referential integrity constraint

    Star Read Best Answer

    Editorial / Best Answer

    Shivani Goel  

    • Member Since Jun-2009 | Jun 23rd, 2009


    Referential integrity constraint is that which depend upon the parent and child relationship.  In this one of the column have the primary key constraint and one of the column of another table have the foreign key constraint. So you cannot delete the column value which having the foreign key constraint until you never delete its related primary key column value from parent table. If you tried to do this it will show you error related to referential integrity constraint.   But if you still want to delete value from child table but never want to delete parent table column value then that purpose you can use 'on delete cascade' option.

    kierthi

    • Aug 16th, 2011

    A feature provided by relational database management systems (RDBMS's) that prevents users or applications from entering inconsistent data. Most RDBMS's have various referential integrity rules that y...

  • What is an integrity constraint

    Star Read Best Answer

    Editorial / Best Answer

    Shivani Goel  

    • Member Since Jun-2009 | Jun 23rd, 2009


    Integrity constraint is that which depend upon the parent and child relationship in which parent column have the primary constraint and child column have the foreign key constraint.
    You cannot delete the any value from column that have foreign key constraint until you never delete its related primary key column value, that is a integrity constraint.
    If you try to do this it will show you error related to integrity constraint.

    Rossitza Kanovska

    • Aug 9th, 2005

    An integrity constraint is a rule that restricts the values in a database. There are six types: A NOT NULL constraint prohibits a database value from being null.  A unique constraint prohibi...