Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,554,539
Community Members
 
Community Events
184
Community Groups

How to merge only 1 specific column in 2 rows by using sql?

Goh
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 15, 2023

11.jpg
I have 2 pivot tables (data retrive from JIRA queries) and one normal table which I have to insert the data manually in the 'Cost' Column.
These 3 tables are going to display as one table in the page.

Does anyone know how to merge the rows like this after published the page?
222.jpg
Appreciate your help :)

1 answer

4 votes
Katerina Rudkovskaya _Stiltsoft_
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 16, 2023

Hi @Goh,

In general, you may try the following SQL query to group your data:

Tue 4-1.png

SELECT FORMATWIKI(SUM('Member' + "\n")) AS 'Member',
'Cost'
FROM T*
GROUP BY 'Cost'

Tue 4-2.png

But I really can’t see how it will get along with your case. As I understand, you join all the three tables into one table, so all “members” should be in separate cells for the comparison.

The variant that you’ve shown on the screenshot is not possible at all: if you create a table with merged cells manually and then wrap it in the Table Transformer macro, the cells will be split at once. The macro treats tables as mini databases, so there can’t be any merged cells.

Suggest an answer

Log in or Sign up to answer