Oracle: Get the first day of the current month
Oracle Datetime: Exercise-1 with Solution
Write a Oracle SQL statement to get the first date of the current month.
Sample Solution:
Oracle Code:
SELECT TRUNC (SYSDATE, 'MONTH') "First day of current month "FROM DUAL;
Output:
First day of current month 1 2/1/2021 12:00:00 AM
Improve this sample solution and post your code through Disqus.
Previous: Oracle Datetime Exercises Home
Next: Write a Oracle SQL statement to get the last date of the current month.
What is the difficulty level of this exercise?
- New Content published on w3resource:
- HTML-CSS Practical: Exercises, Practice, Solution
- Java Regular Expression: Exercises, Practice, Solution
- Scala Programming Exercises, Practice, Solution
- Python Itertools exercises
- Python Numpy exercises
- Python GeoPy Package exercises
- Python Pandas exercises
- Python nltk exercises
- Python BeautifulSoup exercises
- Form Template
- Composer - PHP Package Manager
- PHPUnit - PHP Testing
- Laravel - PHP Framework
- Angular - JavaScript Framework
- Vue - JavaScript Framework
- Jest - JavaScript Testing Framework