Delete Duplicate Records in SQL table transformer in confluence

Dhiraj Kr_ Gupta
Contributor
May 31, 2024

There are different records in SQL Table Transformer, but among them there are many duplicate records.So I want to delete duplicate so that only unique records remains

For eg

Input ( 4 Records)

Name Age City

John 26 London

Snow 27 New York

John 26 London

Snow 27 New York

Output (2 Records)

Name Age City

John 26 London

Snow 27 New York

 

1 answer

1 accepted

2 votes
Answer accepted
Stiltsoft support
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 31, 2024

Hi @Dhiraj Kr_ Gupta ,

The following query should be working fine for you:

SELECT 'Name', 'Age', 'City'
FROM
(SELECT
DISTINCT('Full String'),
*
FROM
(SELECT 'Name' + 'Age' + 'City' AS 'Full String',
*
FROM T*))

Dhiraj Kr_ Gupta
Contributor
June 3, 2024

Thank You Very Much

Like # people like this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events