Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Developing Robust Date and Time Oriented Applications in Oracle Cloud

You're reading from   Developing Robust Date and Time Oriented Applications in Oracle Cloud A comprehensive guide to efficient date and time management in Oracle Cloud

Arrow left icon
Product type Paperback
Published in May 2023
Publisher Packt
ISBN-13 9781804611869
Length 464 pages
Edition 1st Edition
Languages
Concepts
Arrow right icon
Author (1):
Arrow left icon
Michal Kvet Michal Kvet
Author Profile Icon Michal Kvet
Michal Kvet
Arrow right icon
View More author details
Toc

Table of Contents (26) Chapters Close

Preface 1. Part 1: Discovering Oracle Cloud
2. Chapter 1: Oracle Cloud Fundamentals FREE CHAPTER 3. Chapter 2: Data Loading and Migration Perspectives 4. Part 2: Understanding the Roots of Date and Time
5. Chapter 3: Date and Time Standardization Principles 6. Chapter 4: Concepts of Temporality 7. Part 3: Modeling, Storing, and Managing Date and Time
8. Chapter 5: Modeling and Storage Principles 9. Chapter 6: Conversion Functions and Element Extraction 10. Chapter 7: Date and Time Management Functions 11. Chapter 8: Delving into National Language Support Parameters 12. Part 4: Modeling Validity Intervals
13. Chapter 9: Duration Modeling and Calculations 14. Chapter 10: Interval Representation and Type Relationships 15. Chapter 11: Temporal Database Concepts 16. Chapter 12: Building Month Calendars Using SQL and PL/SQL 17. Part 5: Building Robust and Secure Temporal Solutions
18. Chapter 13: Flashback Management for Reconstructing the Database Image 19. Chapter 14: Building Reliable Solutions to Avoid SQL Injection 20. Part 6: Expanding a Business Worldwide Using Oracle Cloud
21. Chapter 15: Timestamp Enhancements 22. Chapter 16: Oracle Cloud Time Zone Reflection 23. Assessments 24. Index 25. Other Books You May Enjoy

Summary

In this chapter, you got familiar with the existing functionalities in DBS Oracle, mostly related to day and month granularity. We emphasized the ADD_MONTHS and MONTH_BETWEEN functions for dealing with month precision.

Mathematical arithmetic applies a day precision shift. Therefore, this chapter referenced the LAST_DAY function for providing the last day of the month and the NEXT_DAY function, which provides the closest larger DATE value according to the specified weekday. The weekday value is set by the string abbreviation; alternatively, the serial number of the day within the week is used. However, as we have shown, these values depend on the region, language, or territory. Therefore, our own implementation for getting the next day was proposed and discussed.

In addition, we learned the principles of DATE value rounding and truncating. Then, the PERSONAL_ID value was introduced, which can be used as the primary key for a person table, providing composite information...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image