skip to Main Content

SQL Query (PostgreSQL)

Please advise how to achieve below ask in PostgreSQL query Input Column_x null null 1257-1;1258-3;1235-4;111-1 1260-3 1263-6;1457-1 null null Basically, need to count of id's Expected output Column_x 0 0 4 (Count of Id's) 1 2 0 0 Since I'm…

VIEW QUESTION

Postgresql – How to optimize complex sorting?

I'm building a language learning platform, here are some tables: create table users ( id bigserial primary key, ... ) create table users_languages ( id bigserial primary key, user_id bigint not null constraint users_languages_user_id_foreign references users, level varchar(255) not null,…

VIEW QUESTION
Back To Top
Search