Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Employee Project Date

$
0
0

Hi I am currently on a project and i need some help.

I need to create a trigger to stop an insert into the project table if the date of the project newly inserted is between the start date and end date of an existing project on the project table with respect to the departments. 

Department table

dpno

Department

1

Marketing

2

IT

project table 

pjno

Project

Start date

End date

Dpno

30

SMEs

20-jan-2014

08-mar-2014

1

40

DATABASE

30-jan-2014

04-apr-2014

2

50

TECHNOLOGY

06-apr-2014

09-jun-2014

2


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>