Skip to content

script in Custom Queries? #785

Answered by arxdsilva
alpglide asked this question in API Server
Discussion options

You must be logged in to vote

It's not always that easy to do everything in one sql.

@alpglide it is also possible to do multiple queries within the same sql file, just like this:

WITH pre_query AS ( SELECT * FROM <table> WHERE <conditions>)

SELECT * FROM <table2>
WHERE <table2>.ID=pre_query.ID
AND <conditions2>

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by avelino
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 participants
Converted from issue

This discussion was converted from issue #784 on March 21, 2023 08:08.