Forums

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

SQL to find the highest number of attachment revisions in Confluence?

LASER June 9, 2014

Is there any SQL (MySQL preferably) that one can run to find the attachments that have the highest number of revisions in Confluence? (I'm using 4.2 currently)

2 answers

1 accepted

2 votes
Answer accepted
FelipeA
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.
June 9, 2014

Hi Ed,

I believe this is what you're looking for:

SELECT *,
       MAX(ATTVERSION)
FROM ATTACHMENTS
GROUP BY TITLE
ORDER BY ATTVERSION DESC;

Please let me know if this works for you.

Best regards,

Felipe Alencastro

0 votes
LASER June 10, 2014

Worked perfectly, thank-you!

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, loom, loom for training, loom for teaching, video training, async learning, online education, screen recording, loom tutorials, loom use cases, atlassian learning, team training tools, instructional video, virtual training tools

🛗 Elevate Your Training and Enablement with Loom

Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!

Register today
AUG Leaders

Atlassian Community Events