select * from materialRestriction where dealercode='1679' and materialcode='1000008'
위의 SELECT문을 실행시키면 startDay란 컬럼과 endDay란 컬럼이 나오는데요
각각 20230802와 20230805란 값이 나옵니다..
근데 이값을
select * from materialRestriction where dealercode='1679' and materialcode='1000008' and ((startDay between '20230803' and '20230804') or endDay between '20230803' and '20230804'))
이 위의 같이 3일이나 4일로 조건을 잡아서 select문을 날리면 20230802와 20230805란 값이 조회가 될 수 있는 조건값이 있을까요??