Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

QUESTION 1 Match the scenario to the appropriate MySQL task. 1- GRANT ALL ON *.* TO Ricardo; a. Ricardo may change and view rows in

QUESTION 1

Match the scenario to the appropriate MySQL task.

1-

GRANT ALL ON *.* TO Ricardo;

a.

Ricardo may change and view rows in any table in the production database but may not add or delete a row.

2-

GRANT ALL ON *.* to ricardo WITH GRANT option;

b.

Ricardo may add and delete rows to any table in the production database but may not change an existing row.

3-

GRANT SELECT, INSERT, DELETE ON production.* to Ricardo.

c.

Ricardo has access to, and may modify, all databases and tables on the server and may extend his privileges to other users.

4-

GRANT SELECT, UPDATE on production.* to Ricardo;

d.

Ricardo has access to, and may modify, all databases and tables on the server.

5-

GRANT ALL on production.customers to Ricardo.

e.

Ricardo has access to and may modify all rows, columns, and table objects contained in the customers table of the production database.

QUESTION 2

Match the function to its purpose.

1-

RTRIM(4)

a.

Remove 4 trailing spaces.

2-

LTRIM(4)

b.

Return the first 4 characters.

3-

RIGHT(4)

c.

Return 4 the last 4 characters.

4-

LEFT(4)

d.

Remove 4 leading spaces.

QUESTION 3

Match the description of the privileges to the correct GRANT statement.

1-

GRANT ALL ON *.* TO Ricardo;

a.

Ricardo may change and view rows in any table in the production database but may not add or delete a row.

2-

GRANT ALL ON *.* to ricardo WITH GRANT option;

b.

Ricardo may add and delete rows to any table in the production database but may not change an existing row.

3-

GRANT SELECT, INSERT, DELETE ON production.* to Ricardo.

c.

Ricardo has access to, and may modify, all databases and tables on the server and may extend his privileges to other users.

4-

GRANT SELECT, UPDATE on production.* to Ricardo;

d.

Ricardo has access to, and may modify, all databases and tables on the server.

5-

GRANT ALL on production.customers to Ricardo.

e.

Ricardo has access to and may modify all rows, columns, and table objects contained in the customers table of the production database.

QUESTION 4

Match the term to a definition.

1-

One or more columns that uniquely define each row in a table.

a.

INDEX

2-

A column in one table that refers to the primary key of another table.

b.

PRIMARY KEY

3-

A means of a defining to a data base management system the specific location of a row.

c.

REFERENTIAL INTEGRITY

4-

When enforced, prevents the creation of any rows that would cause an invalid relationship between two tables.

d.

FOREIGN KEY

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions

Question

What is database design?

Answered: 1 week ago

Question

What is a LAN?

Answered: 1 week ago

Question

What is the difference between production and test systems?

Answered: 1 week ago

Question

22. Why is tPA not helpful in cases of hemorrhagepg109

Answered: 1 week ago