Answer the question
In order to leave comments, you need to log in
How to select records from a table by two parameters?
There is a base `test`
id -- from -- to
1 -- 2 -- 1
2 -- 5 -- 1
3 -- 1 -- 2
4 -- 5 -- 9
5 -- 5 -- 13
6 -- 20 -- 21
7 -- 67 -- 1
how to get all records where from or to = 1? Y get the difference from them, i.e. get:
2, 5, 67
Answer the question
In order to leave comments, you need to log in
how to get all records where from or to = 1?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question