Filters
Question type

Study Flashcards

Which WHERE clause can you use with a SELECT statement to perform a case-insensitive search for rows containing the first name Marco?


A) WHERE FIRST_NAME = UPPER('MARCO')
B) WHERE FIRST_NAME = LOWER('MARCO')
C) WHERE LOWER(FIRST_NAME) = 'MARCO'
D) WHERE UPPER(FIRST_NAME) = 'MARCO'

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

What does the error code 1172 stand for?


A) illegal value
B) not found
C) invalid argument
D) too many rows

E) B) and C)
F) None of the above

Correct Answer

verifed

verified

Discuss two reasons for creating a stored procedure.

Correct Answer

verifed

verified

When you anticipate running a particular...

View Answer

What is the difference between a nonprocedural language and a procedural language? Give an example of each.

Correct Answer

verifed

verified

A nonprocedural language is one in which...

View Answer

Applying the function ROUND(PRICE,0) to the price 24.95 results in 24.

A) True
B) False

Correct Answer

verifed

verified

The DATE_ADD function has one argument.

A) True
B) False

Correct Answer

verifed

verified

Which command do you use to write a procedure that should be executed automatically when a certain database operation is performed?


A) SET AFTER
B) SET ON UPDATE
C) CREATE PROCEDURE
D) CREATE TRIGGER

E) C) and D)
F) B) and D)

Correct Answer

verifed

verified

How do you write a procedure to delete a table row?

Correct Answer

verifed

verified

You begin by specifying a non-semicolon ...

View Answer

A trigger is executed _____.


A) regularly at given time intervals
B) in response to a command such as INSERT, UPDATE, or DELETE
C) in response to a TRIGGER command
D) at a user's request

E) All of the above
F) A) and B)

Correct Answer

verifed

verified

MySQL procedures without error handling _____.


A) display helpful error messages to the user
B) include "declare an exception" clauses
C) return unclear results when used with invalid arguments
D) are common and acceptable

E) None of the above
F) A) and B)

Correct Answer

verifed

verified

If Mack wants to display the number of days between two dates, such as the current date and an invoice date from a table, which function can he use in his MySQL query to accomplish this?


A) DATE_ADD()
B) SUBTRACT()
C) DATEDIFF()
D) SYSDATE()

E) A) and C)
F) A) and B)

Correct Answer

verifed

verified

A procedure that is executed automatically in response to an associated database operation is called a _____.


A) cursor
B) trigger
C) waypoint
D) fetchpoint

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

When creating a stored procedure to retrieve a single row with embedded SQL, you must place the procedural code _____.


A) inside a SELECT or WHERE clause
B) within the DELIMITER clause
C) between the BEGIN and END commands
D) after the DECLARE statement

E) None of the above
F) A) and B)

Correct Answer

verifed

verified

How do you add a specific number of days to a date in MySQL?


A) use the DATE_ADD function without an INTERVAL unit
B) use an expression with a plus (+) operator such as "+ 14"
C) use the ADD_DAYS function
D) use the SUM operator

E) C) and D)
F) A) and B)

Correct Answer

verifed

verified

What function can you use to obtain today's date in MySQL?


A) TODAYS_DATE()
B) CURRENT_DATE()
C) DATE()
D) CURDATE()

E) None of the above
F) A) and C)

Correct Answer

verifed

verified

Showing 21 - 35 of 35

Related Exams

Show Answer