B
B
Black back2020-11-30 15:18:03
PostgreSQL
Black back, 2020-11-30 15:18:03

How can such a request be made?

Brothers, how can you add a double condition? Yes, this is not correct, but how can you do it? Pm pzh..

select * from client_info 
where date_from and date_to  between  '2020-11-23'::date  and '2020-11-29'::date

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
galaxy, 2020-11-30
@bekss

...
where date_from between  '2020-11-23'::date  and '2020-11-29'::date 
   and date_to  between  '2020-11-23'::date  and '2020-11-29'::date

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question