1 Manish 2012-09-24 16:46:12.037 1 3 nilam 2012-09-24 16:59:23.173 1 2 Dev 2012-09-24 17:04:22.907 1 1 Manish 2012-09-24 17:07:44.967 1 3 nilam 2012-09-24 17:09:38.950 1
IF (Select Count(ID) From Table_4 Where Name = 'Viprat') = 0 BEGIN Insert Into Table_4 (Name, Attendance) Values ('Viprat',1) END ELSE BEGIN Update Table_4 SET Attendance = Attendance + 1 Where Name = 'Viprat' END
SELECT NAME,COUNT(NAME) FROM TABLE_NAME GROUP BY NAME;
SELECT USER_ID,NAME,COUNT(PK_ID_OF_SEARCHING_TABLE) FROM TABLE_NAME GROUP BY USER_ID;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)