• Community
  • Products
  • Confluence
  • Questions
  • Query for "Active users who have not created any content (page, blog, or comment) since a specific date" responds with "Table 'confluence.content' doesn't exist"

Query for "Active users who have not created any content (page, blog, or comment) since a specific date" responds with "Table 'confluence.content' doesn't exist"

This question is in reference to Atlassian Documentation: How to identify inactive users in Confluence

Running Confluence 5.9.7 with MySQL 5.5. I am trying to track down users that have not provided content in a certain amount of time so I'm running this query:

SELECT u.user_name
FROM cwd_user u join user_mapping m
on m.username = u.user_name
WHERE m.user_key not in (
SELECT creator FROM content
WHERE contenttype in ('PAGE', 'BLOGPOST', 'COMMENT')
and creationdate > '2007-01-01')
and u.active = 'T';

When I run that query, I receive the following error: "Table 'confluence.content' doesn't exist"

I've looked and I don't see a 'content' table but there is a 'CONTENT' table. If I use 'CONTENT' the query just spins and spins. Is there something I'm missing?

1 answer

This appears to be a bug of some sort in MySQL, at least on MySQL 5.5 using the 'IN()' statement. I was able to work around it by using EXISTS instead:

SELECT u.user_name

FROM cwd_user u join user_mapping m

on m.username = u.user_name

WHERE not exists (

SELECT creator FROM CONTENT c

WHERE contenttype in ('PAGE', 'BLOGPOST', 'COMMENT')

and creationdate > '2015-02-16'

and m.user_key=c.creator)

and u.active = 'T';

That query completes successfully providing the necessary data.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

374 views 20 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you