BOX8 | Regular Expression in SQL
Question
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
It will take less than 1 minute to register for lifetime. Bonus Tip - We don't send OTP to your email id Make Sure to use your own email id for free books and giveaways
Answers ( 3 )
select count(*) from flights where location = “Delhi” and
arrival_date between DATE_SUB(CURDATE(), INTERVAL 7 DAY) and
CURDATE()
select count(*)
from table
where (resident_place= ‘Delhi’ and arrival_place = ‘Patna’ ) and (datetime_col >= DATE(NOW()) + INTERVAL -7 DAY and
datetime_col < DATE(NOW()) + INTERVAL 0 DAY)
select (*) from table where source_loc = ‘Delhi’ and dest_loc=’Patna’ and trunc (arrival_date) between sysdate and (sysdate-7)