Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Figure 5.7 Referential integrity constraints displayed on the COMPANY relational database schema. eandi nver Use any programing language, do the following steps (Note: this lab

image text in transcribed

Figure 5.7 Referential integrity constraints displayed on the COMPANY relational database schema. eandi nver Use any programing language, do the following steps (Note: this lab relies on lab 4): 1- Show how many rows and columns in the table above. Simulate the Horizontal fragmentation: 1- Write a SQL query to create two new tables: the first one has the male employees (M) [EmploM] and the other table has the female employees (F) [EmploE]. 2- How many rows in Emploal and Emploak. Simulate the Vertical fragmentation: 1- Write a SQL query to create 3 new tables: the first table has [Ename.Minitatname] [EmploNames], Second table has [Bdate.Address, Salaray] [Emploinfo], and the third table has [Sex Salary Supertossn.Dno] [Emplothers]. Using the three created tables: 2- Write a SQL query to retrieve Lname salary where the salary >30000, using the three created table. 3- Write a SQL query to retrieve Fname and Salary of all employees with Minit =M. 4- Write a SQL query to rejoin the three tables and name it [Emploall]. 5- Show how many rows and columns in the Emploall table

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

7th edition

978-1111825911, 1111825912, 978-1133684374, 1133684378, 978-111182591

More Books

Students also viewed these Databases questions