Viewing 5 posts - 1 through 5 (of 5 total)
Hats off Marks!!!!
i posted that pblm on all popular forums but u r the only one who solved my pblm 100%, although that query is very complicated for me to...
February 28, 2008 at 12:45 am
Exactly!!!
two or more than two consecutive 1's or 0's make those records suspicious.
A table containing alternatives 0 and 1 records will considered to be the perfect table, free from all...
February 26, 2008 at 9:19 am
You are absolutely right Lowell but what if I insert data like this:
--===== Insert the test data into the EMPLOYEE_CHECKINOUT table
INSERT INTO EMPLOYEE_CHECKINOUT
(
employeeID,
isCheckInOut,
timeInOut
)
SELECT 1,1,getdate() UNION ALL
SELECT 1,0,getdate() UNION ALL
SELECT 1,1,getdate()...
February 26, 2008 at 6:16 am
--===== Create the employee info table with
CREATE TABLE EMPLOYEE_INFO
(
employeeID INT IDENTITY(1,1) PRIMARY KEY,
employeeName VARCHAR(100)
...
February 26, 2008 at 12:17 am
Thanks alot Lowell!! but what if there are more than two consecutive duplicate records????an employee may checkin three,four,five...records on the same time. Should I use a loop here? Note that...
February 25, 2008 at 10:54 pm
Viewing 5 posts - 1 through 5 (of 5 total)