Click here to Skip to main content
15,891,372 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
Hello

the personels who works in oil rig, 14 days work. and 14 days rest.
some of personels are Fixed and some of personels are not Fixed (Offset, or Alternative. I do not know what the English equivalent is)
i wants to design a database for rollcall (Attendance).
it is necessary to save records of personels who are not Fixed. but the fixed personels should not be saved in daily rollcall db.
because it Leads to exacerbation (Expanded). only the daily record of personels who are not Fixed must be saved in db.
now how can i get a sql string for data of a personels who are Fixed.

i have 2 tables.
first table have specifications of personels.(Fields: name, family, personelCode, FixedOrNot)
and secode have record of rollcall..(Fields: personelCode, DateOfWork, RigName)

Thanks

What I have tried:

i couldn't do anythings for this problem


help
Posted
Updated 9-Jan-19 5:36am
Comments
ZurdoDev 9-Jan-19 9:23am    
What is your question?

1 solution

Your question isn't clear, but getting just Fixed employees is trivial:
SQL
SELECT Name, Family, PersonelCode FROM Personel WHERE FixedOrNot = 1

If that isn't what you are after, then you need to provide us with sample input and output data, and explain exactly why you should get the output you want from the inputs.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900