Skip to content

Count only if field is filled

I have a question about a SQL query I want to write. Suppose I have a column with the follow values in table: school with column: grades. SUI grades | Score 2 9 2 2 9 5 4 …

SQL Left Join a Table on a Left Joined Table

Iam currently trying to left join a table on a left joined table as follows. I have the tables: accounts (id, vorname, nachname) projektkurse (id, accounts_id, projektwochen_id) projektkurs_einzel (…

How to get next step

I have the table request_step with dummy info like bellow id,request_id,state,name,step_number *2,1,pending,step a,1 1,1,pending,step b,2 3,1,pending,step c,3 4,1,pending,step d,4 5,2,accepted,step a,…