sql - Row value from another table -


i have table having 2 duplicate rows (total of 3 rows), used code below duplicate value in column

select custno, count(*) totalcount rental group custno having count(*) > 1 order count(*) desc 

so once repeated value, need custno derived duplicate customer table. how go taking value , using in select statment in same query. have select statement prepared this.

select *  customer  custno = 't0002'; 

thanks.

select * customer  custno in (   select custno   rental   group custno   having count(*) > 1 ) 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -