Create a stored procedure named prc return_video enter data about the return of videos that had been rented. The procedure should satisfy the following requirements. a. The video number will be provided as a parameter. b. Verify the video number exists in the VIDEO table. If it does not exist, display a message that the video number provided was not found and do not write any data to the database. c. If the video number does exist, then use a Count() function to ensure that the video has only one record in DETAILRENTAL for which it does not have a return date. If more than one row in DETAILRENTAL indicates that the video is rented but not returned, display an error message that the video has multiple outstanding rentals and do not write any data to the database. d. If the video does not have any outstanding rentals, then update the video status to “IN” for the video in the VIDEO table, and display a message that the video had no outstanding rentals but it is now available for rental. If the video has only one outstanding rental, then update the return date to the current system date, and update the video status to “IN” for that video in the VIDEO. Then display a message stating that the video was successfully returned.
> The McArthur Co. produces special vacuum cleaners for conveniently cleaning the inside of cars. About a thousand of these are produced every month with stamped serial numbers and stored serially in a stock room. Once a month, an inspector does a quality
> Design a questionnaire that you could use to assess the quality of your on‐campus dining facilities. Make sure you can test the following hypotheses: H1: There is a positive relationship between the service quality of the on‐campus dining facilities and
> Discuss the advantages and disadvantages of personally administered, questionnaires, mail questionnaires, and electronic questionnaires.
> When we collect data on the effects of treatment in experimental designs, which statistical test would be most appropriate to test the treatment effects?
> Consider the following reliability analysis for the variable customer differentiation. What could you conclude from it? Reliability analysis-scale (alpha) Item-total statistics Scale Scale Corrected Alpha if item deleted Mean if item Variance if it
> A researcher wants to provide an overview of the gender of the respondents in his sample. The gender is measured like this: What is your gender? 0 Male 0 Female What is the best way to provide an overview of the gender of the respondents?
> A valid instrument is always reliable, but a reliable instrument is not always valid”. Comment on this statement.
> What does coding the data involve?
> What activities are involved in getting the data ready for analysis?
> A disadvantage of observation is observer bias. Discuss at least two ways of minimizing observer bias.
> What is reactivity?
> What is meant by operational definition, when is it necessary, and why is it necessary?
> How does a simple checklist differ from a sequence record on time-scale?
> Is it possible to test hypotheses with structured observation? Why (not)?
> Why is it wrong to use correlates of a concept to measure that concept?
> Since we cannot directly observe achievement motivation, job satisfaction, and service quality, these are not appropriate topics for a scientific study.” Discuss this statement.
> Explain why it is impossible to measure an object.
> Is it useful to draw on existing measures to measure abstract and subjective constructs such as for instance customer loyalty? Why (not)?
> Xavier Gonzalez Garcia is a Business Administration student at a big, reputable university in England. Xavier loves to play soccer and tennis, he very much enjoys listening to music (he is a big fan of Muse), and he is fond of watching movies. He is a st
> Alter the VIDEO table to include an attribute named VID_STATUS to store character data up to 4 characters long. The attribute should not accept null values. The attribute should have a constraint to enforce the domain (“IN”, “OUT”, and “LOST”), and hav
> Describe the client/server model for application processing.
> Update the DETAILRENTAL table to set the values in DETAIL_RETURNDATE to include a time component. Make each entry match the values shown in the following table. RENT_NUM VID_NUM DETAIL_RETURNDATE 1001 34342 02-MAR-16 10:00am 1001 61353 03-MA
> Alter the DETAILRENTAL table to include a derived attribute named DETAIL_DAYSLATE to store integers up to 3 digits. The attribute should accept null values.
> Write a query to display the checkout number, check out date, and due date for every book that has been checked out (See Figure P7.67). (68 rows) FIGURE P7. 67 All Checkouts CHECK NUM CHECK OUT DATE CHECK DUE DATE 91001 3/31/2015 4/14/2015 91002 3/3
> Write the SQL command to change the movie year for movie number 1245 to 2010.
> Write a query that displays the first and last name of every patron (See Figure P7.66). (50 rows) FIGURE P7. 66 All Patron Names PAT FNAME PAT LNAME robert Kelsey Cedric carter Коch Baldwin Vera Alvarado Alan Martin Cory Peggy Tony Betsy Barry Marsh
> Write the SQL command to save the rows inserted in Problem 97.
> The following tables provide a very small portion of the data that will be kept in the database. This data needs to be inserted into the database for testing purposes. Write the INSERT commands necessary to place the following data in the tables that w
> Write the SQL code to create the table structures for the entities shown in Figure P7.96. The structures should contain the attributes specified in the ERD. Use data types that would be appropriate for the data that will need to be stored in each attri
> Write a query to display the total value of all books in the library (See Figure P7.95). FIGURE P7. 95 Total of All Books Library Value 1499
> Write a query to display the author ID and the number of books written by that author. Sort the results in descending order by number of books, then in ascending order by author ID (See Figure P7.94). FIGURE P7. 94 Number of Books per Author AU ID
> Write a query to display the subject and the number of books in each subject. Sort the results by the number of books in descending order, then by subject name in ascending order (See Figure P7.93). FIGURE P7. 93 Number of Books per Subject BOOK SU
> Write a query to display the number of different patrons who have ever checked out a book (See Figure P7.92). FIGURE P7. 92 Different Patrons to Checkout a Book DIFFERENT PATRONS 33
> Write a query to display the lowest book cost in the system (See Figure P7.91). FIGURE P7. 91 Least Expensive Book Price Least Expensive 49.95
> Write a query to display the highest book cost in the system (See Figure P7.90). FIGURE P7. 90 Most Expensive Book Price Most Expensive 129.95
> What basic database design strategies exist, and how are such strategies executed?
> Write a query that displays the book title, cost and year of publication for every book in the system. FIGURE P7. 65 The Ch07_FACT ERD CHECKOUT PATRON PK Check Num PK Pat ID FK1 Book_Num FK2 Pat_ID Check_Out_Date Check_Due_Date Check_In_Date ---H- P
> Write a query to display the number of books that are available (not currently checked out) (See Figure P7.89). FIGURE P7. 89 Number of Books not Currently Checked Out Available Books 14
> Write a query to display the number of different book subjects in the FACT system (See Figure P7.88). FIGURE P7. 88 Number of Different Subjects Number of Subjects 4
> Write a query to display the number of books in the FACT system (See Figure P7.87). FIGURE P7. 87 Number of Books Number of Books 20
> Write a query to display the author ID, first name, last name, and year of birth for all authors. Sort the results in descending order by year of birth, and then in ascending order by last name (See Figure P7.86). (Note that some DBMS sort NULLs as bein
> Write a query to display the checkout number, book number, patron ID, check out date, and due date for all checkouts that have not yet been returned. Sort the results by book number (See Figure P7.85). FIGURE P7. 85 Unreturned Checkouts CHECK NUM B
> Write a query to display the author ID, first and last name of all authors whose year of birth is known (See Figure P7.84). FIGURE P7. 84 Authors with Known Birth Year AU ID AU FNAME AU_LNAME Reeves 185 Benson 218 Rachel Beatney 251 Hugo Bruer 273 R
> Write a query to display the author ID, first and last name of all authors whose year of birth is unknown (See Figure P7.83). FIGURE P7. 83 Authors with Unknown Birth Year AU ID AU FNAME AU LNAME 229 Carmine Salvadore 262 Xia Chiang 559 Rachel McGil
> Write a query to display the patron ID, first and last name, and patron type for all patrons whose last name begins with the letter “C” (See Figure P7.82). FIGURE P7. 82 Patrons Whose Last Name Starts with â€
> Write a query to display the patron ID, first and last name of all patrons that are students (See Figure P7.81). (44 rows) FIGURE P7. 81 Student Patrons PAT ID PAT FNAME PAT LNAME 1166 Vera Alvarado 1171 Peggy 1172 Tony 1174 Betsy Marsh Miles Malone
> Write a query to display the book number, title, and year of publication for all books that contain the word “Database” in the title, regardless of how it is capitalized (See Figure P7.80). FIGURE P7. 80 Book Titles Co
> Write a query to display the manager name, department name, department phone number, employee name, customer name, invoice date, and invoice total for the department manager of the employee who made a sale to a customer whose last name is Hagan on May 18
> What is the relationship between the SDLC and the DBLC?
> Create a stored procedure named prc_new_detail to insert new rows in the DETAILRENTAL table. The procedure should satisfy the following requirements. a. The video number will be provided as a parameter. b. Verify the video number exists in the VIDEO tab
> Create a stored procedure named prc_new_rental to insert new rows in the RENTAL table. The procedure should satisfy the following conditions. a. The membership number will be provided as a parameter. b. Use a Count() function to verify that the membersh
> Create a sequence named rent_num_seq to start with 1100, increment by 1, and not cache any values.
> Create a trigger named trg_mem_balance that will maintain the correct value in the membership balance in the MEMBERSHIP table when videos are returned late. The trigger should execute as an AFTER trigger when the due date or return date attributes are u
> Create a trigger named trg_late_return that will write the correct value to DETAIL_DAYSLATE in the DETAILRENTAL table whenever a video is returned. The trigger should execute as a BEFORE trigger when the DETAIL_RETURNDATE or DETAIL_DUEDATE attributes ar
> Update the PRICE table to place the values shown in the following table in the PRICE_RENTDAYS attribute. PRICE_CODE PRICE_RENTDAYS 1 5 2 3 3 5 4 7
> Alter the PRICE table to include an attribute named PRICE_RENTDAYS to store integers up to 2 digits. The attribute should not accept null values, and should have a default value of 3.
> Update the VID_STATUS attribute of the VIDEO table using a subquery to set the VID_STATUS to “OUT” for all videos that have a null value in the DETAIL_RETURNDATE attribute of the DETAILRENTAL table.
> Write a query to display the brand ID, brand name, brand type, and average price of products for the brand that has the largest average product price. FIGURE P7. 63 Brand with highest average price BRAND ID BRAND NAME BRAND TYPE AVGPRICE 29 BUSTERS
> Write a query to display the largest average product price of any brand. FIGURE P7. 62 Largest average brand price LARGEST AVERAGE 22.59
> Write a query to display the employee number, last name, first name, and sum of invoice totals for all employees who completed an invoice. Sort the output by employee last name and then by first name. FIGURE P7. 61 Total value of invoices completed by ea
> Write a query to display the vendor ID, vendor name, brand name, and number of products of each brand supplied by each vendor. Sort the output by vendor name and then by brand name. FIGURE P7. 60 Number of products of each brand supplied by each vendor
> Describe the following: TCP/IP, Router, HTML, HTTP, and URL.
> Write a query to display the department number, department name, department phone number, employee number, and last name of each department manager. Sort the output by department name. FIGURE P7. 59 Department managers DEPT PHONE EMP NUM EMP LNAME 8
> Write a query to display the customer code, first name, last name, and sum of all invoice totals for customers with cumulative invoice totals greater than $1,500. Sort the output by the sum of invoice totals in descending order. FIGURE P7. 58 List of cu
> Write a query to display the employee number, first name, last name, and largest salary amount for each employee in department 200. Sort the output by largest salary in descending order. FIGURE P7. 57 Largest salary amount for each employee in departmen
> Write a query to display the department number and most recent employee hire date for each department. Sort the output by department number. FIGURE P7. 56 Most recent hire in each department DEPT NUM MOSTRECENT 200 6/8/2005 250 12/15/2015 280 4/16/
> Write a query to display the brand ID, brand name, and average price of products of each brand. Sort the output by brand name. (Results are shown with the average price rounded to two decimal places.) FIGURE P7. 55 Average price of products of each bran
> Write a query to display the total inventory—that is, the sum of all products on hand for each brand ID. Sort the output by brand ID in descending order. FIGURE P7. 54 Total inventory of each brand of products BRAND ID TOTALINVENT
> Write a query to display the number of products within each base and type combination. FIGURE P7. 53 Number of products of each base and type PROD BASE PROD TYPE NUMPRODUCTS Solvent Exterior 67 Solvent Interior 83 Water Exterior 39 Water Interior 6
> Write a query to display the number of products in each category that have a water base. FIGURE P7. 52 Number of water-based products in each category PROD CATEGORY NUMPRODUCTS Cleaner 2 Filler Primer 16 Sealer 1 Тоp Сoat 81
> Write a query to display a brand name and the number of products of that brand that are in the database. Sort the output by the brand name. FIGURE P7. 51 Number of products of each brand BRAND NAME NUMPRODUCTS BINDER PRIME 27 BUSTERS 25 FORESTERS B
> What is data replication, and what are the three replication strategies?
> Describe the three data fragmentation strategies. Give some examples of each.
> Explain the need for the two-phase commit protocol. Then describe the two phases.
> Define and explain the different types of distribution transparency.
> Write a query to display the employee number, last name, e-mail address, title, and department name of each employee whose job title ends in the word “ASSOCIATE.” Sort the output by department name and employee title.
> Suppose you are asked to evaluate a DBMS in terms of lock granularity and the different locking levels. Create a simple database environment in which these features would be important.
> List and explain the transparency features of a DDBMS.
> What are the components of a DDBMS?
> What is a fully distributed database management system?
> Explain the difference between distributed database and distributed processing.
> What are the disadvantages of the DDBMS?
> What are the advantages of the DDBMS?
> List and discuss some of the factors that influenced the evolution of the DDBMS.
> Describe the evolution from centralized DBMSs to distributed DBMSs.
> Explain why it might be more appropriate to declare an attribute that contains only digits as a character data type instead of a numeric data type.
> What type of integrity is enforced when a primary key is declared?
> Write a query to display the first name, last name, street, city, state, and zip code of any customer who purchased a Foresters Best brand top coat between July 15, 2015, and July 31, 2015. If a customer purchased more than one such product, display the
> Explain why the following command would create an error, and what changes could be made to fix the error. SELECT V_CODE, SUM(P_QOH) FROM PRODUCT;
> In a SELECT query, what is the difference between a WHERE clause and a HAVING clause?
> Describe and contrast the information needs at the strategic, tactical, and operational levels in an organization. Use examples to explain your answer.
> Define security and privacy. How are these two concepts related?
> Using a single sentence, explain the role of databases in organizations. Then explain your answer.
> How and why did database management systems become the organizational data management standard in organizations? Discuss some of the advantages of the database approach over the file-system approach.
> Suppose that you are a DBA. What data dimensions would you describe to top-level managers to obtain their support for endorsing the data administration function?
> In Oracle, what is a database profile?
> In Oracle, what is a data-file? How does it differ from a file systems file?
> Explain the interactions among end user, data, information, and decision-making. Draw a diagram and explain the interactions.
> Write a query to display the employee number, last name, first name, salary “from” date, salary end date, and salary amount for employees 83731, 83745, and 84039. Sort the output by employee number and salary â&#
> In Oracle, what is a database role?