Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

need to find duplicate rows like same entries more than one time

$
0
0
i have a table like belowcreate table staff_attendance(attendance_id int,attendace_date datetime,staff_id int,working_year int,hours int)values like1 2014-06-30 00:00:00.0 ST101 2 12 2014-06-30 00:00:00.0 ST101 2 2 3 2014-06-30 00:00:00.0 ST101 2 2 ----same entry like previous one4 2014-07-01 00:00:00.0 ST101 2 15 2014-07-01 00:00:00.0 ST101 2 26 2014-07-02 00:00:00.0 ST101 2 17 2014-07-02 00:00:00.0 ST101 2 28 2014-06-30 00:00:00.0 ST102 2 19 2014-06-30 00:00:00.0 ST102 2 210 2014-07-01 00:00:00.0 ST10 2 2 111 2014-07-01 00:00:00.0 ST102 2 212 2014-07-02 00:00:00.0 ST102 2 113 2014-07-02 00:00:00.0 ST102 2 2I Need to find the duplicate rows like same entries which is having more than 1 rows.... how do i find???

Viewing all articles
Browse latest Browse all 3145

Trending Articles