Wrox Programmer Forums
|
VB Databases Basics Beginning-level VB coding questions specific to using VB with databases. Issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Databases Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 26th, 2008, 10:39 AM
Authorized User
 
Join Date: Aug 2007
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to zrtv
Default Absent Report

Basically I had employee data with me in one table and their attendance information in another table. The task was to list out employees that were absent ...

How i can perform a sql Query

My Employee Table have
empID,empName,address,joinDate

And my Attendance Table have
empID,atDate(attendance Date),timeIn,timeOut

Can you tell me using these field how i can fetch the absent employee details...

 
Old February 26th, 2008, 02:33 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Code:
SELECT empID, empName, address, joinDate
FROM   EMPLOYEE
WHERE  EMPID NOT IN (SELECT EMPID
                     FROM   ATTENDANCE);
 
Old February 27th, 2008, 04:08 AM
Authorized User
 
Join Date: Aug 2007
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to zrtv
Default

Thanks Mr. Brian
Its work fine






Similar Threads
Thread Thread Starter Forum Replies Last Post
reset links main-report to sub-report from c#.net epanyun Crystal Reports 0 April 18th, 2008 02:41 AM
how can i add report to report viewer in asp.net wael_e BOOK: Professional SQL Server 2005 Reporting Services ISBN: 0-7645-8497-9 0 February 19th, 2008 03:19 PM
Use xPath to test for an absent/missing attribute NitroxDM XSLT 3 June 13th, 2007 09:00 AM
Login fail Err when view report on Report Server dillig BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 1 July 22nd, 2004 05:31 AM
How to load a Web Server report into a Report Doc dshadle Crystal Reports 3 September 30th, 2003 03:47 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.