Skip to content

[SQL]Select same date from one row

I created 3 tables: People: ID INTEGER PRIMARY KEY, SURNAME VARCHAR(15), Car: ID INTEGER PRIMARY KEY, NAME VARCHAR(15), Transaction: ID INTEGER PRIMARY KEY, ID_CAR INTEGER, ID_BYUER INTEGER, …

SQL nested WERE

I’m a beginner in SQL and I don’t understand the nested WHERE request: When I first request: SELECT movies.title, people.name FROM stars INNER JOIN movies ON movies.id = stars.movie_id INNER JOIN …

MEDIAN() window function on stable Maria DB

I need to perform a MEDIAN calculation as part of a query. My developer told me this is possible with Maria DB 10.3.3 but my server admin told me they can upgrade only to 10.3.2 since that is the …

group results in sql

In my settings table there is a field whose content is: – Law 1 – Law 2 – Chemistry 1 – Chemistry 2 – History 1 – History 2 – Modern language 1 – Modern language 2 – Modern …