Professional Documents
Culture Documents
2) Write a query to get only "India" from the string "I am from India"
4) Write a query to get the date of the last day of the month
5) Write a query to find out the month between "01/01/2020" and "01/05/2021"
------SELECT
MONTHS_BETWEEN(TO_DATE('01/01/2020','DD/MM/YYYY'),TO_DATE('01/05/2021','DD/MM/YYYY'
)) FROM dual;
6) Write a query to find the year from the date "01/01/2020" by using extract
function