Skip to main content
Solved

PQL - I am trying to find duplicate phone numbers within my table. Does anyone know how I can write this PQL?

  • Jul 12, 2024 4:53 PM UTC
  • 4 replies
  • 312 views

PQL - I am trying to find duplicate phone numbers within my table. Does anyone know how I can write this PQL?

Best answer by julia.bauer

How would I do it for data integration?

Hey @richanda.wrigh ,

you would navigate to data integration and then add a transformation and name it e.g. 'Test' - here in this area you have the possibilties to code this via SQL:

 

With PhoneNumberDuplicates AS (

SELECT *,

COUNT(*) OVER (PARTITION BY PhoneNumber) AS PhoneNumberCount

FROM Table (table where the phone number is stored))

 

SELECT * FROM PhoneNumberDuplicates

WHERE PhoneNumberCount >1;

 

View original

4 replies

abhishek.chatu14
Level 12
Forum|alt.badge.img+8

Any reason why you want to do it in the frontend, wouldn't it be easire to remove or mark the same in the backend i.e. data integration


  • Jul 12, 2024 11:44 PM UTC

Any reason why you want to do it in the frontend, wouldn't it be easire to remove or mark the same in the backend i.e. data integration

How would I do it for data integration?


julia.bauer
Level 9
Forum|alt.badge.img+6
  • Level 9
  • Answer
  • Jul 15, 2024 10:17 AM UTC

How would I do it for data integration?

Hey @richanda.wrigh ,

you would navigate to data integration and then add a transformation and name it e.g. 'Test' - here in this area you have the possibilties to code this via SQL:

 

With PhoneNumberDuplicates AS (

SELECT *,

COUNT(*) OVER (PARTITION BY PhoneNumber) AS PhoneNumberCount

FROM Table (table where the phone number is stored))

 

SELECT * FROM PhoneNumberDuplicates

WHERE PhoneNumberCount >1;

 


  • Sep 5, 2024 5:33 PM UTC

thank you