<!---
This file is Copyright © 1998-2009 by Home Care Business Services. This work may not be reproduced, in whole or in part, 
using any medium, including, but not limited to, electronic transmission, CD-ROM or published in print, without the express 
permission of Home Care Business Services.

$Revision: 1.1 $
$Id: query_empcalendar.cfm,v 1.1 2009/09/02 01:34:08 arlen Exp $
$Date: 2009/09/02 01:34:08 $
--->

<cfquery  datasource="#Application.DataSrc#" name="GetAvailability">
	SELECT ws.*,e.first_name,e.last_name
	FROM  #Request.prefix_db_lookup#.Employee e
	LEFT OUTER JOIN #Request.prefix_db_agency#.Employee_Workschedule ws on e.Employee_ID = ws.Employee_ID
	WHERE e.Employee_ID = #session.cs.employeeid#
	AND e.Agency_ID = #Session.AgencyID# 
	AND e.status = 'active'
	AND ws.status = 1
	order by schedulestart asc
</cfquery>

