Skip to content

Tag: postgresql

PostgresSQL custom sequence

I have a problem with nextval function, I have a custom sequence in my DB called InternalCodes and when i want to make a insert like this: insert into “Membership” (“Name”, “…

SQL Select from multiple tables and count third

I want to count number of rows in table that is referenced by two fields of other tables. I’ve the following structure Result that I want to achieve The statement that I’ve tried, but getting error at right join What I’m missing? Answer You are quite close. Main problems with your query: you…