
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
Assignment 6: Creating the Babbage Bookkeeping
- Create a query to display the Client Number, Client Name, and Address fields for all clients with an address on Maum. Save the query as “Q22-Client-Maum Query.”
- Create a query that will allow the user to enter the city to search when the query is run. The query results should display the Client Number, Client Name, and Bookkeeper Number. Test the query by searching for those records where the client is located in Portage. Save the query as “Q23-Client-City Query.”
- Create a query from the Client table to display the cities in ascending order. Each city should appear only once (i.e., no repeating city). Save the query as “Q24-City-Sorting Query.”
- Create a query to display the Client Number, Client Name, and Balance fields for all clients where the bookkeeper number is 24 or 34 and the balance is greater than $300.00. Save the query as “Q25-Client-Bookkeeper24-34 Query.”
- Create a query to display the First Name, Last Name, and Hourly Rate fields from the Bookkeeper table and the Client Number, Client Name, and Balance fields from the Client table. Sort the records in ascending order by bookkeeper’s last name and client’s name. Save the query as “Q26-Client-Bookkeeper Query.”
- Create a query for the Bookkeeper table to display the Bookkeeper Number, First Name, Last Name, and Hourly Rate in the design grid. Create a new field named as “Hour Worked” in this query to calculate the number of hours each bookkeeper has worked (YTD Earnings/Hourly Rate). Display the data in this “Hour Worked” field as a standard number with 0 decimal place and also show this new created field in the Datasheet view . Save the query as “Q27-Bookkeeper-Hour Worked Query.”
- Create a query to display the following statistics:
- the total balance for all clients - Save the query as “Q28a-Client Total Balance Query.” Display Balance field.
- the total balance for each bookkeeper. Save the query as “Q28b-Bookkeeper Total Balance Query.” Display Bookkeeper Number and Balance fields.
- the total balance for clients of bookkeeper 22 - Save the query as “Q28c-Client-Bookkeeper22 Balance Query.” Display Bookkeeper Number and Balance fields.
- Create the crosstab query as shown in the Figure below: The crosstab groups total of clients’ balances by city and bookkeeper number. Save the query as “Q29-City-Bookkeeper Crosstab Query.”
SAVE
AI-Generated Solution
info
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
Unlock instant AI solutions
Tap the button
to generate a solution
to generate a solution
Click the button to generate
a solution
a solution
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Task 7: Create a procedure to add a row to the INVOICES table. CALL ADD_INVOICE('00001', '2021-11-20', '294') SELECT * FROM INVOICES WHERE INVOICE_NUM = '00001'arrow_forwardSales Database: Customers(custId, lastName, firstName, address, phone, creditLimit) Orders(ordNumber, itemNumber, qtyOrdered.) Items(itemNumber, itemName, price) For the Sales Database referenced above, write the SQL command to create the LineItem table, assuming the Orders table and items table already exist.arrow_forwardThe database contains a Horse table, with columns: ID integer, primary key Registered Name variable-length string. The database contains a Student table, with columns: • ID integer, primary key First Name - variable-length string LastName variable-length string Write a SQL Query to create a Schedule table, with columns: HorseID - integer with range 0 to 65535, not NULL • Student ID integer with range 0 to 65535 Lesson DateTime - date/time, not NULL (HorseID, Lesson DateTime) is the primary key Also, create the following foreign key constraints on Schedule columns: HorseID references Horse. When an ID is deleted from Horse matching Lesson Schedule rows are deleted. Student ID references Student. When an ID is deleted from Student, matching Student ID 's are set to NULL).arrow_forward
- Create a query that that returns staff members’ names (excludingdoctors), their hourly rates, number of hours worked and Salary(calculated column; there are 13 employees in the clinic) for the twoweeks period Create a query that returns all patients enrolled permanently with one ofthe doctors Create a query that would create a list of all patients that were seen by aparticular doctor on a given date (i.e. 12 December, 2020)arrow_forwardTask 8: Create the UPDATE_INVOICE procedure to change the date of the invoice whose number is stored in I_INVOICE_NUM to the date currently found in I_INVOICE_DATE.arrow_forwardCREATE 3 tables as listed below in your own database. */ CREATE TABLE Customer (CustomerID VARCHAR(20) PRIMARY KEY, CustomerLName VARCHAR(30), CustomerFName VARCHAR(30), CustomerStatus VARCHAR(10)); CREATE TABLE SaleOrder (OrderID INT IDENTITY PRIMARY KEY, CustomerID VARCHAR(20) REFERENCES Customer(CustomerID), OrderDate DATE, OrderAmountBeforeTax INT); CREATE TABLE SaleOrderDetail (OrderID INT REFERENCES SaleOrder(OrderID), ProductID INT, Quantity INT, UnitPrice INT, PRIMARY KEY (OrderID, ProductID)); /* Write a trigger to put the total sale order amount before tax (unit price * quantity for all items included in an order) in the OrderAmountBeforeTax column of SaleOrder. */arrow_forward
- Write a SELECT statement that returns all rows with salary, last name, street address and ZIP code (SALARY, LAST_NAME, STREET, ZIP_CODE) from the EMPLOYEE and ADDRESS tables, sorted by SALARY from largest to smallest. STREET and ZIP_CODE are in the ADDRESS table, while the other fields are in the EMPLOYEE table. The common key is EMPLOYEE_ID.arrow_forwardCreate a procedure to allow company employee to add new product to the database. This procedure needs only IN parameters.arrow_forwardTask 6: The Car Maintenance team considered that the available maintenance tasks should also have the price information in the database. Alter the MAINTENANCE_TYPES table to include a new column named MAINTENANCE_PRICE of type FLOAT. ANSWER IN MYSQL PLEASEarrow_forward
- Trigger pleasearrow_forward15. Open the AttendeeFirstName query in Design View and add criteria to select only those records where the FirstName field value begins with Lau followed by any other letters. Save the changes to the query. Open the query in Datasheet View, confirm that two records appear in the query results, and then close it.arrow_forwardTask 9: Create the DELETE_INVOICE procedure to delete the invoice whose number is stored in I_INVOICE_NUM.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education