MySQL Database Operations


  1. What is the property of InnoDB that enforces foreign key relationships stay intact?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    The storage engine responsible for providing foreign key support is InnoDB. It enforces that the rules guarantee the foreign key relationship stays intact with no mismatching of data.


  1. The storage engine in MySQL that provides foreign key support is ___________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    In MySQL, there are a list of storage engines to choose from. Each storage engine provides its own set of facilities. The foreign key facilities are provided by the InnoDB storage engine.



  1. What is the kind of delete when deletion of an employee from table also deletes that employee from another table?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    In MySQL, a cascaded delete and update is possible where records can be deleted from multiple tables. These tables are related with the help of foreign keys. Foreign keys make table updates flexible.


  1. The ALL subquery performs operations on _____________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    The operators ‘ALL’ and ‘ANY’ are used to perform operations on columns. They are used in conjunction with a comparison operator in order to test the result of a column subquery.



  1. The operators that are used when a subquery returns multiple rows to be evaluated in comparison to the outer query are _____________











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    When there is a need to evaluate multiple rows in comparison to the outer query, the ‘IN’ and ‘NOT IN’ operators are used. They are used for testing whether a comparison value is present in a set of values.