chapter 5.1 Flashcards
how does oracle store dates internally
stores dates as numbers
date information is displayed as _______
DD-Mon-YYYY
what are the 2 types of data conversion
implicit data type
explicit data type
example of implicit data conversion
oracle server can automatically convert char data to NUMBER and DATE data types
what is 1 way to ensure reliability in sql statements
it is best to explicitly make data type conversions to ensure reliability in SQL statements
what is example of explicit data types
character data type to number datatype using TO_NUMBER function
Number data type to character data type using TO_CHAR
syntax for to_char when converting date to character data
TO_CHAR(date column name, ‘format model you specify’)
how do you spell out a number using format model
use sp
how to have the number appear as an ordinal using format model
use th
why use fm element
remove padded blanks or remove leading zeroes from the output
how to specify the numeric day of year
DDD
how to specify the numeric day of the month
DD
how to specify the numeric day of the week
D
how to specify the hours
HH
how to specify the minutes
MI