Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Urgent Help for SQL Query
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Urgent Help for SQL Query

 Post Reply Post Reply
Author
PrivateEye View Drop Down
Groupie
Groupie
Avatar

Joined: 21 March 2003
Location: United Kingdom
Status: Offline
Points: 168
Post Options Post Options   Thanks (0) Thanks(0)   Quote PrivateEye Quote  Post ReplyReply Direct Link To This Post Topic: Urgent Help for SQL Query
    Posted: 28 February 2005 at 9:05am

I am working on a kind of attendance system using MS Access 2000, Visual Basic 6.0 and Crystal Reports 9. My database tables are as under:
 

tblDepartment

Dept_ID, Dept_name

tblEmployees

Emp_ID, Dept_ID, Emp_name, Designation

tblAttendance 

Attendance_ID, Emp_ID, In_Time, Out_Time, Leave_Type, Date_Stamp
 

I need help for SQL Query to generate following reports:

Report 1 Absent Report

Report for Employees who are absent today. Employees whose In_Time,  Out_Time and Leaves (Leave_Type) is NULL are considered as Absent.

Report 2 Time Report 

I need query for this report so that I can display Emp_ID, Emp_name, Dept_name, Designation, In_Time, Out_Time for all employees for Current Date including those employees for whom Leave_Type = ‘Short Leave’

Please help. Thanx.


Edited by PrivateEye - 28 February 2005 at 2:55pm
The Judgement Day
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.