a. To modify the table location to include a column TotalFees having datatype as currency and create and run totals query on condounit table to get total fees by location and update the location table with these values manually.
b.
To create and check data macro for the after-insert event in the CondoUnit table to include the value of added condo fee in new record to the total fees in location table whenever there is insertion of new record in CondoUnit table.
c.
To create and check data macro for the after-update event in the CondoUnit table to add the difference between new condo fee and old condo fee to the total fees for the appropriate location.
d.
To create and check data macro for the after-delete event in the CondoUnit table to subtract the condo fee from the total fees for the appropriate location when deleting a row in the CondoUnit table.
Want to see the full answer?
Check out a sample textbook solutionChapter 4 Solutions
EBK CONCEPTS OF DATABASE MANAGEMENT
- 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_forwardDoes the DBMS or the user make the choice of which index to use to accomplish a given task?arrow_forwardThese are queries that use the full Red Cat Database as shown in Figure 3.1. To do these queries you cannot use the SimplifiedSales database. You must use the full Red Cat tables of Customer, Sale, SaleItem, Product, Manufacturer, and Employee tables. For each information request below, formulate a single SQL query to produce the required information. In each case, you should display only the columns requested. Be sure that your queries do not produce duplicate records unless otherwise directed. 1. What are the names of manufacturers of heels costing $50 or more? Only show manufacturer names. 2. List the categories and colors of shoes manufactured by Puma. Sort the results by category then by color. Show only category and color 3. What categories of shoes were have been sold whose SalePrice is over $100. Only show categories. 4. What are the first and last names and postal codes of customers living in California who made purchases in January 2015? (States appear in the database as…arrow_forward
- These are queries that use the full Red Cat Database as shown in Figure 3.1. To do these queries you cannot use the SimplifiedSales database. You must use the full Red Cat tables of Customer, Sale, SaleItem, Product, Manufacturer, and Employee tables. For each information request below, formulate a single SQL query to produce the required information. In each case, you should display only the columns requested. Be sure that your queries do not produce duplicate records unless otherwise directed. 4. What are the first and last names and postal codes of customers living in California who made purchases in January 2015? (States appear in the database as standard abbreviations, e.g. Alaska appears as “AK”). Show customer first name, last name, and postal code. 5. List the information contained in the SaleItem table concerning the sales of slippers (whose category is slippers). Categories are not capitalized in the database. Note: Your answer should dynamically include all current…arrow_forwardWhat is store procedure in DBMSarrow_forwardIf we think about it in terms of SQL, why can indexing cause updates and deletions to take longer? Due to the difficulty of reading handwriting, please be as specific as possible and write your responses in text. [Please accept my thanks in advance for your time.]arrow_forward
- given the structure of the Ch07_LargeCo database shown above , use SQL commands to answer the problems in the following steps .arrow_forwardHow to create a database in SQL?Please explain the whole process For example, suppose you have a set of data taken from the time it takes a machine to perform an action.And if there were two or more actions, how would it be represented? Thank you so mucharrow_forwardTask Description: consider the following relations for a university: Student (sid: integer, sname: string, GPA: real, dateOfBirth: date) Department (did: integer, dname: string, capacity: integer) Course (cid: integer, cname: string, credit: integer) Enroll (studentID: integer, courselD: integer, departmentID: Integer, enrollmentDate: date) studentlD, courselD, and departmentID in Enroll are foreign keys referencing the primary keys of the student, course, and department relations, respectively.arrow_forward
- What commands is used for removing (or deleting) a relation forms the SQL database?arrow_forwardQUICK SQL REQUEST (beginner level...) Back at work on Monday morning, the Vice President of Purchasing asks you to help him with the analysis of in-process storage. He asks you to pull information regarding the number of products per storage location. The result of the query should show: - The name of the warehouse (Location) - The number of different products per storage location - The total quantity of products found at this storage location - The average price of all products found at this storage location He mentions that for the moment he is only interested in the locations that have more than 50 distinct products because he wants to start inventorying the biggest locations first. Show the locations in order of smallest to largest number of distinct products. My request is linked to the question but i'm having trouble executing it I would love to know how to do it, thanks in advance.arrow_forwardWhat is a primary key? What is the primary key for each of the tables in the Colonial Adventure Tours database shown in Chapter 1?arrow_forward
- A Guide to SQLComputer ScienceISBN:9781111527273Author:Philip J. PrattPublisher:Course Technology PtrPrinciples of Information Systems (MindTap Course...Computer ScienceISBN:9781305971776Author:Ralph Stair, George ReynoldsPublisher:Cengage Learning
- Principles of Information Systems (MindTap Course...Computer ScienceISBN:9781285867168Author:Ralph Stair, George ReynoldsPublisher:Cengage LearningNp Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:CengageEnhanced Discovering Computers 2017 (Shelly Cashm...Computer ScienceISBN:9781305657458Author:Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. CampbellPublisher:Cengage Learning