sorting - How to insert a SQL date-filtered query into another SQL query -
my goal have output dates between aug 17 aug 31. able create query issue i'm having how insert existing query without breaking it.
this working query sorts dates need:
select * outing out_date between '27-aug-16' , '31-aug-16'; and code want insert into:
select tour. tour_name, outing. out_date , 'leaving: '||out_startloc||' , arriving: '||out_endloc "locations" outing join tour on outing.tour_id = tour.tour_id order out_date, tour_name how able insert sort date query correctly?
thanks anthony kong's comment, following worked:
from outing join tour on outing.tour_id = tour.tour_id out_date between '27-aug-16' , '31-aug-16' order out_date, tour_name
Comments
Post a Comment