Sql: Select rows with duplicate values (select, count, group by, having)

November 8th, 2008 by jeremychone
select count(lastName), lastName from employee group by lastName having count(lastName) > 1;

One Response to “Sql: Select rows with duplicate values (select, count, group by, having)”

  1. Martha Says:

    hey, thanks! this helped very much!

Leave a Reply