EBK CONCEPTS OF DATABASE MANAGEMENT
8th Edition
ISBN: 8220100706004
Author: Last
Publisher: Cengage Learning US
expand_more
expand_more
format_list_bulleted
Question
Chapter 4, Problem 7RQ
To determine
To revoke given user’s privilege using SQL command.
Expert Solution & Answer
Trending nowThis is a popular solution!
Students have asked these similar questions
Write the SQL command to revoke user Stetson's privilege.
Write the SQL commands to grant the following privileges:
User Stetson must be able to retrieve data from the Client table.
Users Webster and Bremer must be able to add new orders and order lines.
Use Oracle to create this PL/SQL command :
Perform Exception handling and use oracle error table that will be raised if the user entered.
If the user tried to update shopper email. Refer to bb_shopper table
Test your script and raise the exception.
Chapter 4 Solutions
EBK CONCEPTS OF DATABASE MANAGEMENT
Ch. 4 - Prob. 1RQCh. 4 - Prob. 2RQCh. 4 - Prob. 3RQCh. 4 - Prob. 4RQCh. 4 - Prob. 5RQCh. 4 - Prob. 6RQCh. 4 - Prob. 7RQCh. 4 - Prob. 8RQCh. 4 - Prob. 9RQCh. 4 - Prob. 10RQ
Ch. 4 - Prob. 11RQCh. 4 - Prob. 12RQCh. 4 - Prob. 13RQCh. 4 - Prob. 14RQCh. 4 - Prob. 15RQCh. 4 - Prob. 16RQCh. 4 - Prob. 17RQCh. 4 - Prob. 18RQCh. 4 - Prob. 1TDECh. 4 - Prob. 2TDECh. 4 - Prob. 3TDECh. 4 - Prob. 4TDECh. 4 - Prob. 5TDECh. 4 - Prob. 6TDECh. 4 - Prob. 7TDECh. 4 - Prob. 8TDECh. 4 - Prob. 9TDECh. 4 - Prob. 10TDECh. 4 - Prob. 11TDECh. 4 - Prob. 12TDECh. 4 - Prob. 13TDECh. 4 - Prob. 1CATCCh. 4 - Prob. 2CATCCh. 4 - Prob. 3CATCCh. 4 - Prob. 4CATCCh. 4 - Prob. 5CATCCh. 4 - Prob. 6CATCCh. 4 - Prob. 7CATCCh. 4 - Prob. 8CATCCh. 4 - Prob. 9CATCCh. 4 - Prob. 10CATCCh. 4 - Prob. 11CATCCh. 4 - Prob. 12CATCCh. 4 - Prob. 13CATCCh. 4 - Prob. 14CATCCh. 4 - Prob. 1SCGCCh. 4 - Prob. 2SCGCCh. 4 - Prob. 3SCGCCh. 4 - Prob. 4SCGCCh. 4 - Prob. 5SCGCCh. 4 - Prob. 6SCGCCh. 4 - Prob. 7SCGCCh. 4 - Prob. 8SCGCCh. 4 - Prob. 9SCGCCh. 4 - Prob. 10SCGCCh. 4 - Prob. 11SCGCCh. 4 - Prob. 12SCGC
Knowledge Booster
Similar questions
- Write the SQL code to change the job code to 501 for the person whose employee number (EMP_NUM) is 107. After you have completed the task, examine the results and then reset the job code to its original value.arrow_forwardAnswer 3 5-39. Write SQL commands for the following: Create two different forms of the INSERT command to add a student with a student ID of 65798 and last name Lopez to the STUDENT table. Now write a command that will remove this student from the STUDENT table. How would your command look like if your task was to remove any student with the last name Lopez from the STUDENT table? Create an SQL command that will modify the name of course ISM 4212 from Database to Introduction to Relational Databases. .arrow_forwardPLZ help with the following: Make a discount of 10% for all paintings. Write the SQL command to save all the changes made to the table. Remove a gallery number ‘5’ from the GALLERY table. Is deleting a GALLERY row creates sql file CREATE TABLE GALLERY (GAL_NUM char(4),GAL_OWNER varchar(35),GAL_AREACODE char(3),GAL_PHONE char(8),GAL_RATE number);INSERT INTO GALLERY VALUES('5','L. R. Gilliam','901','123-4456',0.37);INSERT INTO GALLERY VALUES('6','G. G. Waters','405','353-2243',0.45 );INSERT INTO GALLERY VALUES('1','N. D. Cosner','203','123-9956',0.67);INSERT INTO GALLERY VALUES('2','S. H. Artwork','415','154-3243',0.30); /* -- */ CREATE TABLE PAINTER (PTR_NUM char(4),PTR_LASTNAME varchar(15) NOT NULL,PTR_FIRSTNAME varchar(15) NOT NULL,PTR_AREACODE char(3),PTR_PHONE char(8));INSERT INTO PAINTER VALUES('123','Ross','Georgette','901','885-4567');INSERT INTO PAINTER VALUES('126','Itero','Julio','901','346-1112');INSERT INTO PAINTER VALUES('127','Geoff','George','615','221-4456');…arrow_forward
- Write SQL retrieval commands for each of the following queries: Display the course lD and course name for all courses with an ISM prefix. Display all courses for which Professor Berndt has been qualified. Display the class roster, including student name, for all students enrolled in section 2714 of ISM 4212. Write an SQL query to answer the following question: Which instructors are qualified to teach ISM 3113? Write an SQL query to answer the following question: ls any instructor qualified to teach ISM 3113 and not qualified to teach ISM 4930? Write SQL queries to answer the following questions: How many students were enrolled in section 2714 during semester I-2008? How many students were enrolled in lSM 3113 during semester l-2008? Write an SQL query to answer the following question: Which students were not enrolled in any courses during semester l-2008?arrow_forwardWrite SQL retrieval commands for each of the following queries: Display the course lD and course name for all courses with an ISM prefix. Display all courses for which Professor Berndt has been qualified. Display the class roster, including student name, for all students enrolled in section 2714 of ISM 4212. Write an SQL query to answer the following question: Which instructors are qualified to teach ISM 3113? Write an SQL query to answer the following question: ls any instructor qualified to teach ISM 3113 and not qualified to teach ISM 4930? Write SQL queries to answer the following questions: How many students were enrolled in section 2714 during semester I-2008? How many students were enrolled in lSM 3113 during semester l-2008? Write an SQL query to answer the following question: Which students were not enrolled in any courses during semester l-2008?arrow_forwardWrite SQL retrieval commands for each of the following queries: Display the course lD and course name for all courses with an ISM prefix. Display all courses for which Professor Berndt has been qualified. Display the class roster, including student name, for all students enrolled in section 2714 of ISM 4212. Write an SQL query to answer the following question: Which instructors are qualified to teach ISM 3113? Write an SQL query to answer the following question: ls any instructor qualified to teach ISM 3113 and not qualified to teach ISM 4930? Write SQL queries to answer the following questions: How many students were enrolled in section 2714 during semester I-2008? How many students were enrolled in lSM 3113 during semester l-2008? Write an SQL query to answer the following question: Which students were not enrolled in any courses during semester l-2008?arrow_forward
- plz help with the following: Change the following commands to oracle commands line meaning that they would be able to create the tables and their relationships when used on oracle live sql or oracle sql developper, CREATE TABLE `book`( `num` INT(20) NOT NULL AUTO_INCREMENT, `title` VARCHAR(20), `year` DATE, `subject` VARCHAR(20), `checkedout` DATETIME, `checkedin` DATETIME, PRIMARY KEY (`num`) ); CREATE TABLE `client`( `CID` INT(20) NOT NULL AUTO_INCREMENT, `fname` VARCHAR(25), `lname` VARCHAR(25), `type` VARCHAR(25), `num` INT(20), PRIMARY KEY (`CID`), FOREIGN KEY (`num`) REFERENCES `emp`.`state`(`state_id`) ); CREATE TABLE `author`( `id` INT(10) NOT NULL AUTO_INCREMENT, `year` DATE, `fName` VARCHAR(20), `lname` VARCHAR(20), `num` INT(20), PRIMARY KEY (`id`) ); ALTER TABLE `author` ADD FOREIGN KEY (`num`) REFERENCES `book`(`num`); ALTER TABLE `client` ADD CONSTRAINT `client_ibfk_1` FOREIGN KEY (`num`) REFERENCES `book`(`num`);arrow_forwardThe organization want to do audit for the employee information for this create in PL/SQL trigger whenever user perfoms any DML (INSERT, UPDATE, DELETE) operation on employee table. (hint: create a duplicate table and store the changes in that table whenever user performs any DML operations) Employee (employeeID, empFName, empLName, empDateBirth, address, empSalary#DepartmentID)arrow_forward1- Create a SQL statement to Display the RID, RType and Bedroom of all ROOMS whose number of bedrooms is less than RID 105. Use subquery. b- Create a SQL statement of a read-only view, name it as ViewC, that will contain CType and the number of clients per CType in the CLIENTS table. last onearrow_forward
- MS SQL server Create a Stored Procedures with the name of “usp_CalculateTotals”. usp_CalculateTotals should take three parameters: a client’s social security number (input parameter), mode (input parameter), and the total (output parameter). If the mode is 1, it should calculate the total balance of all the accounts of the client. If the mode is 2, it should calculate the total withdrawal amounts the client has done, and if the mode is 3, it should calculate the total deposit amounts the client has done. Implement the stored procedure below:arrow_forwardThree do If including downvote so far as well incorrectly. Create two different forms of the INSERT command to add a student with a student ID of 65798 and last name Lopez to the STUDENT table. Now write a command that will remove this student from the STUDENT table. How would your command look like if your task was to remove any student with the last name Lopez from the STUDENT table? Create an SQL command that will modify the name of course ISM 4212 from Database to Introduction to Relational Databases..arrow_forwardDo three please any 5-39. Write SQL commands for the following: Create two different forms of the INSERT command to add a student with a student ID of 65798 and last name Lopez to the STUDENT table. Now write a command that will remove this student from the STUDENT table. How would your command look like if your task was to remove any student with the last name Lopez from the STUDENT table? Create an SQL command that will modify the name of course ISM 4212 from Database to Introduction to Relational Databases..arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- A Guide to SQLComputer ScienceISBN:9781111527273Author:Philip J. PrattPublisher:Course Technology PtrDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781285196145Author:Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos CoronelPublisher:Cengage Learning
A Guide to SQL
Computer Science
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Course Technology Ptr
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781285196145
Author:Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:Cengage Learning