Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN: 9780133594140
Author: James Kurose, Keith Ross
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
Chapter 17
How to manage
Exercises using the My Guitar Shop Database
Use Microsoft SQL Server
- Write a script that creates a user-defined database role named OrderEntry in the MyGuitarShop database. Give INSERT and UPDATE permission to the new role for the Orders and OrderItems table. Give SELECT permission for all user tables.
2.Write a script that (1) creates a login ID named “RobertHalliday” with the password “HelloBob”; (2) sets the default database for the login to the MyGuitarShop database; (3) creates a user named “RobertHalliday” for the login; and (4) assigns the user to the OrderEntry role you created in exercise 1.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 4 steps
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-engineering and related others by exploring similar questions and additional content below.Similar questions
- ALTER SESSION SET NLS_DATE_FORMAT = 'MM/DD/YYYY'; /* JOB TABLE */ CREATE TABLE JOB ( JOB_CODE varchar2(3) PRIMARY KEY, JOB_DESCRIPTION varchar2(25), JOB_CHG_HOUR float(8), JOB_LAST_UPDATE date ); INSERT INTO JOB VALUES('500','Programmer', '35.75','11/20/2015'); INSERT INTO JOB VALUES('501','Systems Analyst', '96.75','11/20/2015'); INSERT INTO JOB VALUES('502','Database Designer', '125', '3/24/2016'); INSERT INTO JOB VALUES('503','Electrical Engineer', '84.5', '11/20/2015'); INSERT INTO JOB VALUES('504','Mechanical Engineer', '67.9', '11/20/2015'); INSERT INTO JOB VALUES('505','Civil Engineer', '55.78','11/20/2015'); INSERT INTO JOB VALUES('506','Clerical Support', '26.87','11/20/2016'); INSERT INTO JOB VALUES('507','DSS Analyst', '45.95','11/20/2015'); INSERT INTO JOB VALUES('508','Applications Designer','48.1', '3/24/2016'); INSERT INTO JOB VALUES('509','Bio Technician', '34.55','11/20/2015'); INSERT INTO JOB…arrow_forwardPHP/MYSQL Question Assume you have ordersDB database stored in MYSQL server that contains the following 2 tables as follows: ... Table 1: Orders Table 2: OrderlItems int, Primary Key, Auto Increment orderID itemID int, Primary Key, Auto Increment userID int orderID int, Foreign Key productName varchar(50) int total double orderDate datetime quantity unitPrice double Use the following Connection.php by including it in your scripts which connect you to MYSQL server and the database. setAttribute(PDO::ATTR ERRMODE, PD0::ERRMODE EXCEPTION);arrow_forwardAnswer this question please.arrow_forward
- 3arrow_forwardCreate a table named "student" with the following columns/fields: 1. id - integer not null primary key and auto increment 2. name - string with max of 200 characters not null 3. birthdate - date allows null Enter your answer 2. Create a database named "enrollment" Enter your answer 3. Get all the columns/fields of the "student" table. Enter your answer 4. Update the name of the student to "John Doe" where its id is 10. Enter your answer 5. Modify the "student" table by adding "address" column/field as string and allows null. Enter your answer 6. Delete all the records in "student" table. Enter your answer 7. Delete a record in "student" table where its id is 1. Enter your answer 8. Get only the "name" and "birthdate" of the "student" table where its "name" starts with "Jo" Enter your answerarrow_forward3. Assign privileges to the new account that allow connecting to the database, creating newtables, and altering an existing table.arrow_forward
- Assignment Create a database in Access. In the database include the following tables: • Student info which has the following fields o First Name o Last Name o StudentID (primary key) • Courses table which includes the following fields: o CourselD (primary key) o Course Name o CRN • Schedule which contains the following fields: o StudentID o CourselD Create the proper relationships between the tables. Fill the tables with at least 5 students and 2 different classes. You can generate the data randomly by using the Mockaroo site Or you can review Extra Material for more links on how to generate random data Create a report to print out the course and the names of the students taking that course (so group by course). Make sure the report is well formatted, looks professional, include a professional header and a footer.arrow_forwardTask 5: The Developers team also wants you to ensure that emails are converted to lowercase after an update operation. Currently, new insertions are guaranteed to have lowercase emails, but there is no such guarantee for legacy emails. Therefore, the team wants to ensure that emails are being retained in a lowercase irrespective of any changes in the database. Create a new TRIGGER called email_update for the USERS table that runs before an UPDATE operation. Task: Create a TRIGGER to run on the USERS table before any UPDATE operation. (SQL Database Test): Create a TRIGGER before any UPDATE operations on the USERS tablearrow_forwardCreate a CRUD API to manage recipes. Design the database and create your createDB.sql file. Seed your database with some initial records. Your application should store these recipe fields: id name ingredient_1 ingredient_2 ingredient_3 recipe_author_first_name recipe_author_last_name recipe_category_name Follow RESTful conventions to set up the five standard routes for a CRUD api. Make sure your API responds appropriately to various situations: Errors Invalid requests Etc.arrow_forward
- You have a list of all your contacts details that you would like to store in a database. Your goal is that when a record is inserted in contacts table, you also want this record to be stored (inserted) in a backup table. Assume you have the two tables created: CONTACTS and CONTACTS_BACKUP. These two (2) tables have the same records. The CONTACTS table have the following columns: CONTACT_ID (Primary_Key), FIRSTNAME, LASTNAME and MOBILE_NO. CONTACTS_ID FIRSTNAME LASTNAME MOBILE_NO 1 100 Princess Kim 813023895 2 101 Henry Packer 811257891 3 102 Petrus Johannes 855698712 4 103 Lukas Shilongo 832584691 The CONTACTS_BACKUP table have the same columns and records as the CONTACTS table. CONTACTS_ID FIRSTNAME LASTNAME MOBILE_NO 100 Princess Kim 813023895 2 101 Henry Packer 811257891 3 102 Petrus Johannes 855698712 4 103 Lukas Shilongo 832584691 You now need to keep both tables in sync so that when a record is inserted into the CONTACTS table it should automatically be inserted into…arrow_forwardCreate another application/class named EmployeeDatabase that allows you to store anarray that acts as a database of any number of Employee objects up to 25. While the userdecides to continue, offer three options: to add a record to the database, to delete a recordfrom the database, or to change a record in the database. Then proceed as follows:If the user selects the add option, issue an error message if the database is full.Otherwise, prompt the user for an Id. If the Id already exists in the database, issuean error message. Otherwise, prompt the user for rest of the inputs and add the newrecord to the database.If the user selects the delete option, issue an error message if the database is empty.Otherwise, prompt the user for an Id. If the Id does not exist, issue an error message.Otherwise, delete the record.If the user selects the change option, issue an error message if the database is empty.Otherwise, prompt the user for an Id. If the requested record does not exist, issuean…arrow_forwardhe Car Maintenance team wants to add new maintenance tasks to the MAINTENANCES table which was created in Chapter 8, Activity 1. However, the team also wants to insert the tasks in a batch into the database. In other words, they want to insert the rows all together without inserting one-by-one. Therefore, you will need to create a script to add the following tasks and ensure that they are added together: Car ID: 1001, Maintenance Type: 2, Due: 2022-06-01 Car ID: 1003, Maintenance Type: 2, Due: 2022-06-01arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY
Computer Networking: A Top-Down Approach (7th Edi...
Computer Engineering
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:PEARSON
Computer Organization and Design MIPS Edition, Fi...
Computer Engineering
ISBN:9780124077263
Author:David A. Patterson, John L. Hennessy
Publisher:Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:9781337569330
Author:Jill West, Tamara Dean, Jean Andrews
Publisher:Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:9781337093422
Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:9780133750423
Author:VENIT, Stewart
Publisher:Pearson Education
Sc Business Data Communications and Networking, T...
Computer Engineering
ISBN:9781119368830
Author:FITZGERALD
Publisher:WILEY