Not sure if this is a bug or just me

NodeJs, Docker project, dealing with a server action, I would like to add a where() formatter, in the UI it is doing it like this

{{tstC.where('image_type', '==', ism_type)}}

I find it strange because image_type and ism_type are both dynamic values and both being picked from database multi queries, this is reading to me like one is a string and the other a dynamic value.

I tried this

{{tstC.where(`image_type`, '==', `ism_type`)}}

Which I always thought was correct, using backtick, but I get a lexar error of unexpected token

\"`\"

Hi Paul,
What are these values, and where exactly do they come from? Where are you trying to use this expression?

Hey Teo, thanks for answering so late :slight_smile:

Here is a screenshot of what the server action looks like
2021-09-04_20-49-49
2021-09-04_20-59-59
2021-09-04_21-00-26

What I want to do is take 2 different multi database queries from 2 different database servers and join the common column together.
Which works fine at that point.

My next 2 setValue steps is where I am trying to only display the records where the results only come from one of the databases and not both

I have a project where i connect to 2 different databases, both the databases contain a list of car makes/models as an example.

Database 1 has 30 records and Database 2 has more than 100
Some cars in Database 1 are the same as Database 2
Some cars in Database 1 are unique to Database 1
Some cars in Database 2 are unique to Database 2

I want to get a single list in the end only showing all the unique records from both databases, and remove all the results that appear in both databases.

@Dave now I know you online, thoughts…

Could create a view across both tables and use distinct possibly (not sure if that would work without a where though), ie a where clause using a common denominator to filter down the results? Let me think a little more about it…

:slight_smile:

1 Like

Does this help @psweb

https://www.navicat.com/en/company/aboutus/blog/1059-how-to-query-across-multiple-databases

Thanks Dave, going to give that a little try, but that does look pretty promising, will let you know.

By the way for anyone unclear on what I am trying to achieve, this may help

1 Like