My Report

MySQL Practice Test 2


Correct Answer: 2 points | Wrong: -1 point
Grades: A* (100% score) | A (80%-99%) | B (60%-80%) | C (40%-60%) | D (0%-40%)
advertisement

1. Will the following SQL command produce any error?

INSERT INTO person
(person_id, fname,lname)
VALUES (1,’S’,’U’),
VALUES (2,’T’,’U’);
/* where person_id is a primary key */

2. What cannot be done on a view?

3. Which clause is used to remove a foreign key constraint?

4. Which clause names the parent table and the index columns in the table?

5. What is abc in the following MySQL statement?

	SELECT * FROM my_table WHERE MATCH(abc) AGAINST('xyz');

6. Which keyword used with UNION does not retain duplicate rows?

7. Which command is used to show all tables that are stored in a database?

8. The property of InnoDB that enforces foreign key relationships stay intact is called _____________

9. What does 'C' stand for in the ACID property of transactions?

10. Which command is used in Mysql command line tool to return to window command shell?


 

Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.