SlideShare ist ein Scribd-Unternehmen logo
1 von 20
Oracle9 i   Datetime Functions
Objectives ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
TIME ZONES -08:00 The image represents the time for each time zone when Greenwich time is 12:00. -05:00 +02:00 +10:00 +07:00
Oracle9 i  Datetime Support ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Hidden Slide
TZ_OFFSET SELECT TZ_OFFSET('Canada/Yukon') FROM DUAL;  SELECT TZ_OFFSET('Europe/London') FROM DUAL;  ,[object Object],[object Object],[object Object],SELECT TZ_OFFSET('US/Eastern') FROM DUAL;
Hidden Slide
CURRENT_DATE ,[object Object],[object Object],[object Object],ALTER SESSION  SET NLS_DATE_FORMAT = 'DD-MON-YYYY HH24:MI:SS'; ALTER SESSION SET TIME_ZONE = '-8:0'; SELECT SESSIONTIMEZONE, CURRENT_DATE FROM DUAL; ALTER SESSION SET TIME_ZONE = '-5:0'; SELECT SESSIONTIMEZONE, CURRENT_DATE FROM DUAL;
CURRENT_TIMESTAMP ,[object Object],[object Object],ALTER SESSION SET TIME_ZONE = '-8:0'; SELECT SESSIONTIMEZONE, CURRENT_TIMESTAMP  FROM DUAL; ALTER SESSION SET TIME_ZONE = '-5:0'; SELECT SESSIONTIMEZONE, CURRENT_TIMESTAMP  FROM DUAL; ,[object Object]
LOCALTIMESTAMP ALTER SESSION SET TIME_ZONE = '-5:0'; SELECT CURRENT_TIMESTAMP, LOCALTIMESTAMP  FROM DUAL; ALTER SESSION SET TIME_ZONE = '-8:0'; SELECT CURRENT_TIMESTAMP, LOCALTIMESTAMP  FROM DUAL; ,[object Object],[object Object]
DBTIMEZONE  and  SESSIONTIMEZONE  SELECT DBTIMEZONE FROM DUAL; SELECT SESSIONTIMEZONE FROM DUAL; ,[object Object],[object Object]
EXTRACT SELECT EXTRACT (YEAR FROM SYSDATE) FROM DUAL; ,[object Object],[object Object],SELECT last_name, hire_date,  EXTRACT (MONTH FROM HIRE_DATE) FROM employees WHERE manager_id = 100;
TIMESTAMP  Conversion Using   FROM_TZ SELECT FROM_TZ(TIMESTAMP  '2000-03-28 08:00:00','3:00') FROM DUAL; ,[object Object],[object Object],SELECT FROM_TZ(TIMESTAMP  '2000-03-28 08:00:00', 'Australia/North') FROM DUAL;
STRING  To   TIMESTAMP   Conversion Using  TO_TIMESTAMP  and  TO_TIMESTAMP_TZ SELECT  TO_TIMESTAMP_TZ('1999-12-01 11:00:00 -8:00',   'YYYY-MM-DD HH:MI:SS TZH:TZM') FROM DUAL; SELECT TO_TIMESTAMP ('2000-12-01 11:00:00',   'YYYY-MM-DD HH:MI:SS')  FROM DUAL; ,[object Object],[object Object]
Time Interval Conversion   with  TO_YMINTERVAL SELECT hire_date,  hire_date + TO_YMINTERVAL('01-02') AS   HIRE_DATE_YMININTERVAL   FROM EMPLOYEES WHERE department_id = 20;  ,[object Object]
Summary ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],In this lesson, you should have learned how to use the following functions:
Practice 16 Overview ,[object Object],[object Object]
Hidden Slide
Hidden Slide
Hidden Slide

Weitere ähnliche Inhalte

Was ist angesagt?

USING POLAR COORDINATE SYSTEM TO UNDERSTAND EMISSION SOURCES (2)
USING POLAR COORDINATE SYSTEM TO UNDERSTAND EMISSION SOURCES (2)USING POLAR COORDINATE SYSTEM TO UNDERSTAND EMISSION SOURCES (2)
USING POLAR COORDINATE SYSTEM TO UNDERSTAND EMISSION SOURCES (2)
Mandilakhe Msutu
 
Determining Time in Hotspots with the Help of FME
Determining Time in Hotspots with the Help of FMEDetermining Time in Hotspots with the Help of FME
Determining Time in Hotspots with the Help of FME
Safe Software
 
06 how to write a map reduce version of k-means clustering
06 how to write a map reduce version of k-means clustering06 how to write a map reduce version of k-means clustering
06 how to write a map reduce version of k-means clustering
Subhas Kumar Ghosh
 
