psql query to fetch team calendar last updated even

Krithica_Gowrisankar-ext December 21, 2022

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 Manuel
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.
December 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)



Krithica_Gowrisankar-ext January 5, 2023

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
AUG Leaders

Atlassian Community Events