F
F
Fertehr2021-07-25 19:57:53
SQL
Fertehr, 2021-07-25 19:57:53

How to write such a query in SQL?

How to correctly display data from a range (10:15)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vilinyh, 2021-07-25
@Fertehr

select n.NaklID
from Nakl n
join Nakllines nl on n.NaklID = nl.NaklID
where nl.Article in (10, 15)
  and n.Data > '2021-07-20'
group by n.NaklID
having count(distinct nl.Article) = 2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question