Create Tables


  1. Which among the following are the correct definitions for “NULL” in Mysql?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    Empty set, Absence of value and Unknown are the following are the correct definitions for “NULL” in Mysql.


  1. Which data type character merge the “Check Constraint” into a data type definition?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    ENUM



  1. Which among the following is the correct syntax for defining “ENUM” in Mysql?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    gender ENUM (‘M’, ‘F’),


  1. Which among the following is the correct syntax for defining “Constraint Check” in Mysql?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    Check constraint constrains the allowable values for a particular column.



  1. Find out the logical error in the following query?
    CREATE TABLE Employee
    ( Emp_id VARCHAR(50),
    Emp_Name VARCHAR (50),
    Emp_Address VARCHAR (50),
    Emp_Mobile_no SMALLINT
    );











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    Primary key is an essential attribute for each table declared in Mysql.