Oracle 1Z0-874 - Questions & Answers
Free preview · every answer includes a full explanation
Product page: https://prepkeys.com/1z0-874.html
Which of the following best describes what the master.info file contains and how it is used?
Which of the following statements are required to create a key cache of 4 MB, assign the MyISAM table world.
City to it and preload the index?
How can the SHOW PROCESSLIST command be helpful when optimizing queries?
Consider the following:
mysql> EXPLAIN SELECT Name FROM Country WHERE Code = 'CAN'\G
*************************** 1. row ***************************
id: 1
select_type: SIMPLE
table: Country
type: const
possible_keys: PRIMARY
key: PRIMARY
key_len: 3
ref: const
rows: 1
Extra:
Which of the following best describes the meaning of the value of the type column?
Which of the following best describes why InnoDB tables should always have primary keys and why they should be short?
Which of the following best describes how the relay log works?
With replication, what on the master is used to send commands to the slave?
Given the following MyISAM table structure:
mysql> desc city;
+-------------+----------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------------+----------+------+-----+---------+----------------+
| ID | int(11) | | PRI | NULL | auto_increment |
| Name | char(35) | | | | |
| CountryCode | char(3) | | | | |
| District | char(20) | | | | |
| Population | int(11) | | MUL | 0 | |
+-------------+----------+------+-----+---------+----------------+
and the following SQL statement:
SELECT Population
FROM city
WHERE Population = 10000
ORDER BY Population
LIMIT 5;
Which of the following statements best describes how MySQL optimizer executes the query?
The stored function year_to_date is created by the 'root'@'localhost' account as follows:
CREATE FUNCTION year_to_date ()
RETURNS DECIMAL(10,2)
SQL SECURITY DEFINER
BEGIN
...
END;
Within the routine body, a number of calculations are made on data in the financials table and the calculated value is returned. The only account which can access the financials table is 'root'@'localhost'.
If a client connects with the account 'joe'@'localhost' and calls the year_to_date function, what will happen?
How can stored routines be used to check for constraints or legality of incoming data?