실험설계실습
실험설계실습실험설계실습
실험설계실습
yosm
 
Alg March 26, 2009
Alg March 26, 2009Alg March 26, 2009
Alg March 26, 2009
Mr. Smith
 
Analytical models of learning curves with variable processing time
Analytical models of learning curves with variable processing timeAnalytical models of learning curves with variable processing time
Analytical models of learning curves with variable processing time
Sagarika Muthukumarana
 

Was ist angesagt? (20)

CaseBreach
CaseBreachCaseBreach
CaseBreach
 
JGrass-NewAge rain-snow separation
JGrass-NewAge rain-snow separationJGrass-NewAge rain-snow separation
JGrass-NewAge rain-snow separation
 
JGrass-Newage snow component
JGrass-Newage snow componentJGrass-Newage snow component
JGrass-Newage snow component
 
USING POLAR COORDINATE SYSTEM TO UNDERSTAND EMISSION SOURCES (2)
USING POLAR COORDINATE SYSTEM TO UNDERSTAND EMISSION SOURCES (2)USING POLAR COORDINATE SYSTEM TO UNDERSTAND EMISSION SOURCES (2)
USING POLAR COORDINATE SYSTEM TO UNDERSTAND EMISSION SOURCES (2)
 
JGrass-Newage clearness index
JGrass-Newage clearness indexJGrass-Newage clearness index
JGrass-Newage clearness index
 
JGrass-NewAge ET component
 JGrass-NewAge ET component JGrass-NewAge ET component
JGrass-NewAge ET component
 
Determining Time in Hotspots with the Help of FME
Determining Time in Hotspots with the Help of FMEDetermining Time in Hotspots with the Help of FME
Determining Time in Hotspots with the Help of FME
 
03202014(cirrus no cloud_somecloud_highcloud)-4
03202014(cirrus no cloud_somecloud_highcloud)-403202014(cirrus no cloud_somecloud_highcloud)-4
03202014(cirrus no cloud_somecloud_highcloud)-4
 
Short-Term Forecasting of Surface Solar Irradiance Based on Meteosat-SEVIRI D...
Short-Term Forecasting of Surface Solar Irradiance Based on Meteosat-SEVIRI D...Short-Term Forecasting of Surface Solar Irradiance Based on Meteosat-SEVIRI D...
Short-Term Forecasting of Surface Solar Irradiance Based on Meteosat-SEVIRI D...
 
06 how to write a map reduce version of k-means clustering
06 how to write a map reduce version of k-means clustering06 how to write a map reduce version of k-means clustering
06 how to write a map reduce version of k-means clustering
 
CanSat 2008: ITESM Mexico City Final Presentation
CanSat 2008: ITESM Mexico City Final PresentationCanSat 2008: ITESM Mexico City Final Presentation
CanSat 2008: ITESM Mexico City Final Presentation
 
Geology / Reservoir Assessment Module
Geology / Reservoir Assessment ModuleGeology / Reservoir Assessment Module
Geology / Reservoir Assessment Module
 
JGrass-NewAge water budget
JGrass-NewAge water budget JGrass-NewAge water budget
JGrass-NewAge water budget
 
JGrass-NewAge probabilities forward component
JGrass-NewAge probabilities forward component JGrass-NewAge probabilities forward component
JGrass-NewAge probabilities forward component
 
VBA Script
VBA ScriptVBA Script
VBA Script
 
실험설계실습
실험설계실습실험설계실습
실험설계실습
 
Generation of one minute data
Generation of one minute dataGeneration of one minute data
Generation of one minute data
 
Alg March 26, 2009
Alg March 26, 2009Alg March 26, 2009
Alg March 26, 2009
 
Time review an example in the class of aon
Time review an example in the class of aonTime review an example in the class of aon
Time review an example in the class of aon
 
Analytical models of learning curves with variable processing time
Analytical models of learning curves with variable processing timeAnalytical models of learning curves with variable processing time
Analytical models of learning curves with variable processing time
 

Andere mochten auch (8)

Oracle naveen Sql
Oracle naveen   SqlOracle naveen   Sql
Oracle naveen Sql
 
Oracle naveen Sql
Oracle naveen   SqlOracle naveen   Sql
Oracle naveen Sql
 
Oracle: Functions
Oracle: FunctionsOracle: Functions
Oracle: Functions
 
Oracle: Functions
Oracle: FunctionsOracle: Functions
Oracle: Functions
 
Oracle经典教程
Oracle经典教程Oracle经典教程
Oracle经典教程
 
