jassybun
Member
Hey guys! I am trying to find a module that would automatically delete rows that are the people with same dept and same timecard but keep the row with the most amount of time, like this:
Dept.....Employee........Hours
1..........John Moore.....8.10
1..........John Moore.....2.13
1...........Alice Cho........4.00
1...........Alice Cho........2.32
4...........Alice Cho........3.40
4...........Mark Miller......3.00
Would result in:
Dept.....Employee........Hours
1..........John Moore.....8.10
1...........Alice Cho........4.00
4...........Alice Cho........3.40
4...........Mark Miller......3.00
similar post from someone else in SQL:
http://www.sqlservercentral.com/Forums/Topic744538-338-1.aspx#bm744622
Dept.....Employee........Hours
1..........John Moore.....8.10
1..........John Moore.....2.13
1...........Alice Cho........4.00
1...........Alice Cho........2.32
4...........Alice Cho........3.40
4...........Mark Miller......3.00
Would result in:
Dept.....Employee........Hours
1..........John Moore.....8.10
1...........Alice Cho........4.00
4...........Alice Cho........3.40
4...........Mark Miller......3.00
similar post from someone else in SQL:
http://www.sqlservercentral.com/Forums/Topic744538-338-1.aspx#bm744622