DBMS Homework Help

Search for question

Questions & Answers

2. Get the capacity and name of the oldest project [15]. a. Hint: start by sorting the projects in the increasing order of their start dates, so that the oldest one is at the top. After making sure that you have the projects in the right order, modify the query to print only the first row (use limit clause).


2. PLSQL & Triggers A database was created with the following sql: CREATE TABLE student ( SID integer primary key, sLastName varchar(20), sFirstName varchar(20), SAddress varchar(20), wage number(7,2)); INSERT INTO student VALUES (1, 'Baker', 'Jane', 'Chicago, IL', 0. INSERT INTO student VALUES (2, 'Julia', 'Mike', 'Chicago IL', 0.0 INSERT INTO student VALUES (3, 'Wu', 'Mark', 'Chicago IL', 10. CREATE TABLE student_log (operation Date Date, userName varchar(20), action varchar(20)); a. Write a trigger that will run the following query AFTER a user attempts to update th student table: INSERT INTO student_log (operation Date, userName, action) VALUES (Sysdate, User, 'Table Update'); b. With your trigger in question (2.a), if a user run the following update sql, the row will be inserted into student_log table: UPDATE student SET wage=15.0 WHERE SID<3; Select the right answer: A. 0 row B. 1 rows C. 2 rows D. 3 row c. With your trigger in question (2.a), if a user run the following delete row will be inserted into student_log table: DELETE FROM student WHERE SID <4; Select the right answer: A. 0 row B. 1 rows C. 2 rows D. d. 3 row d. Given the following PLSQL code: CREATE OR REPLACE PROCEDURE AddStudent (sID IN Number, SFN IN varchar(20), SLN IN varchar(20), SAD IN varchar(20)) AS BEGIN INSERT INTO student VALUES(SID, SFN, SLN, SAD); INSERT INTO student_log VALUES(SYSDATE, User, "Table Insert"); END; BEGIN AddStudent(4, 'Carrey', 'John', 'Chicago, IL', 15.0); END; What happens if a user runs above PLSQL code, select the right answer: A. Add a new row to student table B. Add a new row to student_log table C. Code doesn't work. D. Add a new row to student and student_log


The order rate is computed by dividing the volume of a specific article divided by the total amount of items ordered in a specific date. Calculate the order rate for the Banette for every month during 2022


Write a SQL query to find the articles with the lowest sales in each month?


Write a SQL query to identify the day of the week with more sales?


Write a SQL query to calculate the average sales per day in August 2022?


PART 2: You must have the Microsoft Access database system installed for this part. Using your physical model, create a database in Microsoft Access. Each entity in your diagram represents a table object in your database. Start by creating a new, blank database.


2. 2.1. What is the result of executing the following XQuery? for $m in 1 to 10 let Sn = $m + 1 where $m > 4 order by $m descending return $m*$n 2.2. Using the XML Document below (library with books), define the following queries in XQuery: (a) Give the titles of all Books sorted by Price. (b) Give the sorted list of titles of all Books that have a price with a value that is higher than 70. (c) Give the list of titles of all Books published by Addison-Wesley. (d) How many books were written by Abiteboul? (e) Give for each author, the number of books he has written.


Data and Database Management with SQL Assignment 1 Logistics Company Entity Relationship Diagram ER Diagram Summary Statistics:


Creating Your First ERD There are some tricks and must do's when creating an ERD. Click the following link as we walk through some of the pertinent steps before starting your lab. Creating Your First ERDB


No Question Found forDbms

we will make sure available to you as soon as possible.