Home » MYSQL » Mysql Compound Statements » Question
  1. Which statement is valid if ‘`sampledb`’ is a database and ‘`tbl`’ is a table in it?
    1. SELECT * FROM `member.sampledb`
    2. SELECT * FROM `sampledb.member`
    3. SELECT * FROM `sampledb`.`member`
    4. SELECT * FROM `member`.`sampledb`
    5. None of these
Correct Option: C

When quotes is being used to refer to a qualified name, the individual identifiers are quoted within the name separately. So, the database name `sampledb` and table name `tbl` are quoted separately.



Your comments will be displayed only after manual approval.