Google News
logo
MySQL - Quiz(MCQ)
Which of the following MySQL statements is valid if 'sampledb' is a database and 'tbl' is a table in it?
A)
SELECT * FROM `sampledb`.`member`
B)
SELECT * FROM `member.sampledb`
C)
SELECT * FROM `sampledb.member`
D)
SELECT * FROM `member`.`sampledb`

Correct Answer :   SELECT * FROM `sampledb`.`member`


Explanation : When quotes are 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.

Advertisement