Oracle公司内部数据库培训资料
Oracle公司内部数据库培训资料Oracle公司内部数据库培训资料
Oracle公司内部数据库培训资料
 
Oracle Date Functions
Oracle Date FunctionsOracle Date Functions
Oracle Date Functions
 
Dump Answers
Dump AnswersDump Answers
Dump Answers
 

Ähnlich wie Les16

e computer notes - Single row functions
e computer notes - Single row functionse computer notes - Single row functions
e computer notes - Single row functions
ecomputernotes
 
e computer notes - Creating and managing tables
e computer notes -  Creating and managing tablese computer notes -  Creating and managing tables
e computer notes - Creating and managing tables
ecomputernotes
 
Oracle tips and tricks
Oracle tips and tricksOracle tips and tricks
Oracle tips and tricks
Yanli Liu
 

Ähnlich wie Les16 (20)

e computer notes - Single row functions
e computer notes - Single row functionse computer notes - Single row functions
e computer notes - Single row functions
 
Les03
Les03Les03
Les03
 
e computer notes - Creating and managing tables
e computer notes -  Creating and managing tablese computer notes -  Creating and managing tables
e computer notes - Creating and managing tables
 
Oracle tips and tricks
Oracle tips and tricksOracle tips and tricks
Oracle tips and tricks
 
10. timestamp
10. timestamp10. timestamp
10. timestamp
 
Introduction to Date and Time API 4
Introduction to Date and Time API 4Introduction to Date and Time API 4
Introduction to Date and Time API 4
 
MariaDB Server 10.3 - Temporale Daten und neues zur DB-Kompatibilität
MariaDB Server 10.3 - Temporale Daten und neues zur DB-KompatibilitätMariaDB Server 10.3 - Temporale Daten und neues zur DB-Kompatibilität
MariaDB Server 10.3 - Temporale Daten und neues zur DB-Kompatibilität
 
Introduction to Date and Time API 4
Introduction to Date and Time API 4Introduction to Date and Time API 4
Introduction to Date and Time API 4
 
Introduction to Date and Time API 3
Introduction to Date and Time API 3Introduction to Date and Time API 3
Introduction to Date and Time API 3
 
How to tune a query - ODTUG 2012
How to tune a query - ODTUG 2012How to tune a query - ODTUG 2012
How to tune a query - ODTUG 2012
 
Les03 Single Row Function
Les03 Single Row FunctionLes03 Single Row Function
Les03 Single Row Function
 
Les03 (Using Single Row Functions To Customize Output)
Les03 (Using Single Row Functions To Customize Output)Les03 (Using Single Row Functions To Customize Output)
Les03 (Using Single Row Functions To Customize Output)
 
Les03
Les03Les03
Les03
 
MERGE SQL Statement: Lesser Known Facets
MERGE SQL Statement: Lesser Known FacetsMERGE SQL Statement: Lesser Known Facets
MERGE SQL Statement: Lesser Known Facets
 
Oracle - Program with PL/SQL - Lession 01
Oracle - Program with PL/SQL - Lession 01Oracle - Program with PL/SQL - Lession 01
Oracle - Program with PL/SQL - Lession 01
 
jkfdlsajfklafj
jkfdlsajfklafjjkfdlsajfklafj
jkfdlsajfklafj
 
doc
docdoc
doc
 
Introduction to Date and Time API 3
Introduction to Date and Time API 3Introduction to Date and Time API 3
Introduction to Date and Time API 3
 
Les03
Les03Les03
Les03
 
What's New in MariaDB Server 10.3
What's New in MariaDB Server 10.3What's New in MariaDB Server 10.3
What's New in MariaDB Server 10.3
 

Mehr von Vijay Kumar (17)

Les20
Les20Les20
Les20
 
Les19
Les19Les19
Les19
 
Les18
Les18Les18
Les18
 
Les17
Les17Les17
Les17
 
Les15
Les15Les15
Les15
 
Les14
Les14Les14
Les14
 
Les13
Les13Les13
Les13
 
Les12
Les12Les12
Les12
 
Les10
Les10Les10
Les10
 
Les11
Les11Les11
Les11
 
Les07
Les07Les07
Les07
 
Les09
Les09Les09
Les09
 
Les08
Les08Les08
Les08
 
Les06
Les06Les06
Les06
 
Les05
Les05Les05
Les05
 
Les04
Les04Les04
Les04
 
Les02
Les02Les02
Les02
 

Kürzlich hochgeladen

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Kürzlich hochgeladen (20)

TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 

Les16

Hinweis der Redaktion

  1. Schedule: Timing Topic 30 minutes Lecture 20 minutes Practice 50 minutes Total