Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
SELECT * FROM booking CASE WHEN Travel_Date <= getDate() THEN 'Past Travel ELSE 'Future' END AS 'Has travel happened'
これを試して:
SELECT *, CASE WHEN Travel_Date <= CURDATE() THEN 'Past Travel' ELSE 'Future' END AS 'Has travel happened' FROM booking