Quantcast
Channel: Pegar campos iguais em uma seleção.
Viewing all articles
Browse latest Browse all 7

Pegar campos iguais em uma seleção.

$
0
0

Boa tarde,

Experimente dessa forma:

with CTE_Agr as
(
    select
        *,
        count(*) over(partition by TEL_TEL) as Qtd
    from CAD_DEVT
)

select * from CTE_Agr
where Qtd > 1

Espero que ajude.


Assinatura: http://www.imoveisemexposicao.com.br


Viewing all articles
Browse latest Browse all 7


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>