EmployeelD Last Name First Name Address City Province PostalCode Phone BirthDate 507 - 20th Ave. E.Apt. 2A 908 W. Capital Way 1 Davolio Nancy Vancouver ВС V7M 8T9 6045559857 1948-12-08 00:00:00.000 2 Fuller Andrew Bumaby ВС V5V 8H9 6045559482 1952-02-19 00:00:00.000 3 Levering Janet 722 Moss Bay Blvd. Richmond ВС V2K 8Y7 6045553412 1963-08-30 00:00:00.000 Peacock Margaret 4110 Old Vancouver Rd. Vancouver ВС V4D 8P8 6045558122 1937-09-19 00:00:00.000 Buchanan Steven 14 Garrett Hill New Westminster BC VIG 8J7 6045554848 1955-03-04 00:00:00.000 6 Suyama Michael Coventry House Miner Rd. New Westminster BC V2R 7J4 6045557773 1963-07-02 00:00:00.000

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

please assist with the following question:

I need to write syntax of trigger in SQL server. 

 

Create an INSERT trigger called tr_insert_employee on the Employees table to prevent the adding of a row with a province that is not BC.

EmployeelD
Last Name
First Name
Address
City
Province
PostalCode
Phone
Birth Date
1
Davolio
Nancy
507 - 20th Ave. E.Apt. 2A
Vancouver
BC
V7M 8T9
6045559857
1948-12-08 00:00:00.000
2
Fuller
Andrew
908 W. Capital Way
Bumaby
BC
V5V 8H9
6045559482
1952-02-19 00:00:00.000
3
Leverling
Janet
722 Moss Bay Blvd.
Richmond
ВС
V2K 8Y7
6045553412
1963-08-30 00:00:00.000
Peacock
Margaret
4110 Old Vancouver Rd.
Vancouver
ВС
V4D 8P8
6045558122
1937-09-19 00:00:00.000
Buchanan
Steven
14 Garett Hill
New Westminster
BC
VIG 8J7
6045554848
1955-03-04 00:00:00.000
Suyama
Michael
Coventry House Miner Rd.
New Westminster
ВС
V2R 7J4
6045557773
1963-07-02 00:00:00.000
Transcribed Image Text:EmployeelD Last Name First Name Address City Province PostalCode Phone Birth Date 1 Davolio Nancy 507 - 20th Ave. E.Apt. 2A Vancouver BC V7M 8T9 6045559857 1948-12-08 00:00:00.000 2 Fuller Andrew 908 W. Capital Way Bumaby BC V5V 8H9 6045559482 1952-02-19 00:00:00.000 3 Leverling Janet 722 Moss Bay Blvd. Richmond ВС V2K 8Y7 6045553412 1963-08-30 00:00:00.000 Peacock Margaret 4110 Old Vancouver Rd. Vancouver ВС V4D 8P8 6045558122 1937-09-19 00:00:00.000 Buchanan Steven 14 Garett Hill New Westminster BC VIG 8J7 6045554848 1955-03-04 00:00:00.000 Suyama Michael Coventry House Miner Rd. New Westminster ВС V2R 7J4 6045557773 1963-07-02 00:00:00.000
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps with 2 images

Blurred answer
Knowledge Booster
SQL Query
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education