troubleshooting Question

SQL Table

Avatar of phman1275
phman1275 asked on
6 Comments1 Solution50 ViewsLast Modified:
Hi, I need to create a SQL Table "Employees" table with the following fields:

ID, Name, Hiredate, Seniority

123, Johm, 11/8/1984, ????

For the Seniority field: if the current date - hiredate < 1 then 'Newbie'

My question is, should I put the seniority field as a calculation field? Or should I use the trigger to determine the employee is 'Newbie', 'Junior', or 'Senior'?

I have no clue how to either use the calculation to calculate the Seniority or use the trigger to do that.. Please help...
Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros