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?

  • July 12, 2024
  • 4 replies
  • 43 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;

 

4 replies

abhishek.chatu14
Level 11
Forum|alt.badge.img+4

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


  • Author
  • Level 5
  • 10 replies
  • July 12, 2024

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+1
  • Level 9
  • 58 replies
  • Answer
  • July 15, 2024

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;

 


  • Author
  • Level 5
  • 10 replies
  • September 5, 2024

thank you