Click here to Skip to main content
15,894,460 members
Home / Discussions / Database
   

Database

 
GeneralRe: How do you lock records in Access 2007 Pin
Richard.Berry1006-Apr-12 1:56
Richard.Berry1006-Apr-12 1:56 
GeneralRe: How do you lock records in Access 2007 Pin
Eddy Vluggen6-Apr-12 2:07
professionalEddy Vluggen6-Apr-12 2:07 
GeneralRe: How do you lock records in Access 2007 Pin
Richard.Berry1006-Apr-12 2:16
Richard.Berry1006-Apr-12 2:16 
GeneralRe: How do you lock records in Access 2007 Pin
Eddy Vluggen6-Apr-12 2:31
professionalEddy Vluggen6-Apr-12 2:31 
GeneralRe: How do you lock records in Access 2007 Pin
Richard.Berry1006-Apr-12 2:41
Richard.Berry1006-Apr-12 2:41 
GeneralRe: How do you lock records in Access 2007 Pin
Eddy Vluggen6-Apr-12 5:50
professionalEddy Vluggen6-Apr-12 5:50 
QuestionFind Date between two Dates Pin
Robymon30-Mar-12 0:09
Robymon30-Mar-12 0:09 
AnswerRe: Find Date between two Dates Pin
JamesAbbott30-Mar-12 0:40
JamesAbbott30-Mar-12 0:40 
I'm not 100% sure what you're after, I'll assume you want to find any records in the "leave" table for the attendance table.

SQL
SELECT a1.EmpID, COUNT(l1.LeaveID) as LeaveRecords FROM
Attendance a1 LEFT JOIN
Leave l1 ON l1.EmpID = a1.EmpID AND a1.Att_Date BETWEEN l1.LeaveFrom AND l1.LeaveTo
GROUP BY a1.EmpID


Does that suit your needs? The above would return a list of emp attendances and the no of leave records for that attendance date.
GeneralRe: Find Date between two Dates Pin
Robymon30-Mar-12 1:26
Robymon30-Mar-12 1:26 
QuestionSQL Server Command Line Compile Pin
Kevin Marois29-Mar-12 11:28
professionalKevin Marois29-Mar-12 11:28 
AnswerRe: SQL Server Command Line Compile Pin
PIEBALDconsult29-Mar-12 12:12
mvePIEBALDconsult29-Mar-12 12:12 
GeneralRe: SQL Server Command Line Compile Pin
Kevin Marois29-Mar-12 12:17
professionalKevin Marois29-Mar-12 12:17 
GeneralRe: SQL Server Command Line Compile Pin
PIEBALDconsult29-Mar-12 14:53
mvePIEBALDconsult29-Mar-12 14:53 
AnswerRe: SQL Server Command Line Compile Pin
Bernhard Hiller29-Mar-12 22:36
Bernhard Hiller29-Mar-12 22:36 
GeneralRe: SQL Server Command Line Compile Pin
PIEBALDconsult30-Mar-12 3:08
mvePIEBALDconsult30-Mar-12 3:08 
QuestionHow do you lock records in Access 2007 Pin
Richard.Berry10029-Mar-12 9:34
Richard.Berry10029-Mar-12 9:34 
AnswerRe: How do you lock records in Access 2007 Pin
David Mujica29-Mar-12 9:51
David Mujica29-Mar-12 9:51 
GeneralRe: How do you lock records in Access 2007 Pin
Richard.Berry10029-Mar-12 10:18
Richard.Berry10029-Mar-12 10:18 
AnswerRe: How do you lock records in Access 2007 Pin
Mycroft Holmes29-Mar-12 13:09
professionalMycroft Holmes29-Mar-12 13:09 
QuestionXML data import to SQL Pin
milenalukic29-Mar-12 6:21
milenalukic29-Mar-12 6:21 
AnswerRe: XML data import to SQL Pin
jschell29-Mar-12 8:08
jschell29-Mar-12 8:08 
AnswerRe: XML data import to SQL Pin
PIEBALDconsult29-Mar-12 12:24
mvePIEBALDconsult29-Mar-12 12:24 
GeneralRe: XML data import to SQL Pin
milenalukic30-Mar-12 11:46
milenalukic30-Mar-12 11:46 
QuestionNew User. Pin
Abhishek kumar12129-Mar-12 4:24
Abhishek kumar12129-Mar-12 4:24 
AnswerRe: New User. Pin
Simon_Whale29-Mar-12 4:46
Simon_Whale29-Mar-12 4:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.