Bonjour,
je voulais créer une requête sous oracle, qui permet d'afficher les tous enregistrements en double d'un champ.
exemple pour être clair:
champ1
001
002
001
001
003
003
résultat
Champ1
001
001
001
003
003
voila merci de votre réponse
Version imprimable
Bonjour,
je voulais créer une requête sous oracle, qui permet d'afficher les tous enregistrements en double d'un champ.
exemple pour être clair:
champ1
001
002
001
001
003
003
résultat
Champ1
001
001
001
003
003
voila merci de votre réponse
.Citation:
select tat.champ1
from
tatable tat,
(
select champ1, count(1) from tatable group by champ1 having count(1) > 1)
) res
where
tat.champ1 = res.champ1
order by tat.champ1
Autre solution :
je ne met pas d'order by, ce n'est pas dans le cahier des charges !Code:
1
2
3
4
5
6 Select champ1 from table T1 where exists (select champ1 from table where champ1=t1.champ1 group by champ1 having count(champ1) > 1);