Uploaded by ssingh_28

SQL Basics Handwritten

advertisement
c)
Date
Page
,_
........
(..~- ~
l"
r--
1
I ~~
~-- l
.. tJ
_..,_
-
r~c l- r
- .
J
- --
l - / { 'f 1,
:
-
.....
r
u / ~ ~ _,
(
(
..
I
I
r .
I
~Cuoious- - p-o~1oo m~
I
-
BG''.,
6'-klnds
st·n.Jc-\u~d ~Vefc!'.\
~cri
-
la 1 \juq_
1e
..
-I
• '-0hxt \S
SBL
..
..
,-~ s10ndo.-Yd
\.anjUOJe k)"( ~cc.essi '"'j
..
ma I"'\ u pl a.J.f.~, dafabose00.d
f'o'i ehvdv~ ~v~ \Q~ua1e
'• ..9~1L. . s+ancis
·• 86:>L
a
")
Gos) cs , .
A
.
.
.
- '
..
,.
0~4eri
Co~¼JY"\S
~
cob base. tnos-\-
(
.
-
..
cne OY
~~
'¼b les - e:P..c.h 1Qble \c\en.~,c~
( e-rl · customerr) s-Wden+) .
fr\Q"o(:,
1
:>
/
+o.'o \e . C.or\-to.Jr')
do¾ :
, 'lrecmfds ( 'lroW-S) Wdf'\
BIS? L C<ci'02dc s..\-c:u e n'"\ef) + :
.
r\OfV\C
I
''
CRE Pri~
1Pr-~Lt;-
tct 6 l e- n ct
rY) c.
~
dcJafl.(pe.,
co,um<,'2_ dc..::1-o +-{Pe~
C.O\vm_f')f
-
Go\ V ()"\ () 3
.-.
J
lj
I
dcrle{-h.{ pc ,
J;
1
t'\01e. :
O~L
,s rp-1-
'
-
°'
cos~
Sensi1-1vc
\ Cl
"J UOJ e
- .
____.
r
I
LPM~ ri1e Uploaded
on 1tt 41S~~ -Pa-=--ge
t .3_
_, _,_
~
-====-Y
L1() ~ 1:, rJ {3 i O
------
•
S6JL
Se \<:c\- 8-iadc:rne
~b\c ·•
1
I
I •• ,
e)(amp le
rcre.ccns as <1ncxr Pu 1, P111~d
S'-l n-\ax :
6tLE:C l
J,
'
'
a_
ape.it c:i fe,d
'
eol urril) t ,
Q0 [ulY)() '2, .. . .
4
I
-
(_ P©t , r-il e. . U ploa ~~ on 'TE.LtG RAfYU· ' Date
'
L, n'?- h, ·sih'.· :
-
,
I
r- :
;
I
.
.
)
!
,
)
.
I
-to
-
.
.. 1'.
' i
\S
-
I
I
I
,.
I
.
- - 1'11's
cod.e
OJ lr
,\
e')(al'Y)pl e :
odd
cornm en~ me.. ·used , ;to
f)o-\eJ
cam fr'e. r)t .
0
I
.'
\
!] ~NQ)
'
I
' .
+,
I
op~IT T :
(1, Y"\
e. fi.'r'J-t,
'r
,Qll
)
I
d{spto:1 s , o , ro-e.co'"'("d
Co r\d,i41 0'('\~ ,- ~ c l ~ b_j ~Y\l.:D
ap~c fY
+he.
· • G.~-1Q ut, . ''-
'
.
AN:D
I
,. '
..'
\ oG,co\ or-e1ro-100S
I
I
c)
~age
I
cornm~ ryt ~
• 5~L
.
l
I
. ..
s~n-+ox ~
::,,-
.
i
1
.:.-.:.J I ~f I
@c..u-i)ou 6 :-· \Jo J<r0 r()'l'rl _e--1
0
·---, ..
I
;•1
j
Se\ee.t o,\u01() I , Colurn() 2 ·1 ~..-. • • ..
~'cm!"()
w\-)e'Jr(.
i
.. \
h
I
-~
to ble - n a rn e..
CdY'ld1f-\ or:-, r I AN :o
-
C?.D0di+t on 2..
-
I
.
.,
6J
oc
1 Y\e 0~ O ~ ' " ' I d\G p lO:j
4-V\c:. acll d, +1 o r, Sepocu-ed b_
~ 02.
l
-
s~ 1")-\-0, '<
,_
,
~ol(d
•.1'2u t ·
;
I
I
I.
'\
I
L I
c.o ll.J '"' r, {) 'CD\ u (Y) t') 2-, . . .
~a~ '10.b\e.- n q m e.
ltJ \4 t Q E co f'd, '+i' f') 1 OR Conc1'1 +1 o(")0..., · · ·
Selezt
'
,s
0
-
I
I
0~
l)
;
I
-
-.
f' ( ( I I , ~'
OQ op~cdo -Y :
'
•! • - • •
\ C rnj
r
()\j~o I') , C. ,ra.,:~~ ·, · 0 op
l~on aku~ r Date I .,.-
'!
_,
on 1 £t ao ~. P-,
r L!,N\L "tN arol
Uploa.<\.ed
no1-eS
I
J page
l
~
CJ
-----.i:::
;;
,,
-
,,
I
-
-
-
-
I r-----.
37 r\)Ol Op~cd o~ '.
,
,
op~D ~
ctne {\)Cl
-
\C
-
'S'-{11-taY '.
!
I
Co f\(iA +{° D n(6)
4-r\e.,
'\$
c1·splaL\'E> · o iaeco,<d
I
~
l'\) 01
'
'Tf2.lJ"E ·
-
-
.
C ~ hH)'H) t I
. 85-L~C.1
-
,¼l't, \~ -na.rn e.
~~1dtOI }! 1 NOl
(}(2.orY)
W~ERE
I
-
I
-
C,o) \f(l'\(") 2 . . ..
'
;
-
Co r") clj +{ 0 r)
'
I
..
-
eYOtl)p \e ~
-
I
-
· sEL€C ,
* (:'ie.oM (,us ~~ -
\..ul4t"\2.-c
f\rOl
courr\- ~ ~ \ i.\-1~
-
@cu1f\OJS - -p 000~a rnfY\(::fY
½J 'IN ope ~cd-c:51S' .
I
.
.,
'
I~
--
I
I
tl
' ~e ~ cpe,~'1
I
I
a\to(J
+o
~OU
8P~P j
()°)\fl+, p \ ~
"-
•
-
m\.) \-½p\e
I
.
-
OD rd 1+tons ,
'
l
I
I
--
G\Q
I
I
--
ryo\u~ \t, a WHEf.2.f c\Q\J6e 1S 0 6 h o"l'+t"'\a '1 d ftr{
~He 1:N apertro.:}a--./
'
S~n+o.y. :
SeLecT
~~Or-')
-
C6,VfYl ()_ no fr\c:Cs)
¼ b \e- norn e
~
w\'"\Et2.E
Col uf'Y\(')-\ '"\a n\.<::..
.
"tN (voh.1~ ' 1 l"\fQ \v~2.) . .
-
.
-
~
-
-
P.!1>C rite Up\oQde d
[ Li I"\ \L l.nJ (3 icJ
Qr)
1EL€Q'2A OJ
Date
Page
.
-
s\ 50L b~een opeaG.3-oo ·
------
- • 1n.e ·e,E7\'-1~ErJ Q p ~y
w\-\--t\,t'I 0 ~,v~_r~ 'lra f'\j c:. . r\r-e
.;.er,t+ 0-Y ckd-~ -
•
04\\n
<"\he._
Or\O
Bel WEEN
'6'-t n-\o)( :
6cL£c.,
<yq \v e.
t")urn'o<:n1
Col'"')
b~
,s ·11"') c\ u s\v<::.. •.
ope'b'atrrY
Va\~
efJd
s~ed-1
incl0dcd
Q.')'C
CohJ fY1 ~- ~o ~(s ')
f-t2.0r")
¾'o Ie__ no rn ~
W\-ttQ.E
c.o\urn<") _nqn-, e
-
0,Y'S~
valvtj
~ElwEtf\l
f"\J a!v~2. ;
@cc_io\0\JS -.? ~ 0J6q r'{)M e'Y'
~ LlJ(E O~t'f()j-cs-6 /
>
• q \-°"le L1~E ope~o"' ( 16 us~ I r) Cl ~HE: 12.,-£"
~o.r~-c'r) Poo a
c\ouse. 7"0
'a p ~ p \ ed p Q +t €"or\ q
-
Co\\..) N,'r)
~~ O'cre-
CO r\} IJ 1'\c+; 0 ~
-h.Jo wi l d c.o r<cl S
w,-+n
---\-r\e_
o~-\-ef') us~
L1\(.E cpenr~ :
'
I Y")
Q
• . #\'c. p~c.e ryr si5n(-1.) rcrep.. wen+ 2..ecro,
I
0 \'JC:. , Oo
•
I
54 n -\ay
ll
O"\U 14\ Pl~
+e ')("' .
C r\Q'""'lr(:..
1h~ Ur'\cte1( $Co')-(. S I':) Y°\ ( - ) ~
'3\f"\, \ e__ c 'r,arrc.,-\ m .
BELE'C.1
CDhJ l"t\nl , c.o\u m n 2-, - - . •
~Qo M
1ab I e- n a CV'\ ~
Wt1 EQf
eol urnru - L"1.~E
')-"c:_J e_cy\- O () c
Pcd+e fbr"') ~
--
~he.., lJpLooded on 1 ELE'Q l2A f\;
PlDC
~
Cun lt. Jr, {3ioJ
-----
e
)
.
•
..-,
SCUL J OI NS:
l~
L-
~
~ e
-
~--0-0N')
Ol'"\d
5&\_.
Jo\'J Calvse.
I
·+_uo O'lf
c.crn'oi n e.s
I
'
\+
a
In
daJ--abase
¼~~e.rir.
\
•
8-\-o t")tia',c(d 8ci)L de.ei~ej
1' \n\"'ie."6 Jo\ n
ANSI
\
¾btes
010'4-e
cn:_oo--€d s
~ke
S" 1-:} p~
er- J o\ t'\S-
,-
'2J \~+ Ol>4e"6 .JC)\'")
~ f'cJ",3n-\
©U-\-e'i, Jo; 'l
7j) Pv, \ O\.J-\,~rt Jo\ '1 ,...
.
s\- .Ccsti SS Joi-I'")
-
/
-
<1
--
@cu"i\o\JS--p oe0oo rnrr'tG'Y
~ 1nne'"i'
-
Jo,n :
-
~~
i:::; ·~ .
le l ➔ · (
+r,'h
- -
'
'\
1 \,e
~~-,<r'.\',
-✓
•
) ~+ob,iP 2-
'(,r / ·_
I
~ L \Y,n.ef"]) Jo,~
/
1,f\ f\ t t2
J O\',
\(~Woo'd
~
-\-ncJ-
\r\,ave
s Yn4a.~:
J
rno:kh\ n_j
ScLGC1
.rvolu~
-
seleQJ:\ ~o'c:L\
I I"\ ~O'tr\ -\ab l~.
l
column - ()arne ls)
re.a~ -+a.b le I
1.J\(\ f Q..
ON
J,01N
-+a'o\e2...
¼bte- eo\u~0-n.a ~ ~ - ¼'n l~2. .
CJ> \ UfY\r'J - n OfY) e;
Ii
'
I
I
-
-
I
I
J
'
,
I
'
•I
-
-
12) Lff1 JO I I\ : r
' •
goa~ ·~
.Rage
-
--
-
-
-
,
-.
t
- .'
--
-,;..---
r---- -
-";,
I
•
I
,
...
I
<oe.ivcin Ol\
CJ-able 1) , O r'\ d
<re.C.n, d.s c~~~ '1r\e: II \ e_p4- ..\-ab\<:..
co--od.s . rrif1'.)m ~~ 1Ji::1n+
th.~ <net+c~1n i " (,· <ere
-~
-~--' . r; I4o.b\e CJ-0.b h~
:o ~d _g - ~~ OrY) ~e
+t"'ie, ~ eSu l"t
\S f\O rno -kh ·
~ eni-e...
s\ tl.e -.-
+ne \el -t- j()\( ) \i~ wo'"(d
!J
I
- -
I,, . -
1
i
-
~
I
'
1-
,~.
'Ql~'f\-\-
·,s
-
-
-
i",,
I
'
-
ffibt
I
,,
.
'
I!
I
.
~
C
.I
I
~
~
~~ /
t.._
'I//
i
\
-
~
,,
~ h-lP0
~
•J
~ ~ -.-:
~~ ~
.-,Pe+ !n1n
J
/
.
'
-
-
-
-
I
-
'
I
-
t
I
-Lc"t l S-611'\1 ¾b \e... Q..:. ., - -- .
ON '11\QLE\· Cdu m n-n orn ~ -=- -\o.'o l ~ '2 . c.olurrr<)
_('(l me :
. I.
,
r r ..
~
1
,.
r ,,
l·
I
;$__~
~
-~
- i"--.::. ~
-...¥
...
~
~~
I
r
;:-
eo\u mn ... Y"\b.\'Y'\~(e,)
eJ
9'2..cr<)
D
I
'
l
S~n-klx
'
-
I
I
GELEC..7'
•
lt
\
;3J R1QH1 Jo1 N
@:..u~ovs - ·p-n3 ~a rnm eY
.
-
,,
<\h.e Q\~n+ Jo; t1
k~w oa tl
--
rcrek f1) ris
a ll
1-0'o le (_ 1ob\e.'1) , a n.ci ~ e.
roe.Or(ci~ -Oio c r"a) '"?rl 3 r,t
rna+ch.\ \"'\.., <crc.OJYd.S ~ n'") ~e \eP+ -\-o.b I~
(+ah \e_ I) . -h-\e__ ~!- \: ,s 0 ~'lf dS P"t5 CYf'r1
-+n~ \cl+- ~\de , \~ -\rie ~ IS ho rrcA- Q h .
-
\
-
- ::::::::::
......--'
Date
Page
-
-
-
I
-
~
~
~
/
~
~
p .
'~~
I
...
-
'
+ti h\i- 'I
\
'"Tt_-l.Kl
- ~~
\ ~~~
/<
~
Q_~ h+ Joi 0
. B.\f'l~)( :
'
Co\ urno ... nan:x: CE()
92c,r") ,_
-\--Ob \e 1
Q1.G\tl JOiN
..
6ELEcr
O\'\l
'
-
-4)'o\e2
-
+on \e. . C,olu rnn_ name. ::.. 4-et 6 \e.. · Co\ um n \
(g)C.C.Jo\OUS -. pooJoOrn
-
r
nort)e;
.J ' - '
~ ~u LL -::ro-YN ../
I
I
I
• 1 Y\e, r'uLL . OU1E R- JotN
!
0\\
w r\c:':.C'\ -\-'r\~"lre. \~ Q ~cJ-c.~ 1<"\ le.Ct, 1" C¾bl~~) .\-ob\e 'oe..Cood.~ .
O'Y 7 IfY
'
11
no, e:
I
~ ul l
Q(j-\e-<
Jo\ n
,.
-
I
~
-
'"(5e;;N'()(\S
1f e.Co,sQ s
(-\ob ,e.. ,)
-
)(.~wo7!d.
I
I
\\
a r\d
~<Jl\ J \l \"l
( J ~ ~ n-c
-
,,
-
g;oat,
~
Page
~
'
-ir
H ~.
,. ,r
I
.-
~
-~i;..-:_• ~
I
-·
i' :, _,,.~ iH"',..,........ -..
:M.r.:·1"
.. ~ ~~:.;..-1 ,,..
,--1...,,..r,; _
"#:.,
~
I
.-
. ..,..--~].,I
-
-.,
,
..
"
,.
..
;,,s .;;..
'"I"
,.,
--::<
-
iir.:
. -
-~
t
'. '11. -
_;...,,--.
....-:,,.
l~~»..i .,....,11
.
-- .,.
~ . r~~
-•
-,.~~'lo
..J
'ff PC
""--.__
- -..~ . -....,.~-
~-
.,.,.
'
~
1'ltv _...... - l-:;. A'- -~ ;,~~
'
.~
,~•
i'I:
0
,• . . ,
~
~
I
'"
'"
- _...--.-
-·'
f.....::, ~
,.
r
'"""9
-\.
-
• - ~ - £. _.".;
--
'\.
r--
..,; .::. ~
--
4 ~......
.,,
..... ~--, .
171;7
~
~
, i~~
~ ~,,·. ~: _,,;;,,:- ;; '. -;7~" t,~~
.,..
'
i.-L f'.;
~ ' . ..
- ..::
'- .,.... t
..........__
.,..-
~· '
-
,..-~:,'; : . ,
--
-
~ 1\ \
.-
.,-
t . /"'..
J
..,.,_._
..... ,:,;;;.;,,.. , ,'
r-----
- -------.
_,,,pr;... -, .,._ ~
··,,;st:- •:,:
-,
,Cr :
~
.,.__......... :..,
-
ln'u,
_.,..
_.,..
'5'-l n-\-o. -x
_.,..
@(.{Jo1o!JS-· ~j<a m in~-
.
'
SE\-tC.i
Q5\urnn - f\af'l'C.(G.)
(}Qot-1)
·¾b1e, -
---
,.,..-
I
Pll LL- OU Tff2- uol\N .\ab\e_Q.
OV\J 1-0b'el -'col urt) r) .:.f'ia rn <: . --z--\-Q.b\e_<l . c.ul\Jmn _\
-
-
-
-
:
-
I
('\ql'Y'C.
I
L,ut-\82..E.
-
condj-\-\on;
.
-
~
I
-
I
-
-
-
,.
I
I
-
""
\_)])fI
I
'
-
lJµ1_o~rDtJ> ( N M~
I
'-
\t~-~HM.
j
~
cW8~\Ntl
·@cuoi OUS -· P'oe)JTO mrreri ·
I
( \'1ri }'._ )n 'biu"')
-
-
-
.....-::=
II
•
l
t.
P-S
-{
,/
-.
fl .
f
.
I , . /_
_,_
Download