1z0-882: MySQL 5.6 Developer Null Practice Questions
The free 1z0-882: MySQL 5.6 Developer questions that deal with null, with answers and explanations. The full bank and the timed practice test cover every topic the exam asks about.
Question #5
Which two queries return a value of NULL?
Select 2 answers.
Correct answer: A, D
Explanation
Comparisons with NULL using = or > yield NULL, while IS NULL and the NULL-safe <=> return 1 and COUNT(NULL) returns 0.
Question #7
You attempt to create two new tables: CREATE TABLE ‘warehouse’ ( ‘id’ int (11) NOT NULL AUTO_INCREMENT, ‘name’ varchar (20) NOT NULL, ‘phone’ varchar (20) NOT NULL, PRIMARY KEY (‘ id) ) ENGINE=MyISAM CREATE TABLE ‘warehouseitem’ ( ‘warehouse_id’ bigint (11) NOT NULL, ‘item_id’ int (11) NOT NULL, ‘count’ int(11) NOT NULL DEFAULT ‘0’, KEY “warehouse_id’ (‘warehouse-id) , FOREIGN KEY (warehouse_id) REFFERENCES warehouse (id) ) ENGINE= InnoDB You get this error : ERROR 1215 ( HYooo): cannot add foreign key constraint Which two changes are required to permit these statements to execute without any error?
Select 2 answers.
Correct answer: B, D
Explanation
Foreign keys require both tables to use InnoDB, and the referencing column must have exactly the same type as the referenced one, so warehouse becomes InnoDB and warehouse_id becomes int.
Continue with 1z0-882: MySQL 5.6 Developer
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in 1z0-882: MySQL 5.6 Developer, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
