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
Post a Comment