Click here to Skip to main content
15,898,826 members
Home / Discussions / Database
   

Database

 
GeneralRe: locking on select Pin
Aadhar Joshi22-Oct-12 23:48
Aadhar Joshi22-Oct-12 23:48 
GeneralRe: locking on select Pin
Mycroft Holmes23-Oct-12 0:36
professionalMycroft Holmes23-Oct-12 0:36 
AnswerRe: locking on select Pin
kankeyan26-Oct-12 0:58
kankeyan26-Oct-12 0:58 
AnswerRe: locking on select Pin
Hitesh R5-Nov-12 22:42
Hitesh R5-Nov-12 22:42 
QuestionWrong retrieved attendance and leave data Pin
Amr Muhammed19-Oct-12 16:04
Amr Muhammed19-Oct-12 16:04 
AnswerRe: Wrong retrieved attendance and leave data Pin
Mycroft Holmes20-Oct-12 2:10
professionalMycroft Holmes20-Oct-12 2:10 
GeneralRe: Wrong retrieved attendance and leave data Pin
Amr Muhammed21-Oct-12 12:20
Amr Muhammed21-Oct-12 12:20 
GeneralRe: Wrong retrieved attendance and leave data Pin
Mycroft Holmes21-Oct-12 13:01
professionalMycroft Holmes21-Oct-12 13:01 
So the second suggestion is the way to go. Look for the paired 0 and 1 records in sequence within a period of time and flip sign on the second occurrence.

I would break this down to a number of steps:
Get the last 2 records for each person
Check if the sign is the same
Get the last record based on date/time.
Flip it's sign

1 and 2 may be combined into 1 query
Never underestimate the power of human stupidity
RAH

AnswerAssumed off Pin
David Mujica22-Oct-12 5:37
David Mujica22-Oct-12 5:37 
AnswerRe: Wrong retrieved attendance and leave data Pin
Michael Potter22-Oct-12 8:04
Michael Potter22-Oct-12 8:04 
GeneralRe: Wrong retrieved attendance and leave data Pin
Amr Muhammed22-Oct-12 15:19
Amr Muhammed22-Oct-12 15:19 
QuestionReport of the SQL Server Agent, job scheduler Pin
vanikanc19-Oct-12 8:05
vanikanc19-Oct-12 8:05 
AnswerRe: Report of the SQL Server Agent, job scheduler Pin
fjdiewornncalwe19-Oct-12 9:07
professionalfjdiewornncalwe19-Oct-12 9:07 
QuestionCopy a tables to another database (Flashdisk) Pin
Richard.Berry10018-Oct-12 11:50
Richard.Berry10018-Oct-12 11:50 
AnswerRe: Copy a tables to another database (Flashdisk) Pin
R. Giskard Reventlov18-Oct-12 12:22
R. Giskard Reventlov18-Oct-12 12:22 
GeneralRe: Copy a tables to another database (Flashdisk) Pin
Richard.Berry10018-Oct-12 12:40
Richard.Berry10018-Oct-12 12:40 
GeneralRe: Copy a tables to another database (Flashdisk) Pin
R. Giskard Reventlov18-Oct-12 13:14
R. Giskard Reventlov18-Oct-12 13:14 
GeneralRe: Copy a tables to another database (Flashdisk) Pin
Richard.Berry10018-Oct-12 14:10
Richard.Berry10018-Oct-12 14:10 
AnswerCreate small db, then use backup PinPopular
David Mujica19-Oct-12 6:21
David Mujica19-Oct-12 6:21 
GeneralRe: Create small db, then use backup Pin
fjdiewornncalwe19-Oct-12 6:43
professionalfjdiewornncalwe19-Oct-12 6:43 
GeneralRe: Create small db, then use backup Pin
Richard.Berry10025-Oct-12 5:55
Richard.Berry10025-Oct-12 5:55 
Question10g to 11g migration. Pin
vanikanc17-Oct-12 7:44
vanikanc17-Oct-12 7:44 
AnswerRe: 10g to 11g migration. Pin
Eddy Vluggen17-Oct-12 9:31
professionalEddy Vluggen17-Oct-12 9:31 
QuestionHow to access window ? Pin
nghia09t317-Oct-12 5:27
nghia09t317-Oct-12 5:27 
AnswerRe: How to access window ? Pin
Eddy Vluggen17-Oct-12 9:32
professionalEddy Vluggen17-Oct-12 9:32 

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.