Question
Implement SQL script that performs the following actions. (1) First, the script sets the appropriate values of the variables that allow create a general log,
Implement SQL script that performs the following actions.
(1) First, the script sets the appropriate values of the variables that allow create a general log, to save a general log in a relational table, and to start recording a general log from now.
(2) Next, the script makes a relational table that contains a general log empty.
(3) Next, the script sets the appropriate values of all variables that stop recording a general log from now.
(5) Next, the script lists all DDL statements (CREATE, ALTER, DROP) processed in a period of time when a general log was recorded.
(6) Next, the script lists total number of times each one of DML statements like SELECT, INSERT, UPDATE, DELETE has been processed in a period of time when a general log was recorded. It is acceptable to ignore DML statement if it has not been processed at all. Sort the results in an ascending order of the total number times a DML statement has been processed.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started