How to find the first and last day of a month with Oracle SQL Date Functions – Medium cross post

I recently wrote a blog post on porting over Oracle SQL to comparable MySQL queries with the purpose of counting specific weekdays occurrences in a given month. That post was inspired by this YouTube video (which I highly recommend). I published a post over on Medium about some of the Oracle Date functions available for these types of queries as I learn more Oracle SQL and wanted to share it with readers here who may be interested…

Digital calendar on a tablet on a table.


If you enjoy the content written here, by all means, share this blog and your favorite post(s) with others who may benefit from or like it as well. Since coffee is my favorite drink, you can even buy me one if you would like!

In order to count pretty much anything in a month, you need to know how many days there are in the month. With the first and last day of the month values, you can subtract one from the other and find out the number of days.

Oracle SQL has many powerful DATE functions available for a wide range of calculations. In the post, How to find the first and last day of a month using Oracle SQL Date Functions , I use varying combinations of 4 different DATE functions to determine the first and last day of a given month. As an added bonus, I also explore both the previous and following months first and last day values relative to the current month.

Consider make a small donation on my behalf as I continue to provide valuable content here on my blog. Thank you!

I’m learning more and more about the Oracle Database and plan on sharing my journey here as I progress. Subscribe to my blog in order to be notified of upcoming SQL related blog posts.

Like what you have read? See anything incorrect? Please comment below and thank you for reading!!!

A Call To Action!

Thank you for taking the time to read this post. I truly hope you discovered something interesting and enlightening. Please share your findings here, with someone else you know who would get the same value out of it as well.

Visit the Portfolio-Projects page to see blog post/technical writing I have completed for clients.

To receive email notifications (Never Spam) from this blog (“Digital Owl’s Prose”) for the latest blog posts as they are published, please subscribe (of your own volition) by clicking the ‘Click To Subscribe!’ button in the sidebar on the homepage! (Feel free at any time to review the Digital Owl’s Prose Privacy Policy Page for any questions you may have about: email updates, opt-in, opt-out, contact forms, etc…)

Be sure and visit the “Best Of” page for a collection of my best blog posts.

Josh Otwell has a passion to study and grow as a SQL Developer and blogger. Other favorite activities find him with his nose buried in a good book, article, or the Linux command line. Among those, he shares a love of tabletop RPG games, reading fantasy novels, and spending time with his wife and two daughters.

Disclaimer: The examples presented in this post are hypothetical ideas of how to achieve similar types of results. They are not the utmost best solution(s). The majority, if not all, of the examples provided, is performed on a personal development/learning workstation-environment and should not be considered production quality or ready. Your particular goals and needs may vary. Use those practices that best benefit your needs and goals. Opinions are my own.

Comparing SQLite and Realm: What Is the Best Database for Android

Any Android application requires dedicated storage space. And various databases help developers in this. However, a lot depends on the choice of the database, and the wrong choice can bury the perfect application. When creating an app for Android, there are two most popular databases SQLite and Realm. Many developers cannot choose between them for a long time since each has its own pros and cons. Today we will compare these two databases and find out what is better for developing Android applications. Without further ado, let’s get started.


How to Use SQL in SEO

If you talk to any search engine optimization specialist, they’ll surely tell you how many tools are used throughout their workday – from keyword research and backlinking to crawling and metric analysis tools. SEO is a world of its own with countless facets of information that need tweaking and examination constantly. It can quickly become overwhelming if you don’t have the right tools at your disposal. Or if you simply don’t understand how to make your job easier with SQL. 


Medium Cross Post – Write Code to Write About Code

Any of you who read my blog posts here regularly know I am passionate about SQL, PHP, and Back-end Development. I consider writing an integral part of my brand and growth. Continue reading and learn more about what’s on my mind lately with writing and code…


WordPress Contact Form 7: Blog post compilation

Anyone with a website surely needs a reliable contact form to allow visitors and guests to reach out to them. If you are using WordPress, there are more options for contact form plugins than I could fill up in words here in this post. However, one of the more popular and easy-to-configure plugins is Contact Form 7. I recently wrote a couple of blog posts over on Medium detailing how to create a simple contact form using the Contact Form 7 plugin and want to share those posts here on my blog for readers who may be interested…