Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

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

Professional Microsoft SQL Server 2014 Integration Services

Authors: Brian Knight, Devin Knight

1st Edition

1118850904, 9781118850909

More Books

Students also viewed these Databases questions