which of the following statements is true? Group of answer choices In the MySQL…
- User
which of the following statements is true? Group of answer choices
In the MySQL database, The value of a primary key is automatically generated by using INCREMENT keyword
In the MySQL database, The value of a primary key cannot be automatically generated
In the MySQL database, The value of a primary key is automatically generated by default.
In the MySQL database, The value of a primary key is automatically generated by using AUTO_INCREMENT
Flag question: Question 10 Question 108 pts All tables In a relational database MUST contain at least one Foreign Key.
(True/False)
Group of answer choices
True
False
Flag question: Question 11 Question 118 pts ORDER BY sorts data in descending order by default. Group of answer choices
True
False
Flag question: Question 12 Question 128 pts Which SELECT statement will return the largest salary in the salaries table? Group of answer choices
SELECT MAX(SALARY) FROM SALARIES;
SELECT MAXIMUM(SALARY) FROM SALARIES;
SELECT SALARY FROM SALARIES WHERE SALARY=MAX;
SELECT LARGEST(SALARY) FROM SALARIES;
Flag question: Question 13 Question 138 pts Which of the following statement(s) are true regarding a TRANSACTION? (Choose all that apply) Group of answer choices
Multiple Statements(INSERT, UPDATE) can execute in one TRANSACTION
Changes made within a transaction are invisible to other users of the database until the COMMIT statement is issued.
Transactions are committed using the ROLLBACK statement.
Transactions are committed using the Select statement.
Flag question: Question 14 Question 148 pts What will the following query return?
Assume: The productCode is the primary key in the product table
SELECT * FROM products p, orderdetails od WHERE p.productCode = od.productCode and od.productCode is null; Group of answer choices
Everything for products table that have an id of null.
The Query will return NO records.
Everything for products table that have no entry in the orderdetails table.
This query will result in an error.
Flag question: Question 15 Question 158 pts What will be the results of the following statement?
UPDATE PAYMENTS SET status = 'paid' WHERE payment_id NOT IN( SELECT payment_id FROM ACCOUNTS_PAYABLE WHERE status in ('pending', 'rejected') ); Group of answer choices
The statement will return an error.
Nothing will happen because the nested query will always return null
Payments that are ‘pending’ or ‘rejected’ in the ACCOUNTS_PAYABLE table will have their status set to ‘paid’.
- Assistant