开发者

Attendance table in sql server 2005

开发者 https://www.devze.com 2022-12-17 09:50 出处:网络
My web application stores attendance of employees daily.. How to design an attendance table in sql 开发者_StackOverflow社区server 2005?

My web application stores attendance of employees daily..

I tried to figure it like this, Attendance table will contain columns EmpId,MonthId,1,2,3,4.....31..

  • Is this ok enough to hold attendance?

Any suggestions....


Might be of your interest. Storing attendance records in the database


Depending on how you need to query the database, that approach could be the most efficient. However, I'd probably use the columns employee_id of integer, date of datetime.

While there would be many more rows this way, I think it makes a lot more sense.

0

精彩评论

暂无评论...
验证码 换一张
取 消