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,458,036
Community Members
 
Community Events
176
Community Groups

psql query to fetch team calendar last updated even

Hi,

I need a psql query to display the team calendar name , with last updated event ?

Is there any way to get this?

1 answer

0 votes
Albert Rising Star Dec 21, 2022


SELECT c.name AS calendar_name, e.end_date AS last_updated_event
FROM calendar_calendar c
JOIN calendar_event e ON c.id = e.calendar_id
WHERE e.end_date = (SELECT MAX(end_date) FROM calendar_event WHERE calendar_id = c.id)



This query did not work, in our DB we dont have these 2 tables calaendar_event, calendar_calendar.

Calendar info i am getting from "AO_950DC3_TC_SUBCALS" table.

Not able to find the event table to get the last updated event.

Kindly help.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events