Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Help with getting number of absences

Author  Topic 

kevinxyx
Starting Member

11 Posts

Posted - 2011-08-08 : 06:30:23
thhanks

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-08-08 : 07:28:09
you need to create a calendar table for that

see

http://visakhm.blogspot.com/2010/02/generating-calendar-table.html

once createed do a left join from created table with your tables to get absences and check for yourtable column is null condition

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

kevinxyx
Starting Member

11 Posts

Posted - 2011-08-08 : 07:59:33
what will be the easiest method to solve this?
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-08-08 : 08:12:41
what do you mean by easiest method? anyways you need to create a calendar table using cte or tally table if you want to report absentees

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -