Studium przypadku

10
SELECT DISTINCT(documents.doc_number) AS dnum, documents.* FROM documents WHERE documents.doc_status <= '10' AND documents.doc_language_iso = 'pl' AND documents.doc_status <= '10' AND (documents.doc_dead >= '2021-12-08' OR documents.doc_dead = '0000-00-00' OR documents.doc_dead IS NULL) AND documents.doc_born <= '2021-12-08' AND documents.doc_type = 'cs' ORDER BY documents.doc_language_iso, documents.doc_order, documents.doc_title
 
10