SELECT
CASE
IF MON='Y'
THEN YOUR_STRING='M'
ELSE YOUR_STRING=''
IF TUE='Y'
THEN YOUR_STRING=YOUR_STRING || 'T'
IF WED='Y'
THEN YOUR_STRING=YOUR_STRING || 'W'
etc.
==================================
advanced cognitive capabilities and other marketing buzzwords explained with sarcastic simplicity
SELECT DECODE(mon,'N',NULL,'M')||
DECODE(tue,'N',NULL,'T')||
DECODE(wed,'N',NULL,'W')||
DECODE(thu,'N',NULL,'H')||
DECODE(fri,'N',NULL,'F') AS schedule
FROM Dayofweek;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.