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

Number of employees in a department of a branch

$
0
0

Hi I am having a few problems trying to complete this project and need some help.

I need to create an after trigger that displays/prints the number of employees in a department and branch after a row is inserted and then returns the counted number of employees to the department and branch table. Thanks


Brno
city
Noofemployee
1001
London
 1
Branch table
 
Dept table
dpno
dname
Nonemployee
2001
IT
1
2002
MARKETING
1
 
Employee table
eid
ename
job
dpno
brno
82986350
kore
Data Analyst
2001
1001
82986351
yahi
sales
2002
1001


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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