When you have a subquery inside of the main query, which query is executed first?
You need to export the entire database, including the database objects, in addition to the data. Which command-line tool do you use?
You must ensure the accuracy and reliability of the data in your database. You assign some constraints to limit the type of data that can go into a table. What type of constraints are you assigning?
Which option of most MySQL command-line programs can be used to get a description of the program's different options?
MySQL uses environment variables in some of the programs and command-line operations. Which variable is used by the shell to find MySQL programs?
How can you create a stored procedure in MySQL?
If you were building a table schema to store student grades as a letter (A, B, C, D, or F) which column type would be the best choice?
Management has requested that you build an employee database. You start with the employee table. What is the correct syntax?
You are working with the tables as shown in this diagram. You need to generate the list of customers who purchased certain car models. Which SQL clause do you use?
Which query would NOT be used to administer a MySQL server?
What is the product of the database designing phase?
MySQL server can operate in different SQL modes, depending on the value of the sql_mode system variable. Which mode changes syntax and behavior to conform more closely to standard SQL?
MySQL programs are a set of command-line utilities that are provided with typical MySQL distributions. MySQL is designed to be a database.
Which MySQL command shows the structure of a table?
MySQL uses security based on**_**for all connections, queries, and other operations that users can attempt to perform.
Which MySQL command modifies data records in a table?
What is the best type of query for validating the format of an email address in a MySQL table?
In MySQL, queries are always followed by what character?
How can you remove a record using MySQL?
Which choice is NOT a statement you would use to filter data?
What does the following SQL statement return?
SELECT * FROM Employees WHERE EmployeeName LIKE 'a%'
In 'SELECT * FROM clients;' what does clients represent?
How does MySQL differ from SQL?
If you need to order a table of movies by name, which query will work?
A trigger is a database object that is associated with a table, and that activates when a particular event occurs for the table. Which three events are these?
You are working with very large tables in your database. Which SQL clause do you use to prevent exceedingly large query results?
What is the default port for MySQL Server?
How can you filter duplicate data while retrieving records from a table?
What is the difference between DROP and TRUNCATE?
How do you select every row in a given table named "inventory"?
In an efficiently designed relational database, what does every table have?
MySQL option files provide a way to specify commonly used options so that they need not be entered on the command line each time you run a program. What is another name for the option files?
After installing MySQL, it may be necessary to initialize the __ which may be done automatically with some MySQL installation methods.
You need to export the data in the customers table into a CSV file, with columns headers in the first row. Which clause do you add to your MySQL command?
One form of backup, replication, enables you to maintain identical data on multiple servers, as a ___ configuration.
What is the requirement for using a subquery in the SELECT clause?
Each time MySQL is upgraded, it is best to execute mysql_upgrade, which looks for incompatibilities with the upgraded MySQL server. What does this command do, upon finding a table with a possible incompatibility?
What mysql statement is used to check which accounts have specific privileges?
What table cannot have a trigger associated with it?
later versions of mysql support the native json data type for storing json documents. What is a drawback of json columns?
Which statement is true for the diagram below
Which statement can you use to load data from a file into the table?
See tables in the diagram. Make sure that any record added to the purchase table consists of a customerId, which exists in the customer table and a carId, which exists in the car table. You decide to use a trigger to do the validation. Which one?
Which is the correct syntax of an extended insert statement?
Q 45. You need an exact copy of a table with all columns and indexes. How?
you need to make your mysql system secure against hackers. What are you not supposed to do?
You manage a database with a table "customers". You created a temporary table also called "customers" with which you are working for the duration of your session. You need to recreate the temporary table with different specs. Which command do you need to run first?
you need to run a complex query with recursive subqueries but without creating a stored procedure or a function. Which command or clause do you use?
Which choice is not a processing algorithm for database views?
What is the MySQL 'perror' command-line utility used for?
How can you list all columns for a given table?
How would you list the full set of tables in the currently selected database?
Which choice is not one of the table maintenance statements?
In which table does MySQL store passwords for user accounts?
Management has requested that you build an employee database. You need to include each employee's current position and salary, as well as all prior positions and salaries with the company. You decide to use a one-to-many structure: an employee table with the main information such as name and address, and an employment table with position and salary history. You can use the employeelD field to connect them. What is employment.employeelD an example of?
In recent versions of MySQL (8.0+), what's the correct syntax to declare a CTE (Common Table Expression)?
What is one reason to introduce data redundancy into a normalized database design?
The code snippet below is used to read data from an XML file into a table. Which XML structure is **not** supported by the statement?
1 LOAD XML LOCAL INFILE 'cars.xml'
2 INTO TABLE cars
3 ROWS IDENTIFIED BY `
You are loading data into a table. Which command can you use to make sure that all data is inserted and duplicated rows are discarded?
Which statement about the `TRUNCATE TABLE` statement is true?
You are working with the tables as shown in this diagram. You need to get the number of cars sold per the home state of each customer's residence. How can you accomplish this?
In data migration, there is often a need to delete duplicate rows as part of data cleanup. Which statement works best?
When working with MySQL cursor, what must you also declare?
Which type of backup includes all the changes made to the data since the last full backup was performed?
You need to restore a MySQL database from a backup file. Which command-line tool do you use for the actual data import, after re-creating the database?
You are importing data as JSON into a new table. You run CREATE TABLE json_data ( city JSON ); and insert rows into this table. What is the correct syntax to see the list of cities?
If you want to use MyISAM instead of InnoDB, which option do you need to specify in the CREATE TABLE statement?
You are working with the table in this diagram. You want to use full-text search to find the customers who live on a street or a drive. What is the command to do that?