Skip to content

How can I add an object to my table with multiple values?

We have a postgres setup, and I’ll be honest straight away I know very little about database manipulations, my goal is to add an object to the pre-existing table called websites and then have the following object with properties as below: I know it’s quite easy to just add supportDesktop as a bool…

OR clause takes longer time

I have a query as an example below, but its running forever .. If I do union then I have copy entire large query .. Any help on this fix Answer The inner part can be written using the QUALIFY clause like so: which can be pushed into a CTE like: which means you can union that whole thing or

Write Condition as a value for the where clause

I have a variable called _gender thats going to be either 0, 1 or 2 I want to achieve the case where _gender is everyone, then I want the gender to be 0 or 1 But if it was 0 or 1, then I should match with users that are only as the variable Answer You have to Denote Variable