Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ASP / Database Access / December 2007



Tip: Looking for answers? Try searching our database.

Help Employees Exam SQL ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Paulo - 11 Dec 2007 14:33 GMT
Hi, can you help me with some SQL logic, a chemistry company must realize
some employees exams, there are 4 exams types:

1) when employee is hired
2) when employee is fired
3) when employee had the first contact with some component
4) and periodic exams, every 3 months, 6 months, etc

and I need to build a sql that fills the employe_exam_schedule based on exam
type:

the user system chooses the year, example 2007, clicks a button, the
schedule table must be filled with all 2007 exams records that the employees
should realize.

initially all status will be 0, and another step a user system will check
the status for each employee on a asp web-system if employee made or not the
exam... if there is status 1, the record must be skiped because the exam was
done...

employe_exam_schedule table:
ID_SEQ ->      autonumber
ID_Employe -> number
CodExam    -> number
DateShouldRealizeExam -> DateTime
Status -> bit ( 0 -> exam not realized / 1 -> exam realized)

EXAM table:

CodExam    -> number
ExamName -> char
IS_PERIODIC -> bit (yes/no)
MonthPeriodicity -> SmallInt -> example every 3 months, etc...
IS_First_CONTACT -> bit(yes/no)
IS_Hired -> bit(yes/no)
IS_Fired -> bit(yes/no)

Employee TABLE:
ID_Employe number
DateHire DateTime
DateFire DateTime
----------------------------------------

What you suggest?

Thanks!
Anthony Jones - 11 Dec 2007 15:22 GMT
> Hi, can you help me with some SQL logic, a chemistry company must realize
> some employees exams, there are 4 exams types:
[quoted text clipped - 38 lines]
> DateFire DateTime
> ----------------------------------------

We don't do your homework for you.  What have you tried?

Signature

Anthony Jones - MVP ASP/ASP.NET

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.