Workshop 2 SQL Functions Review
Workshop 2 SQL Functions Review
Workshop 2 – Functions
Oracle
APEX
Copyright © 2020, Oracle and/or its affiliates. All rights reserved. 11
Try It!
• Once logged into APEX, select SQL Workshop
• In SQL Workshop, select the SQL Commands option
• Enter the desired SQL code and click the Run button,
the results will be displayed in the lower pane
• Example:
SELECT TO_CHAR(SYSDATE,'Month ddth, yyyy') AS TODAY
FROM dual;
• Example:
SELECT country_id, TO_CHAR(population,'99,999,999,999')
FROM wf_countries;
• Example:
SELECT TO_DATE('January 1, 2006','Month DD, RRRR')
AS "New Year"
FROM dual;
• Example:
SELECT TO_NUMBER('95.5','999.9') AS converted
FROM dual;
SELECT currency_name,
NVL(comments,'No comment') AS comments
FROM wf_currencies
WHERE currency_code = 'AUD';