Question: Sql quaries Consider a database with the following tables: Employee (FName, LName, SSN, BDate, Salaray, HireDate) Department (DName, DNumber, nbrEmployees) DeptLocation(DNumber, DLocation) Q-1) Write SQL

 Sql quaries Consider a database with the following tables: Employee (FName,

Sql quaries

Consider a database with the following tables: Employee (FName, LName, SSN, BDate, Salaray, HireDate) Department (DName, DNumber, nbrEmployees) DeptLocation(DNumber, DLocation) Q-1) Write SQL statements that do the following: a) Write the SQL statements required to create the above tables. You have to choose the best data type for each column, and all necessary keys (primary and foreign). [15 points] b) Create a trigger that fires when a new row of data is deleted from the Department Table. It then insert the deleted elements in a table called DepTemp (Suppose that this table is already created). [6 points] c) Create a view that contains DName and Dlocation of department with more than 50 employees [6 points] a) Create a Job that aims the automation of Creation of DemoScript backup. The backup will be in backup set C:\yourname.bak". You need to schedule as follow: [9 points] i. Weekly Full-Back up on each Sunday ii. Then each 2 days a Daily Differential Backup iii. Transaction log should be backed up every 2 hours

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!