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
Concept explainers
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 3 steps
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
- 2.1 Create a Scalar-valued function to get the total of the UnitCost, in the Products table. 2.2 Use the Scalar-valued function created in question 2.2 to print "The Total cost of the products we have is R", return the Total cost from the function in rands. Note: Use Database and tables created In Tsql CREATE TABLE Categories ( CategoryID int NOT NULL, CategoryName varchar(255), PRIMARY KEY (CategoryID)); CREATE TABLE Products ( ProductID int NOT NULL, ProductName varchar(255), MobileNumber varchar(255), ProductImage image, UnitCost int , Description varchar(255), CategoryId int,PRIMARY KEY (ProductID),FOREIGN KEY (CategoryId) REFERENCES Categories(CategoryId) ); CREATE TABLE Review( ReviewID int NOT NULL, ProductID int NOT NULL, CustomerName varchar(255), CustomerEmail varchar(255), Rating int, Comments varchar(255), PRIMARY KEY (ReviewID),FOREIGN KEY (ProductID) REFERENCES Products(ProductID) ); CREATE TABLE ShoppingCart( RecordID int NOT NULL,…arrow_forwardTrack Addresses Employee Key Values 1234 ЕMP6 ЕMP8 EMP10 EMP12 5678 ЕMP14 EMP16 EMP19 EMP20 9101 EMP26 EMP27 EMP28 EMP29 1121 ЕMP31 ЕMP38 EMP40 EMP42 Index file 1 a. How many comparisions are required to find EMP38 in index file 1 given above b. Update index file by inserting a new employee with employee no. 41. Recreate the index file after updating the index file c. Visualized by recreating the index file how can we reduce camparision to find EMP38arrow_forwardModels Airlines Fleet AID MID Acount manufacturer model capacity Boeing Воeing Вoeing MID AID name 1 777 340 1 American Airlines 1 3 15 2 787 260 United Airlines 1 2 10 3 737 140 Delta Air Lines 2 2 14 4 Airbus 320 230 4 Southwest Airlines 1 Airbus 380 560 5 Alaska Airlines 3. 6. 24 9. Boeing 747 420 3 4 9 5 2 7 3 16 4. Using the above instances of the relational tables Models, Airlines and Fleets, determine whether the following functional dependencies hold. (Write yes/no) 10 ) manufacturer - model Answer: ii) MID – capacity Answer: ii) model → capacity Answer: iv) MID - Acount Answer: v) AID, MID → Accunt Answer:arrow_forward
- The subject is called Databasearrow_forwardA table called "game1" contains three columns and twenty rows, but "game2" has the same column as game1 (ie 3) and fifteen rows. Both tables have 5 rows in common. What is the degree and cardinality of the resulting table if we take union?arrow_forwardQUESTION 17 Answer All the questions: Consider the below Student table and write the appropriate relational algebra query: SID SNAME SLNAME 1001 Mariam AI Alawi 1002 Sara 1003 Rahma Al Ruzaiqi 1004 Busma Al Mammari 23 1005 Salim AGE CID City CNAME ITDR2106 Introduction to Database Sur ITDR2104 Programming ITDR1101 Introduction to IT 20 Al Salti 22 Sohar 22 Muscat ITDR2104 Programming ITSW3101 App. Sw. Development Muscat Al Busaidi 24 Muscat Find the name of the students and the city name whose age is above 20 years and below 24 years?arrow_forward
- Sabir and Sons Company were doing very well before the COVID pandemic took over all the World. The employees usually had to make business tours all across the globe. Following is the Table schema of their tours made before COVID-19: Tour ( Tour_ID, Begin_Date, End_Date, Stayed_Countries, Used_Cards) You are required to create sample (mock-up/dummy) data records of the above relation. This way every student should have separate data. Then create the Functional Dependencies and normalize the relations step by step up to BCNF. (Hint: Neat and Clean Work with proper demonstration gets you good marks)arrow_forwardAssume a relation 'R' having 200 records. These records are stored in blocks having block factor as 20. Consider another relation 'S' having 120 records and all these records are stored in 30 blocks. These two tables have to be joined using nested loop join algorithm. At any instance main memory can hold exactly one block of R and one block of S. What are the total number of block access required to join R and S ?arrow_forwardPROBLEM 1 a. Depict full key functional dependencies, partial functional dependencies (if any), and transitive functional dependencies (if any) in the Student Internship Table b. Show the result of normalizing the Student Internship Table to 2NF.arrow_forward
- Solve the given query using the two tables (EmployeeDetails, EmployeeSalary). Dateof Empld FullName Managerld City Joining 121 John Snow 321 01/31/2014 Toronto 321 Walter White 986 01/30/2015 California 421 Kuldeep Rana 876 27/11/2016 New Delhi Empld Project Salary Variable 121 P1 8000 500 321 P2 10000 1000 421 P1 12000 Write an SQL query to fetch common records between two tables. i) Write an SQL query to fetch records that are present in one table but not in another table. iii) Write an SQL query to fetch the Emplds that are present in both the tables iv) Write an SQL query to fetch the employee full names and replace the space with -'. v) Write an SQL query to find the employee id whose salary lies in the range of 9000 and 15000.arrow_forward15. Circle all areas that break the referential integrity constraint. (8 Points) Not a Relational Table EmpID EmpInfo EmpInfo EmpPhone 0001 Joe 0002 Sue 0001 Joe 0004 Pat 0005 Mike M FMF M x234 x345 x234 x567, x789 x678 EmpBdate 1/11/1985 2/7/1983 1/11/1985 3/8/1971 a long time agoarrow_forwardcan yaou make one example of one table about anything that the table is the example of transitive dependecyarrow_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