The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

2 votes
Answer accepted
Stiltsoft support
Atlassian Partner
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
TAGS
AUG Leaders

Atlassian Community Events