1Z0-882 Exam Questions
110 real 1Z0-882 exam questions with expert-verified answers and explanations. Page 1 of 3.
- Question #1
Given the data: Expected output: Which query produces the expected output?
- Question #2
Which three statement types can be prepared?
- Question #3
A SELECT statement without an ORDER BY clause return some rows. Which statement is always true about the order of the returned results?
- Question #4
Consider the my_table table with two integer columns, a and b, and the contents as shown; Mysql > SELECT a, b FROM my_table; 1 row in set result of this query? SELECT a--b FROM my_...
- Question #5
Inspect the CREATE TABLE below: Mysql> CREATE TABLE foo (a INT, PRIMARY KEY (a)) ENGINE =InnoDB; Query Ok, 0 rows affected, 2 warnings (0.11 sec) Mysql> SHOW WARNINGS; Which two is...
- Question #6
Which of the following statements will add two columns of INT type to the `country` table?
- Question #7
The query below is attempting to CREATE a table based on the definition of the `world` table, including any column attributes and indexes. What is missing? CREATE TABLE t1 ______ w...
- Question #8
Which of the following will CREATE a table with exactly one multi-column index?
- Question #9
The people table contains the data as shown: Which two statements return two rows each?
- Question #10
Which two queries return a value of NULL?
- Question #11
The application logs contain many entries of the following: ERROR 1153 (OSSO1): Got a packet bigger than `max_allowed_packet' bytes With two scenarios can (Hibernate this error mes...
- Question #12
The data from t1 table is: Assuming You want to see this output: Which query achieves the preceding result?
- Question #13
Consider the CREATE FUNCTION statement: CREATE FUNCTION countrycount () BEGIN DECLARE count INT; SELECT COUNT (*) INTO count FROM country; RETURN count ; END What is the outcome wh...
- Question #14
The city table has the following structure: Consider the statement with an incorrect field name: PREPARE countryBYID FROM `SELECT country FROM city WHERE ID=?, What happens if a pr...
- Question #15
Which three database objects have non-case-sensitive names on all operating system?
- Question #16
Consider the stored procedure CREATE PROCEDURE param_test ( IN P_in INT, OUT P_out INT, INPUT P_inout INT) BEGIN SELECT P_in, P_out, P_ inout; SET P_in, P_inout END You execute a s...
- Question #17
As a developer, you inherit this table as part of a project: CREATE TABLE exam ( Exam_id INTEGER UNSIGNED NOT NULL PRIMARY KEY, Examinee_id INTEGER UNSIGNED UNIQUE, Score INTEGER U...
- Question #18
Which two Functions can be used in a C program to retrieve information about warning?
- Question #19
Consider the content of the class and student tables: Class Which three queries produce the same result?
- Question #20
You want to load data directly from a file into MYSQL by using the SOURCE command. Which types of data can the file contains to perform this?
- Question #21
Assume the user has just connected to the MySQL server. What is the result of the query SELECT @ a?
- Question #22
Inspect the query: Mysql>SELECT dept_no, emp_no FROM employees JOIN dept _manager USING(emp_no) WHERE dept_no'd004'; 4 rows in set (0.00 sec) Mysql>EXPLAIN SELECT dept_no, emp_no F...
- Question #23
You create a table and a stored procedure: CREATE TABLE t1 (f1 int); INSERT INTO t1 VALUES (1), (2) , (3), (4), (5); CREATE PROCEDURE sum_t1() BEGIN DECLARE done INT DEFAULT 0; DEC...
- Question #24
Which three connector/J connection strings can be used to connect to the MYSQL server?
- Question #25
You have two tables: news_source and news_feed. Here is some sample data from the news _feed table:
- Question #26
Identity two ways to configure a PHP application to use the UTF8 character set.
- Question #27
Assume that the current database has a table with the following structure (the values for the Field column have been removed for the purpose of this question) Mysql > DEBS count tr...
- Question #28
You execute this EXPLAIN statement for a SELECT statement on the table named comics.which contains 1183 rows: Mysql> explain select comic_ title, publisher from comics where comic_...
- Question #29
The friends table has the columns and contents as shown: Mysql> SELECT * FROM friends; This statement was executed: SELECT AVG (age) FROM friends What value is returned?
- Question #30
You wish to create a trigger on the country table. It will populate two session variables based on the row that is deleted: @old _countryNames with the value of the Name field @old...
- Question #31
Given the data from table t1: This DELETE command is executed: DELETE FROM t1 ORDER BY b.a DESC LIMIT 2; Which set of rows will be deleted by the command?
- Question #32
A table (t1) contains 1000 random integer values in the first column (col1). The random values are in the range of 0-1000. Examine this query: SELECT col1 FROM t1 WHERE col1 <=100...
- Question #33
You have access to a MySQL 5.6 database with the SELECT ,INSERT, and DELETE privileges on all tables in the mydb database. The mydb database. The mydb t1 table has five rows of dat...
- Question #34
You have two lists of values to correlate. Which query lists all names in colors1 and how many total matches are there in colors2?
- Question #35
Given the table City: SELECT Name FROM City WHERE CountryCode = `USA" OR WHERE CountryCode= `JPN' What does this statementprocedure?
- Question #36
Inspect the query: Mysql> SELECT count (emp_no) FROM titles WHERE title = `senior staff'; How can this query be optimized?
- Question #37
Examine the fruit and wine tables: Fruit You execute this query: SELECT fruited, fruitname FROM fruit UNION SELECT id, name, country FROM wine; What is the result?
- Question #38
The tab-delimited file"/tmp/people,txt contains: 1636 Carsten Pederson Denmark 4672 Kai Voigt Germany 4628 Max Mether France This is the structure of the people table: Mysq1> DESCR...
- Question #39
When working with stored routines, these details are available: - The affected -rows count - The number of conditions that occurred - The condition information, such as the error c...
- Question #40
Which two PHP modules provide APIs for developing MYSQL applications?
- Question #41
Which two can be used to obtain information stored in the Diagnostics Area?
- Question #42
Consider the structures of the country and countrylanguage tables. mysql >DESCRIBE country; mysql> DESCRIBE countrylanguage; Which query will give you the list of all European coun...
- Question #43
Assume your connection uses SQL mode ANSI_QUOTES. Which two statements cause a syntax error?
- Question #44
Consider the my_table table with these contents: You execute: SELECT 1 FROM my_table; What is the result?
- Question #45
Using the MYSQL command -Line client you have received the error "Lost connection to MYSQL server query" Which three are possible causes of the error?
- Question #46
An application tracks usage of educational courses in a company. Many people can take one course. Each person can take multiple courses. The data has been stored in one table but i...
- Question #47
Which two statements provide the definition for a view named view1 in the test database?
- Question #48
Which there statements describe valid reasons why queries that use "SELECT" construct are discouraged?
- Question #49
You have two tables: CREATE TABLE department ( Department_ID int unsigned NOT NULL auto_increment PRIMARY KEY, Department _Name varchar(12) NOT NULL ) ENGINE=InnoDB CREATE TABLE em...
- Question #50
These there tables represent a many -to-many relationship in asocial networking database: This query draft is constructed to report for the past 30 days: Which change will correct...