query syntax for jdbc options binder

Confluence User - 14 Jul, 2017

Hi,

may I know what 'u' and 'o' stands for?

and what is the selected table code? i want to make query in jdbc options binder.

thank you

forms;jdbc

3


14 Jul, 2017
confluenceUser
1
confluenceUser
14 Jul, 2017
confluenceUser
confluenceUser

ok..thanks..understand the syntax and i created a new query: select distinct username, firstName, groupId from dir_user u left join dir_user_group g on u.id=g.userId left join dir_group p on g.groupId=p.id left join dir_organization o on p.organizationId=o.id where p.name='APR_LEAVE' and o.name='#currentUser.organization.name#' but cannot retrieve any result? what's the problem of the query? thank you

16 Jul, 2017
confluenceUser
confluenceUser

Try to remove conditions first, everything after "where" to see if there is any records returned at all first then if there is, add in the condition one by one to narrow down to what you wanted.

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print