EBK CONCEPTS OF DATABASE MANAGEMENT
8th Edition
ISBN: 8220100706004
Author: Last
Publisher: Cengage Learning US
expand_more
expand_more
format_list_bulleted
Question
Chapter 3, Problem 22SCGC
To determine
To find the service request where description includes the word "pantry" using WHERE clause.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Use SQL to make the following changes to the Colonial Adventure Tours database (Figures 1-4 through 1-6 in Chapter 1). After each change, execute an appropriate query to show that the change was made correctly. If directed to do so by your instructor, use the information provided with the Chapter 3 Exercises to print your output or save it to a document. For any exercises that use commands not supported by your version of SQL, write the command to accomplish the task
Create a view named MAINE_TRIPS. It consists of the trip ID, trip name, start location, distance, maximum group size, type, and season for every trip located in Maine (ME)
a. Write and execute the CREATE VIEW command to create the MAINE_TRIPS view.b. Write and execute the command to retrieve the trip ID, trip name, and distancefor every Biking trip.c. Write and execute the query that the DBMS actually executes.d. Does updating the database through this view create any problems? If so, whatare they? If not, why not?
Use SQL to make the following changes to the Colonial Adventure Tours database (Figures 1-4 through 1-6 in Chapter 1). After each change, execute an appropriate query to show that the change was made correctly. If directed to do so by your instructor, use the information provided with the Chapter 3 Exercises to print your output or save it to a document. For any exercises that use commands not supported by your version of SQL, write the command to accomplish the task.
Create a view named MAINE_TRIPS. It consists of the trip ID, trip name, start location,distance, maximum group size, type, and season for every trip located in Maine (ME).
a. Write and execute the CREATE VIEW command to create the MAINE_TRIPS view.b. Write and execute the command to retrieve the trip ID, trip name, and distancefor every Biking trip.c. Write and execute the query that the DBMS actually executes.d. Does updating the database through this view create any problems? If so, whatare they? If not, why not
Write the following queries in SQL, using the university schema. (We suggestyou actually run these queries on a database, using the sample data that weprovide on the web site of the book, db-book.com. Instructions for setting upa database, and loading sample data, are provided on the above web site.). Find the maximum enrollment, across all sections, in Fall 2017
Chapter 3 Solutions
EBK CONCEPTS OF DATABASE MANAGEMENT
Ch. 3 - Prob. 1RQCh. 3 - Prob. 2RQCh. 3 - Prob. 3RQCh. 3 - Prob. 4RQCh. 3 - Prob. 5RQCh. 3 - Prob. 6RQCh. 3 - Prob. 7RQCh. 3 - Prob. 8RQCh. 3 - Prob. 9RQCh. 3 - Prob. 10RQ
Ch. 3 - Prob. 11RQCh. 3 - Prob. 12RQCh. 3 - Prob. 13RQCh. 3 - Prob. 14RQCh. 3 - Prob. 15RQCh. 3 - Prob. 16RQCh. 3 - Prob. 1TDECh. 3 - Prob. 2TDECh. 3 - Prob. 3TDECh. 3 - Prob. 4TDECh. 3 - Prob. 5TDECh. 3 - Prob. 6TDECh. 3 - Prob. 7TDECh. 3 - Prob. 8TDECh. 3 - Prob. 9TDECh. 3 - Prob. 10TDECh. 3 - Prob. 11TDECh. 3 - Prob. 12TDECh. 3 - Prob. 13TDECh. 3 - Prob. 14TDECh. 3 - Prob. 15TDECh. 3 - Prob. 16TDECh. 3 - Prob. 17TDECh. 3 - Prob. 18TDECh. 3 - Prob. 1CATCCh. 3 - Prob. 2CATCCh. 3 - Prob. 3CATCCh. 3 - Prob. 4CATCCh. 3 - Prob. 5CATCCh. 3 - Prob. 6CATCCh. 3 - Prob. 7CATCCh. 3 - Prob. 8CATCCh. 3 - Prob. 9CATCCh. 3 - Prob. 10CATCCh. 3 - Prob. 11CATCCh. 3 - Prob. 12CATCCh. 3 - Prob. 13CATCCh. 3 - Prob. 14CATCCh. 3 - Prob. 15CATCCh. 3 - Prob. 16CATCCh. 3 - Prob. 17CATCCh. 3 - Prob. 18CATCCh. 3 - Prob. 19CATCCh. 3 - Prob. 1SCGCCh. 3 - Prob. 2SCGCCh. 3 - Prob. 3SCGCCh. 3 - Prob. 4SCGCCh. 3 - Prob. 5SCGCCh. 3 - Prob. 6SCGCCh. 3 - Prob. 7SCGCCh. 3 - Prob. 8SCGCCh. 3 - Prob. 9SCGCCh. 3 - Prob. 10SCGCCh. 3 - Prob. 11SCGCCh. 3 - Prob. 12SCGCCh. 3 - Prob. 13SCGCCh. 3 - Prob. 14SCGCCh. 3 - Prob. 15SCGCCh. 3 - Prob. 16SCGCCh. 3 - Prob. 17SCGCCh. 3 - Prob. 18SCGCCh. 3 - Prob. 19SCGCCh. 3 - Prob. 20SCGCCh. 3 - Prob. 21SCGCCh. 3 - Prob. 22SCGC
Knowledge Booster
Similar questions
- Write the following queries in SQL, using the university schema. (We suggestyou actually run these queries on a database, using the sample data that weprovide on the web site of the book, db-book.com. Instructions for setting upa database, and loading sample data, are provided on the above web site.). Find the sections that had the maximum enrollment in Fall 2017.arrow_forwardThe figure below shows a sample database containing information about: · Students and their registrations · Courses and their sections · Faculty and their qualified courses The sample data is shown in each table for your understanding. Write SQL DML commands to do the following tasks: 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. Class roster means attendance list. Which instructors are qualified to teach ISM 3113? Is any instructor qualified to teach ISM 3113 and not qualified to teach ISM 4930? Note: If a faculty member has qualified a course, then he is eligible to teach that course. Moreover, you can also consider the Qualified table as the Faculty Course Allocation table.arrow_forwarduse sql to answer the following question To perform below tasks, refer to tables in the JustLee Book database. Create a list that display the title of each book and the name and phone number of the contact at the publisher’s office for reordering each book. Which books were written by an author with the Last Name-First Name (BAKER JACK)? Perform the search using author’s last name/first name. Determine which book(s) purchased by customer Steve Schell. Perform the search using the customer name & last name, not the customer number. If he/she has purchased multiple copies of the same book, unduplicated(DISCTINC) the result.arrow_forward
- Using the EMPLOYEE, JOB, and PROJECT tables in the Ch07_ConstructCo database, write the SQL code that will join the JOB, EMPLOYEE, and PROJECT tables using common attributes. Display the attributes shown in the results presented in Figure P7.2, sorted by project value.arrow_forwardThe figure below shows a sample database containing information about: · Students and their registrations · Courses and their sections · Faculty and their qualified courses The sample data is shown in each table for your understanding. Write SQL DML commands to do the following tasks: List the IDs of all faculty members who are qualified to teach both ISM 3112 and ISM 3113. Modify the query above in part 16 so that both qualifications must have been earned after the year 2005. List the ID of the faculty member who has been assigned to teach ISM 4212 during the semester II-2015. Display the course ID 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. Class roster means attendance list. Which instructors are qualified to teach ISM 3113? Is any instructor qualified to teach ISM 3113 and not…arrow_forwardCreate both the tables Branch and Supervisor with appropriate attribute names, primary key, foreign key and data type. Insert the above records into Branch and Supervisor tables. Display all the records from Branch and Supervisor (Separately) Display all the details of Name, City and Salary. Display the total salary for every city in the supervisor table. Write a PL/SQL program to display BName from the Branch table for D5. Write a PL/SQL program to display all the details of Supervisor who is getting more than 1250 salary using cursor. Update city as ‘Suhar’ for Supervisor named Jack. Write a Procedure to receive a Supervisor SId as Input and display all the related values of that Supervisor. (Also write the calling program.) Delete all the branch details of operations.arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- A Guide to SQLComputer ScienceISBN:9781111527273Author:Philip J. PrattPublisher:Course Technology Ptr
A Guide to SQL
Computer Science
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Course Technology Ptr