EBK A GUIDE TO SQL
9th Edition
ISBN: 8220103671682
Author: Last
Publisher: CENGAGE L
expand_more
expand_more
format_list_bulleted
Question
Chapter 2, Problem 13CATC
To determine
To list Reservation ID, Customer number, customer last name and customer first name for the trips occur in July 2018.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
For this problem, the registrar’s office has requested that we create a report of students and the number of courses they have taken to verify minimum graduation requirements. You have been tasked with creating a table and procedure that track this information. To complete this problem:
a. create a table (NOT a temporary table) called student_course_nums within the university database schema.
b. Write a procedure that accepts a student ID as input. You must name your procedure: __stuCourseNumsProc Where is your last name and is the day of the month you were born. Below is an example of how I named my procedure: Hollers_21_stuCourseNumsProc
c. The procedure calculates the total number of course sections attended by that student, and adds a tuple to the student_course_nums table consisting of the student’s ID number, name, and total courses attended - call these attributes: ID, name, and tot_courses.
d. If the student already has an entry in the table, then the procedure makes sure the…
The 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…
Considering Vaccination Database, write queries to:
Display the Subject CNIC, Name, Contact, Dose1 Center, and Dose2 Center as shown below:
CNIC
Name
Contact
Dose1 Center
Dose2 Center
22401-6645321-1
Nasir
3409991112
Lachi
Kohat 2
14301-6045321-5
Shahab
3409991112
kohat 3
Dara
The subjects who have been vaccinated different types in Dose1 and Dose2. For instance, subjects who were vaccinated ‘Sinovac’ in the first dose, while Pfizer in the second dose.How many Viles of each type have been consumed so far. How many subjects are vaccinated from expired viles. Suggest the name of Incharge for the best performance award based on the highest number of subjects vaccinated on a single day
Chapter 2 Solutions
EBK A GUIDE TO SQL
Ch. 2 - Prob. 1RQCh. 2 - Prob. 2RQCh. 2 - Prob. 3RQCh. 2 - Prob. 4RQCh. 2 - Prob. 5RQCh. 2 - Prob. 6RQCh. 2 - Prob. 7RQCh. 2 - Prob. 8RQCh. 2 - Prob. 9RQCh. 2 - Prob. 10RQ
Ch. 2 - Prob. 11RQCh. 2 - Prob. 12RQCh. 2 - Prob. 13RQCh. 2 - Prob. 14RQCh. 2 - Prob. 15RQCh. 2 - Prob. 16RQCh. 2 - Prob. 17RQCh. 2 - Prob. 18RQCh. 2 - Prob. 19RQCh. 2 - Prob. 20RQCh. 2 - Prob. 21RQCh. 2 - Prob. 22RQCh. 2 - Prob. 23RQCh. 2 - Prob. 24RQCh. 2 - Prob. 25RQCh. 2 - Prob. 26RQCh. 2 - Prob. 27RQCh. 2 - Prob. 28RQCh. 2 - Prob. 29RQCh. 2 - Prob. 30RQCh. 2 - Prob. 1BCEQBECh. 2 - Prob. 2BCEQBECh. 2 - Prob. 3BCEQBECh. 2 - Prob. 4BCEQBECh. 2 - Prob. 5BCEQBECh. 2 - Prob. 6BCEQBECh. 2 - Prob. 7BCEQBECh. 2 - Prob. 8BCEQBECh. 2 - Prob. 9BCEQBECh. 2 - Prob. 10BCEQBECh. 2 - Prob. 11BCEQBECh. 2 - Prob. 12BCEQBECh. 2 - Prob. 13BCEQBECh. 2 - Prob. 14BCEQBECh. 2 - Prob. 15BCEQBECh. 2 - Prob. 16BCEQBECh. 2 - Prob. 17BCEQBECh. 2 - Prob. 18BCEQBECh. 2 - Prob. 1BCERACh. 2 - Prob. 2BCERACh. 2 - Prob. 3BCERACh. 2 - Prob. 4BCERACh. 2 - Prob. 5BCERACh. 2 - Prob. 6BCERACh. 2 - Prob. 7BCERACh. 2 - Prob. 1CATCCh. 2 - Prob. 2CATCCh. 2 - Prob. 3CATCCh. 2 - Prob. 4CATCCh. 2 - Prob. 5CATCCh. 2 - Prob. 6CATCCh. 2 - Prob. 7CATCCh. 2 - Prob. 8CATCCh. 2 - Prob. 9CATCCh. 2 - Prob. 10CATCCh. 2 - Prob. 11CATCCh. 2 - Prob. 12CATCCh. 2 - Prob. 13CATCCh. 2 - Prob. 14CATCCh. 2 - Prob. 15CATCCh. 2 - Prob. 16CATCCh. 2 - Prob. 17CATCCh. 2 - Prob. 18CATCCh. 2 - Prob. 1SPTCCh. 2 - Prob. 2SPTCCh. 2 - Prob. 3SPTCCh. 2 - Prob. 4SPTCCh. 2 - Prob. 5SPTCCh. 2 - Prob. 6SPTCCh. 2 - Prob. 7SPTCCh. 2 - Prob. 8SPTCCh. 2 - Prob. 9SPTCCh. 2 - Prob. 10SPTCCh. 2 - Prob. 11SPTCCh. 2 - Prob. 12SPTCCh. 2 - Prob. 13SPTCCh. 2 - Prob. 14SPTCCh. 2 - Prob. 15SPTCCh. 2 - Prob. 16SPTCCh. 2 - Prob. 17SPTCCh. 2 - Prob. 18SPTCCh. 2 - Prob. 19SPTC
Knowledge Booster
Similar questions
- An EMPLOYEES table was added to the JustLee Books database to track employee information. Display a list of each employee’s name, job title, and manager’s name. Use column aliases to clearly identify employee and manager name values. Include all employees in the list and sort by manager name.arrow_forwardUse 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?arrow_forwardDesign a survey form of your own. Fill it out as it might have been completed during the database design for Henry Books. For any questions you have too little information to answer, make a reasonable guess. (Ray Henry, the owner of a bookstore chain named Henry Books, gathers and organizes information about branches, publishers, authors, and books. Each local branch of the bookstore has a number that uniquely identifies the branch. In addition, Ray tracks the branch’s name, location, and number of employees. Each publisher has a code that uniquely identifies the publisher. In addition, Ray tracks the publisher’s name and city. The only user of the Book database is Ray, but you do not want to treat the entire project as a single user view. Ray has provided you with all the reports the system must produce, and you will treat each report as a user view. Ray has given you the following requirements: User View 1 Requirements: For each publisher, list the publisher code, publisher name, and…arrow_forward
- 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 notarrow_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_forwardA select procedure in a relational database can shrink a table's size by deleting columns that don't fit a certain set of requirements.Is it good or bad?arrow_forward
- 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 2017arrow_forwardparts that follow are the building blocks of most relational DBMSs' physical data structuresarrow_forwardIn Sql These are some database from a set of tables insert into AccountHolder(AccountID, CustomerID, AccountType)values (55003, 115, 'Savings'),(44001, 101, 'Chequing'),(55006, 109, 'Savings'),(44002, 102, 'Chequing'),(44003, 113, 'Chequing'),(55007, 108, 'Savings'),(44004, 103, 'Chequing'),(44005, 110, 'Chequing'),(55005, 112, 'Savings'),(44006, 114, 'Chequing'),(55001, 111, 'Savings'),(44007, 107, 'Chequing'),(44008, 104, 'Chequing'),(55004, 106, 'Savings'),(44009, 105, 'Chequing'),(44010, 113, 'Chequing'),(55002, 107, 'Savings'),(44011, 110, 'Chequing'),(44012, 104, 'Chequing') select * from AccountHolder insert into Branch(LocationID, BranchName, Address, Type, DepositSum, LoanSum)values (1, 'Boulevard Branch', '3268 Wade Boulevard', 'Rural', 171848.88, 37681.72),(2, 'Avenue Branch', '4814 Dare Avenue', 'Rural', 232707.42, 68324.56),(3, 'Street Branch', '208 Ferry Street', 'Commercial', 375010.75, 44665.08),(4, 'Road Branch', '468 Zulauf Road', 'Commercial', 496001.41,…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