Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 7

Format specification Description

"General Number" Displays number with no thousand separators.


"Currency" Displays number with thousand separators, if
"Fixed" Displays at least one digit to the left and two
"Standard" Displays number with thousand separators, at
"Percent" Displays number multiplied by 100 with a
"Scientific" Uses standard scientific notation, providing
"Yes/No" Displays No if number is 0; otherwise,
"True/False" Displays False if number is 0; otherwise,
"On/Off" Displays Off if number is 0; otherwise,
Format Description
"General Displays a date and/or time. For
"Long Displays a date according to your
"Short Date" Displays a date using your current
"Long Displays a time using your current
"Medium Displays a time in 12 hour format.
"Short Time" Displays a time in 24 hour format.
Character Description
(:) Time separator. In some locales, other
(/) characters
Date separator. may be used to
In some represent
locales, otherthe
time separator.
characters may The
be timetoseparator
used represent theas
(\) Backslash.
separates Displays
hours,The the
minutes, next character
and seconds
date
aDouble separator.
literal character. date
So, separator
it's not within
interpreted
(") when
separatestime values
quote.
the Text
day, are formatted.
enclosed
month, and yearThewhen
as a
actual
double formatting
character
quotes character.
used as theThe
isformatted.
displayed. time
So, it's not
c date
Displayvalues
the are
date as ddddd and actual
display
separator
interpreted
character in formatted
as
used formatting
asasthe output
date is
characters.
separator ina
d Display
the time
determined the day
as ttttt,
by your a number
in that without
order.
system settings.
formatted
leading zerooutput
(1-31).is determined by your
dd Display onlyday
the
system settings. dateas ainformation
number withifathere
ddd leading
is
Display zero
no fractional (01-31).
the day part
as an to the date serial
abbreviation (Sun-
dddd number;
Sat).
Display display
day asonly
Localized.
the a fulltime
name (Sunday-
information
Saturday). if there is no integer
Localized.
ddddd Display the date as a complete date
portion.
(including day,serial
month, and year),
dddddd Display a date number as a
formatted
complete according
date (includingto yourday,system's
month,
w Display
short the
date day
format of the
setting.weekThe as a number
default
and
(1 year)
for formatted
Sunday through according
7 for to the
Saturday).
ww Display
short
long date the
date weekrecognized
format
setting of the yearby
is mm/dd/yyyy. as your
a number
m (1-54).
system.
Display The defaultaslong
the month date format
a number without a
is dddd, mmmm
leading zero d, If m immediately
(1-12). yyyy.
follows h or hh, minute rather than
mm Display the month as a number with a
mmm leading
Display zero (01-12).
the month as If mm immediately
an abbreviation
mmmm (Jan-Dec).
Display theLocalized.
follows h or hh,
monthminute
as a fullrather
monththan
name
the month is displayed.
(January-December).
q Display the quarter ofLocalized.
the year as a
y number
Display (1-4).
the day of the year as a number
yy (1-366).
Display the year as a 2-digit number (00-
yyyy 99).
Display the year as a 4-digit number
h (100-9999).
Display the hour as a number without a
hh leading
Display zero (0-23).
the hour as a number with a
n leading
Display zero (00-23).
the minute as a number without
nn aDisplay
leadingthe
zero (0-59).
minute as a number with a
s leading
Display zero (00-59).
the second as a number without
ss aDisplay
leadingthe
zero (0-59).
second as a number with a
ttttt leading
Display zero (00-59).
a time as a complete time
AM/PM (including hour, minute,
Use the 12-hour clock andand second),
display an
formatted
uppercase using
AM withthe time separator
any hour before
defined by thean
noon; display time format recognized
uppercase PM with any by
your
hour system.
betweenAnoonleading
and zero
11:59isP.M.
displayed
am/pm Use the 12-hour clock and display a
A/P lowercase AM with
Use the 12-hour anyand
clock hour before
display an
noon; display
uppercase A a lowercase
with any hour PM withnoon;
before any
a/p Use
hour the 12-hour
between clock
noon and and display
11:59 P.M.a
display
lowercasean A
uppercase
with anyPhour
withbefore
any hour
noon;
between
display anoon and 11:59
lowercase P withP.M.
any hour
between noon and 11:59 P.M.
Empid Name dept Empid Name dept deptid dept
1a IT 1a IT 101 Audit
2b IT 5 bb IT 102 HR
3c sales 7 cc sales 103 IT
4d Finance 8 dd Finance

Table1 table2

union(table1,table2) Crossjoin(table1,table2)

Empid Name dept


1a IT
2b IT
3c sales
4d Finance
1a IT
5 bb IT
7 cc sales
8 dd Finance
Prod price Qty
Pen 20 10 200
Books 30 5 150
50 15 350
750

You might also like