PocketQuery Right/Inner Join Query not working?

I am struggling with a query that works fine in NaviCat but I cannot get it to work in PocketQuery. In Navicat the query is returning the selected columns and rows where the multiple tables coincide. Does PocketQuery support this? 

 

Same users/credentials. Other queries not utilizing any join work as expected. 

 

Here is a mock up of the query:

 

SELECT
table1.col1,
table1.col2,
table1.col3
from
table2 Right Join
table1 On table2.col1 =
table1.col1 Inner Join
table3 On table1.col4=
table4.col2
where
table2.col2 Like :pagetitle'%' AND table2.col2 Not Like "%(M)" AND table1.col5 = "1"

 

 

1 answer

1 accepted

Hey Nick,

 

is it possible to active the debug mode in the macro? If there is a stack trace you can send it to Atlassian (at) scandio (dot) de. Just an idea: for the first LIKE part try a concat(:pagename, "%") function.

Christian

I did a short test and with concat it will work without there is am empty result.

Aha! This is great feedback. I wasn't consistently using CONCAT but now that I look at my other queries it looks like I should be using it. Seems the other queries were just working...

image2016-12-2 18:8:49.png

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Apr 30, 2018 in Marketplace Apps

Why moving to Confluence Data Center is only a job half-done

Confluence Data Center is a deployment option that was designed for performance at scale. In other words, Confluence will handle increased traffic much reliably in a clustered environment and yo...

225 views 0 6
Read article

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