Developing Robust Date and Time Oriented Applications in Oracle Cloud by Michal Kvet

Developing Robust Date and Time Oriented Applications in Oracle Cloud by Michal Kvet

Author:Michal Kvet
Language: eng
Format: epub
Publisher: Packt Publishing Ltd.
Published: 2023-04-19T00:00:00+00:00


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 about the gender and date of birth of a person. The PERSONAL_ID value itself is divisible by 11, making the solution resistant to errors and typos. Finally, we summarized the possibilities of generating a random date, both by explicitly managing individual elements and by applying a numerical shift.

While describing the various methods and parameters, we pointed out the meaning of the parameter value, which can be influenced by the parameters of the session or server. In the next chapter, we will guide you through the complexity of the NLS parameters while pointing to the individual values, impacts, and data dictionary to get the current set (or inherited) value.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Popular ebooks
Developing Robust Date and Time Oriented Applications in Oracle Cloud by Michal Kvet(3072)
Serverless ETL and Analytics with AWS Glue by Vishal Pathak Subramanya Vajiraya Noritaka Sekiyama Tomohiro Tanaka Albert Quiroga Ishan Gaur(2708)
Practical Guide to Azure Cognitive Services by Chris Seferlis & Christopher Nellis & Andy Roberts(2166)
Unity Artificial Intelligence Programming - Fifth Edition by Dr. Davide Aversa(1839)
Open Source Projects - Beyond Code by John Mertic(1759)
The AI Product Manager's Handbook by Irene Bratsis(1757)
Graph Data Modeling in Python by Gary Hutson and Matt Jackson(1733)
Cloud Auditing Best Practices by Shinesa Cambric & Michael Ratemo(1362)
Aligning Security Operations with the MITRE ATT&CK Framework by Rebecca Blair(1346)
Graph Data Processing with Cypher by Ravindranatha Anthapu(1123)
Data Literacy in Practice by Angelika Klidas Kevin Hanegan(1109)
Applied Machine Learning and High-Performance Computing on AWS by Mani Khanuja | Farooq Sabir | Shreyas Subramanian | Trenton Potgieter(1108)
Fuzzing Against the Machine: Automate vulnerability research with emulated IoT devices on QEMU by Antonio Nappa Eduardo Blazquez(954)
Implementing Multifactor Authentication: Protect your applications from cyberattacks with the help of MFA by Marco Fanti(947)
The AI Product Manager's Handbook: Develop a product that takes advantage of machine learning to solve AI problems by Irene Bratsis(839)
Data Literacy in Practice - A complete guide to data literacy and making smarter decisions with data through intelligent actions (2022) by Packt(831)
The SQL Workshop by Frank Solomon(814)
Graph Data Processing with Cypher by Anthapu Ravindranatha;(778)
Serverless Machine Learning with Amazon Redshift ML: Create, train, and deploy machine learning models using familiar SQL commands by Debu Panda Phil Bates Bhanu Pittampally Sumeet Joshi(727)
Network Automation with Go by Nicolas Leiva & Michael Kashin(614)