Hello,
We are in the process of generating report where we need these final requirements fulfilled:
Thank you in advance for any help possible on forming these queries. (We are using Oracle 11g)
Regards,
Navin Vijaykumar
Hi Navin!
Some thoughts about the Confluence data schema, because I currently don't know the Oracle syntax:
Hope this helps.
Hello Mirko,
Thanks a ton for your reply. It worked for me as you suggested.
I am pasting my SQL for others who might need this.
Total number of Labels used per Space
SELECT T3.SPACENAME, COUNT(T1.CONTENTID) as "Number of Labels" FROM CONTENT_LABEL T1 JOIN CONTENT T2 ON T1.CONTENTID = T2.CONTENTID JOIN SPACES T3 ON T2.SPACEID = T3.SPACEID WHERE T1.LABELABLEID IS NOT NULL GROUP BY T3.SPACENAME
Total number of Labels used per Space
SELECT T3.SPACENAME, COUNT(T1.CONTENTID) as "Number of Likes" FROM LIKES T1 JOIN CONTENT T2 ON T1.CONTENTID = T2.CONTENTID JOIN SPACES T3 ON T2.SPACEID = T3.SPACEID GROUP BY T3.SPACENAME
Wiki spaces are still in use in terms of contribution
SELECT T2.SPACENAME, count(CONTENTID) as "Number of Contributions" FROM CONTENT T1 JOIN SPACES T2 ON T1.SPACEID = T2.SPACEID WHERE T1.LASTMODDATE > '2014-02-01 00:00:00' AND T1.CONTENT_STATUS = 'current' GROUP BY T2.SPACENAME
Regards,
Navin Vijaykumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Navin,
Could you please provide details on T3,T2 and T1? I doubt they are literal but have no idea what to substitute and am not SQL person
Thanks for your help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
With the connection working, the queries work as is except the "Wiki spaces are still in use in terms of contribution" with "Error rendering macro 'sql-query' : java.sql.SQLDataException: ORA-01861: literal does not match format string" error
I have tried a few versions on line four without luck
Any suggestions would be appreciated
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.