我有内部查询,它根据条件之间的日期返回指定的日期。我成功获得了结果,但在外部查询中我想检查日期是否在我提供的字符串中-'星期五,星期六'
SELECT * from
(
SELECT id, to_char(markupdate, 'Day') as dayofweek
FROM test t
WHERE t.markupdate BETWEEN 'Thu Jul 11 00:00:00 IST 2019' AND 'Sat Jul 20 00:00:00 IST 2019'
) data
WHERE data.dayofweek in ('Friday,Sunday');