Untitled

Transcription

Untitled
Asp
١
.
،‫"א! א‬#$%&'‫אא‬،‫אאא‬
.()$*+,*-%&./
29#‫א‬:834;<=‫א‬0(12$34*5(6780474‫א‬
4 ‫<א‬6$25EF‫א‬GH‫?&א‬.I%&>?5@A5B‫אא‬C4D...($
J‫?א&א‬MNO‫?א‬PQ‫א‬R0(5S5T...vb4arabJK5L
X5‫א‬U83$*6??YAspOWRM‫א?א‬IR0(5‫א‬U8DV8
.RM‫א?א‬I٦NO‫?א‬PQ‫א‬L
‫אאאאא
א‬
Microsft Access"#$%& !
;E،‫א‬.DA‫?א‬,*D;E.D،3‫א‬QA5B‫אא‬CY;?BK;$‫א‬O[$
.0‫?א א‬U8>\]‫אא‬،;^_‫`א‬Q.D[^W
.O(‫&א‬QWO)$:E?W$
[email protected]
٢
Microsoft Access
٣
MicrsoftAccess
TSQL
٤
‫)
(א؟‬
\h8R(O?−O‫א‬6)(H?J‫א‬bccdQ0X$?YJ‫&א‬M
P0c.J?(‫א‬U8O?,?‫א‬04cF‫א‬J‫א!\א‬J5‫א‬i(%&>?5j،JM&
.K<k5‫א‬
2D?BKE#m5‫א‬Sql Server , FoxPro ، Access J‫?א&א‬Ml$
.0E‫א‬H$0l nW$JE#JP5U8DV8
&‫`?א‬7‫א‬bEt‫א‬L4()st_c DBMS J‫?א&א‬MH‫א\א‬op‫א‬q‫א‬rCY%.c
.‫ א‬SQL E‫א‬J(57‫א‬u;?k5K3()4‫א‬.E،J‫א‬
L4&.5("?F‫א‬J‫?א&א‬ML!‫א‬J+^‫א‬i(%(%&"(5;v‫א‬
.‫ א‬#;835#
:DataBase −‫
(א‬
J(5DV‫א‬O‫א|א‬%&>?5@>C‫א‬−z(5‫{א‬,;8−x‫א‬%&y‫אא‬CYw^K
.J‫&א‬MJ?BYz}KH5‫א‬
.J&M*&w^;$B~H?,rCY
٥
: Table −‫א‬
"?Q,0B#%&(bccLJ‫&א‬ML4oQ\?F‫א‬J?(‫א‬%&O|‫?>א‬5@
..&$
.3760lH?‫א‬rCY
: Quires −.,-‫א‬
.(3€#wj;$B~F‫(א‬O?$(JP(c.4'(5y‫?'א‬K
.١٨&YH.&$K<cKC‫‚א‬k#!‫אƒ א‬.„5K'(57H?,rCY
:?Y`X‫א‬O|‫;א‬$L
:Record– /#‫א‬
٦
0ELM]6?c،05&x,?J&?.I($3k#0P0E0B_K
.0
:Field− 01‫א‬
.0P0B*5DV85J‫א‬3(3&?0=‫א‬0B_K
.`tBy‫א‬Kq‫א‬00l~`5‫א‬0B_‫א‬
:Data Type− ‫א‬2
.0=‫א‬L4o5F‫א‬J‫\?‡א‬j0+,Wq5(c
:3 l M,!‫א‬O6LJ‫?א‡א‬${V?K`5‫א‬0B_‫א‬
.3 7J‫א?א‡א‬4#‫א‬%&(KH?"(5"?
:Primary Key–)#3‫א‬456‫א‬
`?‫א‬M‚‰‫א‬0=‫א‬N:Ol...b>!*5.MH‫א‬B5{.ˆK7O?=‫?‡(א‬
.€‫?א‬.
:Relationship–7,‫א‬
.3 7JM(‫(Š!?א‡א‬5"?،Q5‹6L(M&0B_c
:Report–!0‫א‬
٧
-3 }−45&^3‫א‬4QJ?(0B_c`EJ‫א‬i(R.1?Y
.mH!‫\?'(Šא‬H‫א?א‬H\‫א‬AŒ'?KKcN:Ol
:Text− 789‫אא‬
.U!‫?א‰א‬YM‫?;א‬BK7;$_'MH!‫א?‚א‬R)%&J‫אא?‡א‬CY>?5
:‫א‬O?+.4‫א‬SX‰‫א‬i(
.0=‫א‬L455EB~F‫א‬J‰‫א‬%M!‫א=א‬%&>?5j :Field Size
.0+V‫א‬tDy‫א‬.‫א‬%&>?5j :Default Value
.&{Pc78.MOW\‫א‬7*$Ž(K‫א‬C4D True %&J?5‫אא‬:8:Required
.OW\!‫א‬
:Number− 7:‫אא‬
Field Size .,WY\;$B~F‫א‬4&‫?א‬$x5k.M‫א‬J‫א‬%&>?5j
:.M‫א‬O?+.4‫א‬SX‰‫א‬
:5‫א‬SX‰‫א‬$%&>?5j :Field Size
.H?E٢٥٥١'MH$%&>?5j :Byte
B~−K\(‫ א‬.mdb JQL٢٨^١٠−U8٢٨^١٠'MH$%&>?5j :Decimal
- .H?E%&>?5@;$
.٣٢٧٦٧U8٣٢٧٦٨−'MH$%&>?5j :Integer
.٢١٤٧٤٨٣٦٤٧U8٢١٤٧٤٨٣٦٤٨−'MH$%&>?5j :Long Integer
)K_(‫א‬O–‫)א‬H?B{.K?Y،.MU84,‰‫א‬tQ‫א‬cB~ :Single
.٤٥−^١٠*١,٤٠١٢٩٨−U8٣,٤٠٢٨٢٣−:b‫א|< א‬L
.٣,٤٠٢٨٢٣U8٤٥−^١٠*١,٤٠١٢٩٨:b6?‫א|< א‬L
٨
.H?B{.K?Y.MU8tQ‫א‬cB~3„K$ :Double
−^١٠*٤,٩٤٠٦٥٦٤٥٨٤١٢٤٧−U8٣٠٨^١٠*١,٧٩٧٦٩٣١٣٤٨٦٢٣١−:b‫א|< א‬L
٣٢٤
.٣٠٨^١٠*١,٧٩٧٦٩٣١٣٤٨٦٢٣١U8٣٢٤−^١٠*٤,٩٤٠٦٥٦٤٥٨٤١٢٤٧:b6?‫א|< א‬L
x‫א‬L3„K$*D،'MH!‫א‬J7Pw(5‫ א‬XP šE$2D?BK&H?,rCY
.E‫א‬C‫א‬N45KEzW!‫א‬x‫א‬L،?.‫א‬K_(‫א‬J‰‫›&\א‬l‫א‬
.‚?‫א‬SX‰*4_`4DSX‰‫א‬$
. Date/Time ;!<‫א&א‬
F‫א‬، Format ,W`Y4XWY$،œKH5‫א‬2M?‫(Šא‬cJ%&>?5j
.œKH5‫א‬2M?‫א‬JcQ5‹OB#$%&>?5j
. Currency 7>:‫א‬
..(‫א‬JcQ5‹‡‫?א‬$Š(cF‫ א‬Format `Y4XWY$.(‫(Šא‬
. AutoNumber )30>‫א@?א‬
"C=‫(א‬B_bK‡?‫אא‬CY;$RM‫א?א‬،JP‫>&\א‬K'MH0c%&>?5j
;?BK;‫א‬%&sqh*$.E،J‫ž?א&א‬uVm,‫א‬0.&(78Mt‫(א‬K7*$›
٩
4|‫א‬%&*$.E`QBK7M‫א‬CY، Long Integer 0K?€{+,\&?YJ‫?‡א‬
.zu‫א‬J‫א‬L3‫א‬zE3‫א‬HYbKMnW!‫א‬
. Memo ($6‫א‬
GB ٢%5$.3‫א‬6.kV.B‡?>$J%&>?5@;$B~*[‡?‫אא‬CY<.5K
. Microsoft ECc.E
. Yes/No B/?
.9€W$++,8،;5Ÿ‫א‬CW[cM%&0=‫אא‬CY>?5@
'$3++,V‫א‬tD7‫*א‬5L;?BK0Y\jF‫ א‬Defult Value ,W`Y,WY$
.3 9€W
. OLE Object C3$
.Ol‫א‬0%&\H50l3XE4DR„;$B~
. HyperLink DEFGF<‫א‬
.c??B‫–א‬46%&xH$+Qž‫א‬HRVB~
.H‫א‬rCYU!‫אא‬OW4(0.(^J&M _;v‫?"?'א‬
p‫א‬q‫א‬.XM Microsoft Access ... "#$%& !HIE37$$
:`5‫א‬0B_pq‫א‬tW‫א‬
١٠
.–K?‫א‬J‫א‬H‫א‬,‫`א‬M'o‫šא‬Q
&MK<Tpq‫א‬b^ Blank Database ... }HDJ&MH5k
. Db_Friends 74oQŒ'?J‫א‬
0.(‫&א‬QQ€ Q‫ א‬Microsoft Access XP H?‫א‬rCY:.4o ***
.nW$J‫א‬H,‫א‬%&
١١
Tabels K‫אא‬LH5k،J‫&א‬MH?,4oc"? _‫א‬.&%&žu„;$(
. `#0E0M376.;$7!،O‫א‬6
..5‫&Šא‬K€LO6 _‫ א‬Create Table in Design View - H5k
:`5‫א‬0B_}HD##4o5
. Fields Name O?=‫אƒ א‬4Db5BF‫`א^א‬YrCY −
. DataType 0=‫א‬J‡?4Db5BF‫`א^א‬YrCY −
.0>$DV‫\א‬PO?=‫א‬SXW4oc"?^‫א‬rCYL −
١٢
:5‫א‬J?(‫א‬%&>?5+5F‫א‬97J‫א‬KF‫א‬L‫א‬7F?:8FL;v‫א‬$
`k_‫א‬RM?‫א‬−`tBy‫א‬Kq‫א‬−;‫א(?א‬−xc]‫א‬MH−zW!‫א‬y‫א‬−O!‫א‬y‫א‬−M‫א‬
:`5‫א‬0B_N:، Jo−¡<5−
*
١
٢,W
Yes−(
٢
J‫?‡א‬
0=‫אא‬
0=‫א‬
Data Type Field Name
Field
A?^ {+,MH=0=‫א‬O?€
Required
١,W
MH
Number
M‫א‬
Field Size=integer Number
Required−A?^
S
Yes−(
Text
S
F_Name O!‫א‬y‫א‬
L_Name zW!‫א‬y‫א‬
Text
٣
MH
Phone xc]‫א‬MH
Number
EC
Address
;‫א(?א‬
EMail
0~7‫א‬
Site
RM?‫א‬
Marry
¡<5
Memo
S
Text
£(_ccH‫א‬
Hyper Link
٤
7=V‫א‬tDy‫א‬,‰‫א‬
7/(
Default Value=No
Yes-No
١٣
EC
Memo Jo
Memo
٥
2K=J‫?‡א‬
MH
Field Size=Byte
Number
Age
.(‫א‬
:‫א‬MN,
lE$NXM,$.Vx„c−*G[73‫&\א‬D?K{+‫א‬M‫!*א‬NC.M−١*
.E‫א‬C‫א‬2K٢N45c2M?‫šא‬QL−wK,٣٢٧٦٧
Required .,WstD‫א‬C...3‫?\א‬6?zW!‫א‬y‫א‬H„;?BK−٢*
DV‫א‬P=‫א‬H‫א‬Y‫א‬L0M‫*א‬$b`‫*א?‡א‬#xc]‫א‬O? ‫א‬0„Q‫–א‬٣*
.O?.¥‫א‬$xc]‫א‬MH0M٠DV‫א‬B‫א‬U8
. No .rzu، Yes (¡<5.<›−٤*
.٢٥٥−‫;א‬:¦−n(5KSk_‫א‬.&;‫›א‬−٥*
.3 7b}c.ESX‰‫א‬i(ž„c;‫šא‬c7
EUV،O5>XO>/P< !BQ%BR)%45:$?‫א‬0NO9ST!%
:)‫א‬
١٤
Db1.zip
'?...%&!‫א‬LJ‫žא!\א‬K#L;‫<א‚א‬H%&žu„dQ='?"?N:(
.¡‰'?Ÿ، Tb_Main ‫א‬2jdQ=
:`5‫א‬0B_‫א‬N4o*&žu„‫א‬A6 Tables ... .XMLO|‫א‬H?4§d
.4&J.(‫א‬i( ‫א‬673‫א‬4J‫&\א‬OW\;v‫א‬M
.7Y-‫א‬7>:
:SB%
$L5B‫?א‬Y*'?0EšE!‫א‬L Add DVy‫א‬.&`Y45D(`uK.&O$
.J\H$;8*5DV‫א‬NB~r(W-3P3XcNwl RecordSet JP‫א‬
](A?^ ( Required - ,W2^VF‫א‬O?=‫א‬R)J5E7*$d7
) .( ( Yes - {c›Œ
١٥
Primary `XHm5Q.E*5&N! Number 0L.MH‫א‬B5{.K*$3„K$d7
- .P5‫א‬Y#4_5JDV‫א‬A6Key .!‫א‬7>:
:SZ
[email protected]‫א‬0K(5M;B>$L#¨‫א‬RV
N:A6−*DO(53E0=‫א‬N\@"?O?=‫א‬JP‫א‬05c&*$d7
\?6?‫א‬S‫א‬0K<K7`E5B‫א‬0M0=‫א‬LGžu„c;$D*DO(c;$J\H$‫א‬:¦D،−
.3 $
F2 .m5Q%&žu„Šu‫אא‬C]\H?B‫א'א‬k5‫א‬NB~3„K$
.\1‫א‬7>:
:S[Z
žuV‫א‬sY،0P‫א‬N0o،0O$0M}HQ‫א‬D‫א‬%&žu„0P>$\
:`5‫א‬0B_ Delete tW‫א‬K!‫א‬G‫א‬H–%&
.\H?B‫ א‬Delete H–%&žu„‫א‬NB~3„K$
D‫?א‬M3‫א‬E[52EOL−R6‫א‬t‫א‬NB~*¦3„K$d7−KKCjHN4o5
.0P‫"א‬C5K"?
١٦
›Œ0P‫'א‬${,&RV?Y!‫א‬L0E;80،#0P‫"א‬C5K73(D
."C=‫ž\;א‬D3Q‹{K
–1Ÿ،2M¨;BL4K<T0P‫א‬0MJ‫א‬R)œ5K;‫„`א‬5K"C=‫;א‬8
0`7‫א‬O|‫א©א‬D‫Ÿא‬،2M¨‫;א‬B‫א‬L*5DV‫א‬r(œ،"C¥‫א‬0P‫א‬
.(‫א‬rCY5c7NC،"C.&0ER*.&B~7‫א‬CY،K6*85M¨‫א‬J‫א‬
- Compact and Repair 4,‫א‬J‫?א&א‬Mm,‫)א‬%&žu„‫(א‬78
.0M${KJ‫&א‬MP;[o‫א‬R^5c›Database )
.]8>‫^א‬0‫;א‬#9‫>א‬:
:S‫<א‬
F‫א‬N5*#KKCjHN4o5*$d7−*M‫א‬CErKj(0P‫œא‬NB~
O5K"?DW-0P%&#¨‫א‬0P‫א‬w2.M?N$3„K$d7،−"C=‫&א‬4oc
..4c
:‫א‬-‫א`_א‬7>:
.;‫א‬HWs4D›Œ.&>$$c;$0M
.(0L›+c;$O!‫א‬H‰‫*א‬
.O?=‫א‬DEL›+c;$`l‫*א‬
.0P>$L0=‫א‬N:L#¨‫א‬R„c;$37$DO!‫א‬H‰‫א‬Kc2E‫א‬:8
.3 XcrH5W‫א‬B.D`l‫א‬$
.J‫žא!\א‬K#LHo‫<א‬H%&žu„N:›+‫< א‬60u_5 - Find )›Œ)tW‫ א‬- Edit ) Kj).XM$
.4c?B%&K?"(5"?`5‫א‬0B_##4o5
١٧
. &›+‫ ( א‬Find What - O!‫א|< א‬
.4&›+‫אא\א‬.B‫אא|< ?"\א‬CYL
. L›+‫ ( א‬Look In - `l‫א|< א‬
.&0M*&#¨‫;א‬E>C‫?א‬Y*D›+‫א‬K>C‫א‬0=‫א‬KjR^5 <|‫אא‬CYL
.3 EO|‫א‬H5W‫א‬$،›+‫א‬
( Match )›l‫א|< א‬
:`Y <|‫א‬CYLJ‫א‬HWŸŸK
<6>$L.B‫›&א‬+'k5K:0=‫< א‬6>$ Any part Of Field Mohamed Ahmed N4oD hm 25E?N$%(،0=‫א‬J
.B^‫א‬O?=‫›&א‬+K"?K^‫א‬rC4:0B0=‫ א‬Whole Field ah .5E?39#4oK‫א‬C›+‫א‬
3l.D،›+‫א‬.E*5K‫א‬w^c>C‫א‬0=‫›&א‬+:0=‫א‬K‫ א‬Start Of Field Ah .A$cª4! Mohammed ^(K*B Ahmed ^( ah 5E?
. ›+‫ ( א‬Search - R‫א|< אא‬
\j(0Q ( Down - (%& ( Up - (0B‫ ( א‬All - `YJ‫א‬HWŸŸK
.H\CW[c'$%&'$=‫א‬#¨‫א‬RV? ‫א‬5‫א‬0Q!‫א‬U8*P5c0Y،›+‫א‬.&0B#
. "!‫ ( א&א‬Match Case - š‰‫א|< א‬
١٨
^(c h &lŒ?3l.D،*5Lw^"=‫;א‬$E[5K"?DH‰‫אא‬CY\‫א‬:8
- Capital .zE"ŒJ$4!Hosame
. ›Œ ( Find - H–%&žu„›+‫א‬.& R^5c‫א‬HWR)\;$(
: H‫א‬H–‫(א‬H$sY،›+‫א‬.&šQ?Y،O‫א‬5y‫א‬.(S5«>C‫?א‬Y`l‫א|< א‬
. }y‫א‬H–*
.O‫א‬5‫›;א‬+H–*
.R.|‫א‬O‫א‬5‫א‬H–*
.`=‫א‬O‫א‬5‫א‬H–*
.a5-‫א‬7,
.‫א‬bRE_`‫א‬7>:
?Y›+‫א‬.&L*8 ^55"? <6W(?).
&›+‫א‬A6...MH$"%&7›+‫א‬.E.V'4Q5y‫&א‬5ER^5
.5‫א‬.B‫א‬
?Ho
o )،H ،3D)0B_5
0‫א‬L،'4Q5y‫?''&א‬K4D6?K7*! Hosame N^(c4$P5
ho .R^‫א‬0M a "\?6? Yahoo .EN5^(5
:5‫א‬.B‫›&א‬+‫א‬A6،nW$1
No ????
٨MH0P‫א‬L\?6?‫א‬Nc‫ &א‬No Site ... 3 „K$ No Memo ^(54$P5
No Mem .[^WY5E!
:`5‫א‬0B_nW$H?JP‫&Šא‬R^5
.‫ א‬#;8374&"(5"?...¡:.‫א_ א‬.&`Y.(‫א‬rC]0K‫א‬
١٩
Sort .cF@‫א‬7>:
Kc>C‫א‬0=‫ \א‬Descinding ... –cNCE Ascendig K&cbct‫א‬B~
$،J‫žא!\א‬K#L.4K<H%&žuV‫(Ÿא‬3lO!‫א‬y‫א‬B)*5^‫?א‬bct‫א‬
.3 –c$3K&ctW‫(Ÿא‬bcc ( Sort - tW‫(א‬JP ( Records - .XM
.'MH!‫א‬bcczu5K"?DNC2.M‫א‬:8N$d7
Forms
- .O‫?א‬PQ‫א‬L'k5c74$}H−NO‫?א‬PQ‫א‬U8šE!‫<א א‬6$AM$¡:.‫א‬q5(c
.Y _¦.MF‫ א‬M,!‫א‬J&M¡:?¬ _¦GH‫א‬OW'?
5‫א‬KH5Wy‫א‬$N4o - Forms ¡:¬tW‫א‬J‫&א‬M{5Q'?c;$(
- Create form in Design view.5‫&Šא‬K€L¡:?¬ _‫א‬
- Create form by using wizerd­(‫א'א‬k5¡:?¬ _‫א‬
tW‫א‬،3KKNC'‫א‬L!‫א‬x5«...­(‫א'א‬k5¡:?¬ _3X'?
.`5‫א‬0B_K^‫א‬rCY
٢٠
:`5‫א‬0B_>H‫?א‬R4o
.6H5k...O|‫אא‬H5®"?%&!‫א|< א‬
،4EYH5WM‫א‬C...¡:?.‫א‬L4oc;$]KF‫א‬O?=‫א‬H5®"?`l‫א|< א‬L
.`5‫žא‬uV‫א‬
.`5‫žא‬u„ŸO!‫א‬0B_‫א‬H5k،¡:?.‫&Šא‬Q5‹OB#$^(K"?N:(
.N K>C‫א‬w5‫א‬tW‫א‬...Q5‹Jc^(K"?5‫א‬#_‫א‬L
0Q!\?6?‫א‬J‫א‬H5Wy‫ א‬Form1 ... *..¡:?.‫אא‬Nb^K"?J#_‫א‬W.*&`Y%&4Et+V‫א‬
. 4‫žא‬u„Ÿ
:`5‫א‬0B_¡:?¬;?B5K"?
٢١
.JP"CDV‫א‬JP‫א‬05‫א‬NB~
.EJ‫א!\א‬E$z}،J‫žא!\א‬K#"€%&žuV‫¡א‬:?.‫א‬0B#L0K(5‫א‬Kc2E‫א‬:8
:`5‫א‬0B_Ÿ;B‫šא‬Q%&žu„MCQ5‫א‬RV?\?(...N?@
.c.&O['?...¡:?.‫א‬.cŠ(;v‫א‬M
Kq‫א‬0P3lzu،−3NO‫?א‬PQ‫א‬0l−J‫א!\א‬i(NK+5'?
.3 l`5‫א‬0B_‫(^א‬5`tBy‫א‬
R‫א‬b+c;$7;‫א(?א‬RNKj;\ TextBox SRsj`B*$d7
.#¨cK9Y%&#¨‫{א‬−H‫א‬%&$
.4(0(5‫א‬LNO‫?א‬PQ‫א‬J‫[\א‬3‫א‬6*4#H‫א‬%&F‫א‬J‫;א!\א‬$3„K$d7
Db2.zip
­(‫א‬4‫>א‬H–;?BK;$0„QKH‫א‬H–!‫א‬rCYR0(5‫?א‬4...H‫א‬H–$DV‫א‬L$
:`5‫א‬0B_N:€?u„
٢٢
.'H?Q‫א‬%&4ƒ'?Ÿ CommandButton . !‫א‬H–H?,%&žu„
K‫אא‬L Action ... ¯=‫ א‬Categories .(‫?‡א‬Kjb^c##4o5
:`5‫א‬0B_*c?(;?B5¡WH–[_"?
.w^c : Application - .(‫?‡א‬
- Quit Application .w^5‫ א‬48:¯=‫א‬
.`5‫žא‬u„Ÿ
.`5‫žא‬uV‫Ÿא‬،N?@tW‫א‬،4oK;$rKc>C‫א‬S‫א‬$H?‫א‬KjNb^
Cmd_Exit .*.،!‫א‬H–.5'?"?zW!‫א‬#_‫א‬L
.!‫א‬CQcA6...H<‫א‬%&žu„M¡:?.‫;א‬v‫א‬0u#
.`5‫א‬0B_¡:?.‫{א‬K%5H‫א‬H–$DVK^‫šא‬QM;v‫א‬
G‫א‬H–'H?Q‫א‬L`#>$SXW%&žu„‫¡(א‬:?.‫א‬J?BSXWJczu5
:`5‫א‬0B_##4o5K!‫א‬
٢٣
.P5‫א‬d7YzucKc,W>$z}
&%&z#[5‫א‬O–$‫א‬C،pq‫א‬x¨4ocH%&>?5@‚WH–DV'?3„K$
About .3 lSb5E‫ž&*א‬uV‫א‬...'H?Q‫א‬%&*ƒM$H–tW‫א‬،­(‫א‬
( H‫א=?א‬RtW‫ Ÿא‬- build events ) - ¯ )tW‫א‬K!‫א‬G‫א‬H–;v‫žא‬uV‫א‬
code builder ) .
:`5‫א!א‬4Db5B"?،NO‫?א‬PQ‫?\א‬E##0l##4o5
MsgBox "Programming By : Ahmed Gamal", vbInformation,
"About"
:`5‫א‬0B_N:NO‫?א‬PQ‫?\א‬E0l3
.K|‫א!א‬H–A6NO‫?א‬PDH/w}‫;א‬v‫א‬
'?ŸSR‫א‬C...*&žu„‫\א‬P*D2M?‫א‬R„KSRDV;v‫?'א‬
Click .¯L`5‫א!א‬b5BŸ،NO‫?א‬PDH/0u_5‫א‬K^‫šא‬Q
Text30.Text = DateTime.Time
٢٤
:0B_‫אא‬CYbKM¡:?¬NK;?B5K;$0-
:"(c;$?Y4"]‫;א‬ED¡:.‫א‬LR?5
‡?V?LNO‫?א‬PQ3‫א‬6*4#4$:−z(5‫{א‬,;8−šE[Iq‫א‬Kc2E‫א‬:8*
.J‫?א&א‬M
NO‫?א‬PQ‫א‬OW*8O?,?‫א‬O+>C‫'א‬o‫?א‬Y‫א‬CYNO‫?א‬PDpq2E‫א‬:8*
.K<‫א‬DV'?Ÿ...K‫אא‬L
Db3.zip
Relationships
%("(;$37$7N:"(‫؟‬JM(‫'א‬k5‫א‬:37$"(;$\?$;$0M
.M&
٢٥
/#‫א‬،O>/01‫אא‬P7:$U>d_eOfO0Ng‫@א‬h‫א‬7,‫א‬80!
.ij‫אא‬P)[‫א‬/#‫אאא‬P‫א‬
:XH9#.„M(‫'א‬k5: w‫¨אא‬U8\?(
.J‫&א‬MO‫א‬6`0Bcwj: 37$
.J‫?א&א‬MPH‫א‬Y8RO‫>א|א‬$L‫א‬H‫א‬BcR: 3Ÿ
GH‫א‬4&0.(EF‫א‬J‫&א‬3K?*Q„3(K37lnB،($ªH
.‫א‬
B‫א‬L‫א‬H‫אא‬bŒ-3l- J&?.IRH$U8 M,!‫;א‬$K;$K$0
.‫א‬H‫&\א?א\א‬4D^‫&\א‬0E&"(;$K،Ol‫א‬0%&
‚WW-0،‚W0wK,0Bx„: O?DK5‫א‬K^0.(E‫א‬:8
.\‫Ÿ›(\א?א‬0'(‫(\א^א‬
.^‫&\א‬،\‫&\א?א‬HBEd7B
.O?=‫א‬R)J¯+$Ž(K‫א‬C4D،‫א‬H\>$^\J\‫?–א‬3„K$d7
.N:z}"C+!‫šא‬Q0M
m#!‡?V?‫&א‬- 3X<6- ¡W[B) xc‫א]?א‬c?( lL"C=‫?‡א‬V?{„5K7H
."C=‫א‬.&%&3‫א‬zu,37l
0.(KF‫א‬E_‫‡א‬Dx§?‫žאא‬D.4KQ§?‫א‬%&>?5jJ&MK;$ŠQ
.‡Q‫;א‬B4D
R)"CŒ- \?B%5$- 3KK'?c;$Ž(K‫א‬C4D... ‡D"CŒ3lE_‫א‬2M‫א‬:8
.‡Q‫אא‬CYU8;?.5KKC‫א‬Q§?‫א‬
*;?(5‫?;א‬Q§?‫א‬3Xc"C@"?‫"א‬C\P.D،JM(‫א‬RNCEš!‫א‬B
- .N:Lb}E‫א‬:8žD3(€–
RelationShip .JM("(K'k5¦DN:L5
:,‫א‬2‫א‬%
٢٦
.N‫א‬N‫א‬7,
: One To One - ‫א‬29‫א‬
.l‫א&א‬L*K‫א‬0PX‫א&א‬L0P0B;$O?M(‫א‬rCYL
: M,!‫א‬J&M.VM(‫א‬rCY%&Ol
H- '‫א‬D- M^‫א‬MH( k_‫א‬M^‫א‬.V\?6?‫א‬J?(‫א‬DV‫א‬K$ŠQ
)M^‫א‬
،O|‫אא‬CYP{Ed7B،O!‫א‬O|‫א‬U8#O?=‫א‬rCYDV‫א‬R^5
.2M?‫א‬K<‫א‬ u5DžD M,!‫א¡אƒ א‬k5‫אא‬:8`5
..k„‫א‬J‫?א&א‬MR4oK*B^‫א‬c&MRN:4oKH
H- '‫א‬D- M^‫א‬MH( 5‫א‬O?=‫א‬%&>?5@K6O6 _'?;:8
) M^‫א‬
PassPort - BClass - From
.|‫א‬3^‫א‬H0l~>C‫א‬0=‫?א‬Y‫` א‬#%c
:`Y#*ž‫אא‬0=‫אא‬CY
.|‫א‬L3‫?\א‬6?;?BK;$*
) .S`l‫א‬MHO!‫?;א‬BK;${KD( |‫א‬L3^5*&?;?BK;$*
.0E_‫א‬bK7%5) HB5K7;$%(( KDM%&>?5@;$*
. ƒ!‫_*א‬cO.57›l‫*_א‬W7y‫א‬0'k5;$R^57$O?‫א‬C
) .*4_5z}( KDM%&>?5+*$E:!M‫א‬0?Y0b$;¦DNC
،Primary Key `XHm5Q.E*&w‫א‬O|‫א‬U8Number 0DV;v‫א‬M
.bj.E‫>א‬$$Tb_R1 ‫א‬2jO|‫א‬dQŒM
) .l`J" ‫ (א‬7
:kN‫א‬7,
: One To Many - )[‫א‬29‫א‬
.`l‫א‬O|‫א‬LJP&?.I`X‫א‬O|‫א‬L0P0B;8O?M(‫א‬rCYL
.w‫א‬GH‫א‬L*_.MC‫א‬Ol‫א‬N:Ol
B، Q‫א‬O6L‫א‬0P];?BK;$B~A^‫?&א‬.I;$P5Ol‫א‬2o7?
) .‫א‬H‫א‬J‫ (א?א‬ Q‫א‬O6LW-0PlE$‫ )א‬0P( b^;?BK;$B~7
٢٧
.`5‫*א?‡א‬ Q‫?א‬Y‫א‬CY
:5‫א‬O?=‫א‬%&>?5@Tb_R2 ‫א‬2j›ŸO6 _M‫א‬C
Year - Books - Students
A^‫א‬- b5B‫א‬- ‫א‬
0=‫?א‬Y;?B›Year ‫א‬2jTb_Main O!‫א‬O|‫א‬LK60DV‫א‬B~
.|‫אאžא‬
G‫א‬H<žu„MŸ،- Design ) .c( %&žuV‫Ÿא‬،O!‫א‬O|‫א‬%&žu„M
- Insert Row ) .x,¡‫א‬H\‫ (א‬%&žu„MŸA?^‫;א‬B‫א‬LK!‫א‬
) .‫א‬H‫א‬ Q‫א‬O6( `l‫א‬O|‫א‬L`XHm5QYear 00(1;$šc73„K$
.3‫א‬k5‫א‬lE!‫`א‬YJM&‡?‫אא‬CY***
:7
:mno7
:m7,
: Many To Many - _[‫א‬29‫א‬
‫؟‬w‫א‬GH‫א‬L4c\H$F‫א‬5‫א‬H(‫א‬EC5c0Y
J‫ (א?א‬ Q‫א‬O6LW-0PlE$‫ )א‬0P( b^;?BK;$B~7B
) .‫א‬H‫א‬
.›l‫א?‡א‬%&M;?B¦D) 7( –$‫א‬:8
:M(‫א‬rCYOl
:`5‫א‬d¦DJu‫א‬%&>?5@376x„;$\H$?
.ulE$*;?BK;$‫א?א‬Sk_B~*
.Sk#lE$&\?6?;?Bc;$‫א?א‬uB~*
:.YK‫אא‬L6K3l.D،žO6U8¡5¦DJM(‫א?&א‬rC4'
.?B‫א‬- ?‫א‬
$1 ./2 W3 -
٢٨
`4 :Ju`l‫א‬
7I>‫א‬- ?‫א‬
(‫א‬1 K<±7‫א‬2 Q‫א‬3 (‫¯א‬+5K$;$%&0`BD،‚k#!‫א‬Ju‫א‬M(?4DLVy‫א‬O|‫א‬$
>$`¯+5K7.،¯l‫¯א‬+5DW$،Q‫א‬./¯+5K.D،K<±7‫א‬
:`5‫א‬O|‫א‬0B_"?¦D! u
7I>‫<?א‬- ^bE‫<?א‬
1-1
1-2
2-3
3-1
3-2
3-3
:wD‫א‬Ol‫א‬L.E{KO‫א|א‬%&JK(5‫א‬i(;v‫?'א‬
Db4.zip
'5K€6?c،O|‫א‬JM(‫;_ א‬v‫א‬$Q5k‫?א‡א‬7‫א‬D((;v‫א‬
:NC
.JM(‫א‬H/wK€&*
.0=‫א‬SXWL\?6?‫א‬Data Types J‫?‡א‬L\?6?‫א(­א‬wK€&*
.U7‫א‬K^‫'א‬k5"?
٢٩
M(‫;א‬$ECc( k_‫א‬M^‫א‬J?(O6 M,!‫א‬O6JM(‫;¦_ א‬v‫א‬$
One To One ) .‫א‬U8‫?‡א‬
}HD##4oc"?) JM&( Relationships - tW‫ )א‬J‫\א‬$( Tools - .XM
0B_N:،O‫א‬6H4§8Show Tables - tW‫א!~א‬G‫א‬H<žuV‫א‬- ... 3V‫א‬tD‫א‬ :`5‫א‬
Close - tW‫ א‬457‫(א‬،DV‫א‬Add - žuV‫א‬Wv‫?א‬c3‫אא‬O‫א|א‬H5WM;v‫א‬
:`5E0B#N4o، }8
٣٠
- Edit Relationship . M&KjtW‫א‬،JM(‫א‬Relationships - .XM;v‫א‬
Create New .4tW‫א‬##N4oc"?
:`5‫א‬0B_K6##N4oc"?
&?YJ3‫א‬H;?B>C‫א‬O|‫א‬tW‫א‬Left Table Name ,WL
Tb_Main
Tb_R1tW‫א|< א!~א‬L
`X‫א‬O|‫א‬3^‫א‬H;?B>C‫א‬0=‫א‬tW‫א‬Left Column Name ,‰
NumberH5k‫א‬C،
Number .?Y3„K$0=‫?;א‬B~!‫א|< א‬L
:`5‫א‬0B_N:
:`5‫א‬0B_##N4o5Ok H–%&žu„;v‫א‬M
٣١
.#_‫א‬0Q!‫א|< א‬LM(‫?‡א‬H?4§d7
:H5W7‫א‬H‫א‬H–!$
L0OW\‫א‬%&'k5‫א‬RKc2E‫א‬:8\jH‰‫אא‬CYL: O!‫א‬H5Wy‫א‬R1 .O!‫א‬O|‫א‬Lzo*;?BK;$;\`l‫א‬O|‫א‬
zuc&`l‫א‬O|‫א‬J›Kj;E‫א‬:8\jH‰‫אא‬CYL: `l‫א‬H5Wy‫א‬R2 .`X‫א‬m5Q‫א‬0M
&`l‫א‬O|‫א‬J"CKc2E‫א‬:8\jH‰‫אא‬CYL: ›l‫א‬H5Wy‫א‬R3 .`X‫א‬O|‫א‬L0P‫šא‬Q"C
Q5‹‡‫!?א‬J‫א‬HW¯Ÿ4) p‫ (?‡א‬Join Type - ‫א‬2jW-H–sY
.p‫א‬
N:|‫א‬M(HH?4§d5) . _8( Create - H–%&žu„M;v‫א‬
:`5‫א‬0B_
٣٢
'k5"?5‫א‬M(‫א‬LOne To One ... ‡?U!‫א‬M(‫_[א‬$M;?B‫א‬C4
.­(‫א‬
;$%$... rHK%&\?6?‫א‬+ &‫א‬Tb_Main U8bY:‫א‬M(‫א‬rCY0.&E[5
:`5‫א‬0B_‫א‬NK4oK
TB_Main O6U8*P5"?‫א‬C... ‫א‬H‫א‬,‰‫א‬M(‫;¦_ א‬v‫?"?'א‬
N:،Lookup Wizard H5®Year 0=‫א‬U8bYCŸDesign žu„
:`5‫א‬0B_
R„;$K'$،M&*([_376H5®;$KE‫א‬:8.DzT4oc##O$
.`5‫א‬%&žu„O!‫?א‬Y`V‫א‬tD7‫א‬H‰‫א‬st"?... M
Tb_R2 .H5k،*(M& _8K>C‫א‬O|‫א‬H5W‫א‬b^c"?5‫א‬#_‫א‬
٣٣
H5®"?... O|‫א‬L4oc;$]KF‫א‬O?=‫אƒ א‬b^K"?ll‫א‬#_‫א‬L
:`5‫א‬0B_N:Year
.`5‫א‬%&žu„Ÿ
‫א‬C،rtW‫>א‬C‫א‬O|‫א‬L3\?6?‫א‬H5k‫א‬0=‫א‬J4oK"?5‫א‬#_‫א‬L
.`5‫א‬H5®"?
H5®،*&?Y%&*Et،M(‫א‬4oK;$*K>C‫א‬0=‫אא‬H5®"?3‫א‬zW$
. 48Finish ##w}$Ÿ،dQ=M... M(‫א'„žא‬0M37$dQ@;$7O|‫;א‬$sqk
..5‫א‬
NB¦.XML`l‫א‬O|‫א‬MH?4§d7Year 0=‫א‬tW‫א‬O|‫א‬0u_5M;v‫א‬
:`5‫א‬0B_N:... #4H5W7‫א‬
٣٤
‫א‬rCYU8;?.5KKC‫א^א‬R)N4o+ &‫א‬Tb_R2 O|‫א‬tW‫א‬3„K$
:`5‫א‬0B_N:
N4oK"?... w‫א‬GH‫א‬L4u_5.MF‫א‬JM(‫א‬##%&o`"?3‫א‬zW$
:`5‫א‬bKM0B#
‫א‬GH‫א‬JK?5/R)U8DV‫א‬JM(‫א‬R)%&>?5@wD‫א‬x‫א‬
Db5.zip
٣٥
.J‫?א&א‬,‰‫א‬J.(‫א‬i(%&GH‫אא‬CYL"(5
( Import & Export ) .!8‫א‬p‫א‬q-‫>א‬:
: SB%
:p‫א‬q-‫א‬
...46HWJ‫&א‬MU8J?(b6\‫א‬z5y‫א‬.(
( tW‫א‬4- Get External Data ) 6HWJ?(b6( tW‫א‬File x.XM
- Import )\‫א‬z5‫א‬
.=‫א‬J‫&א‬Mk%5Bx>$tW‫< * א‬6\‫א‬z5‫א‬KcC‫א‬x‫א‬tW‫א‬
:`5‫א‬0B_{5#_‫א‬R?5- Option ) J‫א‬HW( %&žu„M ##N4o5
- O‫א‬6( B... r\‫א‬z5‫א‬K>C‫א‬J‫&א‬Mn?5/‡?H5®>?(‫א|< א‬L
..X‫א‬O6>$tW‫א‬Tables )
R) 4±( Y\H?5;$KF‫א‬J‫א‬H5W7‫\א‬O!‫`א‬QD0Q!‫א‬LF‫א‬J‫א‬H‰‫א‬$
.J‫&א‬M
U8DV‫א‬O|‫'א‬$žD`..c EO|‫\א‬H?5;$KE‫א‬:8\x5‫א‬L
.*W‫א‬J‫א‬
.'(5E$OPE\‫א‬z57‫א‬KE‫א‬:8\.‫א‬L3‫א‬zW$
.O‫א|א‬.XM.VO|‫א‬H?4§d7wD‫ž?א‬uV‫א‬
٣٦
J%&0K(c>$;¦D=‫א‬rCYL،rF6‫א‬p‫א‬qB‫א‬p‫א‬qB‫א‬C7Z7
g9
.O|‫א‬4"„‫א‬J‫&א‬M%&šB(K"„‫א‬O|‫א‬
- Link žcO6( Ÿ- Import ) \‫א‬z5‫ (א‬tW‫א‬x.XM‡?‫אא‬CYH5W7
Table ) .
J‫&א‬MO|‫šא‬QLzu5‫א‬d7*cLO&... O|‫א‬tW‫א‬K^‫šא‬Q
.l‫א‬
:!8‫א‬
žuV‫א‬J‫&א‬MO6K+5M;v‫א‬... ‫א‬.(- 3- B(‫א‬.(‫?א‬Y
- Export ) .Kc( tW‫א‬x.XM%&
... 48K5‫א‬KF‫א‬J‫&א‬M4D\j##4o5
J‫&א‬MLH‫א‬O|‫*א‬.@;$KcC‫א‬y‫א‬OW\‫א‬Nb^c##4o53‫א‬zW$
.wD‫Ÿא?א‬،*&O|‫א‬JKcH5Wy‫א‬NB~.E،‫>א‬$tW‫א‬... Nc
.4DK|‫א‬O|‫א‬H?4§d7l‫א‬J‫&א‬M{5D‫א‬
Tools Bar .‫א‬p‫א‬7:3
:4J‫?א&א‬.4‫א‬J‫א‬H‰‫א‬K(‫א‬%&.X‫א‬rCY>?5j
Database Utilites .‫א
א‬0(
#‫א‬p%1 Convert DatabaseJ‫&א‬M0K?j?YO!‫א|< א‬... ;5.& <|‫אא‬CYL.4K
NB~*$d7B... šE$J‫א‬H,‫א‬U8Nc&M0K?jH‰‫אא‬CYN{5K
.?¥‫א‬k‫ א‬Lzu5‫א‬
7F‫א‬NO‫?א‬PQ‫א‬LData Control R0(5‫&א‬3l,‰‫א‬rCY0l¡5
Access 97 .RU80(5c
Compact and Repair Database .J‫?א&א‬Mm,8žuV?Y`l‫א|< א‬
:XHJ.4¯l'?K>C‫א‬H5Wy‫אא‬CYU8nW$tD0E¡5
٣٧
dQK€›KjwK€&N:،u,$4.P{K›ŒJ‫&א‬MJžuV*
.MK€U8J?(‫א‬
.JK?5¥‫א‬bcc\&‫א‬wK€&J‫&א‬MJU8O?,?‫\&א‬K–*
3l40E_‫_[&&\א‬cMF‫א‬J‫&א‬ML¯jMF‫^ א‬W!‫א‬m,‫*א‬
.‫א‬CBY... J‫&א‬M }‫–\;א‬4|‫א‬ }‫א‬
.%„.D- 3KY§- YDCF‫א‬JP‫"א‬CŒ'?K*‫šא‬c7*
Securty .Q%2 žuV‫א‬Open {5D$OWN:Exuclusive ... K^J‫&א‬M{5DU8¡5
:`5‫א‬0B_N:Exuclusive tW‫{א‬5Q‫א‬H–b²zu‫א‬#¨‫א‬%&
.Yzuc&.ERVNB~N:(
TSQL
?H?J‫?א&א‬MR)R0.(c'(57‫א‬0);‫›א‬،.Y‫א‬lE!‫?א|< א‬Y‫א‬CY
R'k5c3„K$ Asp OWNO‫?א‬PDL4k5.E،3‫א‬6QQ€JD5W‫א‬R
.3 „K‫א‬Yz}\?6R0.|‫א‬rCY4#!Y ^5"?،3KcK^‫šא‬Q.Yz}
٣٨
‫ ؟‬SQL `Y
Structured Query Language .OH5W‫א‬.B‫א‬rCY
: Oracle - Access - MS J‫?א&א‬M‡‫?א‬$R)R0.('(57‫א‬c{c
.Yz}sql Server
0K(5‫"א‬C=‫א‬DV7‫א‬L3„K$'k5c4$78−RX#?Y.E−›+.|‫א‬rCY'?c
.N:z}H‫\א‬7‫א‬4B+5‫א‬.J‫?א&א‬M%5O‫א_ א|א‬
‫š؟‬E$L'(5y‫א‬0)b5B5K$
Forms .$ Table 4H5TEF‫א‬.X‫ א‬Quires J(5‫א‬tW‫א‬
Ceate Quriry In Deign Viwe .tW‫א‬
- Close . }‫א‬tW‫א‬...##N4o5
:`5‫א‬0B_N: Union tW‫Ÿא‬SQL Specfic tW‫ א‬Query .XM;v‫א‬
.'(5y‫אא‬$4Db5BF‫א‬#_‫`א‬YrCY...}HD##N4o5
bP(5‫&א‬3„K$...'(5y‫א‬dQU8<K<‫אא‬CY;‫‚א‬3‫<א‬H±#_‫א‬%&$L
('(5y‫א‬CQ)Ž(c
:`5‫('א‬5y‫א‬5B'?"?
Select FName From Tb_Main;
٣٩
!!!w‫(Žא!א‬K‫א‬:m_"?Dwc7
&%&žu„'(5y‫א‬CQcA6...NK>C‫א‬7‫א‬2j*oQ‫א‬dQ%&žuV‫א‬
##5=‫א‬LN4oc;$%$...'(5y‫אא‬%&žuV‫א‬#_‫א‬w}$3„K$...bP(5‫א‬
:NC*#
−.5‫)&Šא‬tW‫א!~א‬G‫א‬H<7‫א‬%&žuV‫א‬....5‫א‬#_\?(3„K$
.\?B‫א‬5E##4o5(Design View
db6.zip
s%Ft‫א`_א‬uv>
SB%\\،'(57‫א‬0)0QcL$;v‫א‬
: (‫א‬u‫`א‬YrCYSelect .
Select Colums_Name From Table_Name;
: ‫<א‬6$(H$'(5y‫?;)א‬Bcd
TSQL .0)Yz}&›+‫<)א‬F‫`א‬YSelect :
.4oK;$*Kc>C‫?\א‬.(‫א‬$0=‫אא‬Colum_Name :
TSQL .0)`MLzu5c›+‫א‬.²,Wu,3„K$`YFrom :
.O|‫אא‬b5BYTable_Name :
٤٠
) Syntex :K?+‫*)א?א&א‬5.cB~%& ‫א‬0Mow
.zu‫א‬zB‫א!"א‬ D>$6?K7*
.DlE["t(K7:^$_&=;5D=D*
nW!‫א‬p‫א‬q‫א‬i(LNO‫?א‬PQ‫א‬L$78‫?€؛‬,Q'(5y‫א‬0)R)`45c*
.48¡57
w‫א‬Ol‫א‬%&ow
: SELECT FName FROM Tb_Main;
Tb_Main .O|‫א‬O!‫א‬7‫א¡א‬k57 Select )k5‫א‬$d7
`5‫א‬0B_N: M,!‫א‬RM‫א¡?א‬k5‫א‬B~H?‫א‬rC4
SELECT Site FROM Tb_Main;
.`M‫א‬R‫א‬CBY
3l.D،,Q‫א‬40Qc`‫?א‬54(VB.D\?.&lE$¡‫א‬k5‫א‬KE‫א‬:8
: zW!‫א‬y‫א‬O!‫א‬y‫א¡א‬k57
SELECT FName,LName FROM Tb_Main;
: `tBy‫א‬Kq‫א‬.(‫א‬O!‫א‬y‫א¡א‬k573l
SELECT FName, Age,EMail FROM Tb_Main;
: `5‫א‬0B_N:O?=‫אƒ א‬0/*R„¦DJ‫א‬R)¡‫א‬k57
SELECT* FROM Tb_Main;
RO!‫א‬y‫א¡א‬k573l.D DISTINCT ... 'k5H‫א‬Bc;BJ‫א¡א‬k57
: H‫א‬B5‫"א‬C
SELECT DISTINCT FNAme FROM Tb_Main;
:!‫'א‬k53–c$3K&c6k‫א‬J‫א‬bct3„K$
ORDER BY colum
>&5$
ORDER BY colum DESC
: O!‫א‬y‫א‬b>&5‫א‬bct‫א‬RJ‫א‬R)¡‫א‬k573l.D
٤١
SELECT * FROM Tb_Main ORDER BY FName DESC;
bbct3l.D،,Q‫א'א‬k5N:−RX#?Y.E−bctK?50.&B~
: ‫א‬rCY3–cBzW!‫א‬y‫Ÿא‬O!‫א‬y‫א‬
SELECT * FROM Tb_Main ORDER BY FName,Lname ;
: `5‫א‬0B_N: As 'k5¦D MyName %.2jO!‫א‬y‫א¡א‬k573„K$
Select Fname as MyName From Tb_Main;
.O‫א'אא‬k5'(57‫א‬J.&L37 As Q5
_&\K< M,!‫א‬H.&$¡‫א‬k573l.D،›+‫א‬0)%&^‫א‬J.(‫א א‬6‫א‬3„K$B~
:J‫?א‬
SELECT Fname,Age+10 as Age2 FROM Tb_Main;
.r&3ƒ‫*א‬R„K"? Access ;¦D78pc‫א‬0=‫א‬.c\&‫א‬U8^„cN$d7
: zW!‫א‬y‫א‬RO!‫א‬y‫א‬p3l
SELECT Fname+ " " + LName As CName FROM Tb_Main;
'(5y‫אא‬$R€_‫א‬0.|‫א'א‬k5‫א‬
.VK‫א‬J(‫אאא‬0('‫א‬k5‫א‬
:5‫א‬u‫('א‬5y‫א‬.&L_E‫א'אא‬k5‫א‬u,CW[c
Select * From Tb_Main Where Field = Value;
= .3 (€<>$>=$<=$>$<'‫א‬k5‫א‬B~
Between . Like .Y37‫;א‬:¦4_\6(3‫א‬zW$
: ١٨YH.&$>c>C‫ א‬M,!‫('&א‬53l.D
SELECT * FROM tb_Main WHERE age = 18;
:٥٠u,$Y ƒ$Š(
SELECT FName,LName FROM tb_Main where age < 50;
٤٢
›+−`5‫א‬0B_N:3,?2EL\QScF& Value R„
) : $)y‫]א‬KC‫‚א‬k#!‫&א‬
SELECT * FROM tb_Main WHERE Fname = 'ahmed';
4B،J‫&א‬MLœKH5l$6?c7،œKH‫?א‬c&›+‫&א‬#F&R„.E
: `5*4#u,CW[c
Select * Form Table1 Where Date > #12/03/04#;
:‫)א‬Lr.(ci(p;v‫א‬
F‫ א‬Name ‫א‬2j3K?I3–cbctO|‫א‬zW!‫א‬O!‫א‬y‫א¡א‬k57
: ١٧qE$.(‫;א‬$#wj
SELECT Fname & " " & Lname AS MyName FROM tb_Main
WHERE age > 17 ORDER BY FNAME, LName DESC;
‫؟‬ix5‫א‬Gh]0w%N%%Gh7
:m]0`_`‫א‬p<%‫א‬V:Qj‫א‬
.^‫א^א‬J(‫'א‬k5Šu‫אא‬CY06$
:3 ‫א‬k5‫א‬lE!‫א^א^א‬J(‫?&א‬K
false .`M‫א‬3++,D^‫;א‬EL True ++,.M`^(cAnd :
false .`^(K*¦D783++,D^‫א‬$;EL True ++,.M`^(cOr :
: 6<5‫??א‬BK7$_١٧&Y.&qBKKC‫‚א‬k#!‫›&א‬+،RKOlU8;v‫א‬
Select Fname from tb_main where age > 17 and marry = false;
:`tB‫א‬K4Kš١٧&YH.&$K<cKC‫‚א‬k#!‫א‬D(K$3„K$ŠtQ
،‚k#!‫א‬i(`tBy‫א‬Kq‫"א‬CŒMJ‫&א‬M0u_5MOl‫א‬A1;$0M
No .KW´ No Mail .Ei(b5E‫א‬
: `5‫א!א‬o‫;א‬v‫א‬
SELECT * FROM Tb_Main WHERE age>17 And (Email='No'
or Email='No Mail');
٤٣
:.|‫א‬rCY;v‫א‬0Q
.١٧qE$.(‫ א‬: Age > 17 : O!‫*א_א‬
No ..E%&>?5@`tBy‫א‬Kq‫ א‬: Email = 'No' : `l‫*א_א‬
No Mail ..E%&>?5@`tBy‫א‬Kq‫ א‬: Email = 'No Mail' : ›l‫*א_א‬
Or . And ^‫א‬J(‫?&א‬k5‫א‬
Or 4pcKC‫א_€א‬$wjo5K*¦D(١٧qE$.(‫)א‬O!‫א_א‬wj%5
.
.z(5‫אא‬C] True .Mw@>C‫א‬0P‫(Šא‬KY&
cFF]!yC
UV،(N‫א‬7>uP Or And .‫א‬b‫א‬9
S‫<א‬NC$K4‫א‬0M
.7``J70!z{‫אא‬
Like .6‫א‬.‫א‬b‫א‬
... (z(5*4_‫א‬J.B‫›&א‬+ Like 0(‫'א‬k5
: 5‫א‬u‫ א‬Like 0(.'k5
Select * From Table Where Field Like '*Name*';
..4E$،K4‫א‬$،K‫אא‬L4k5M..."$\?6%&7*'k5
:l!‫א‬L!‫„{א‬5
‫א‬C4'(5‫')א‬k5‫א‬C hm ... %&U!‫א‬Y ƒ$>?5jMKC‫‚א‬k#!‫(Šא‬
:0B_‫א‬
SELECT * FROM Tb_Main WHERE FName like '*hm*';
: ›+‫א‬.E0M*R„‫א‬C A "ŒY ƒ$$cKC‫‚א‬k#!‫›&א‬+‫\א‬H$?$
SELECT * FROM Tb_Main WHERE FName like 'A*';
.K4‫\;א‬K‫אא‬L*R„("Œ4ƒ‫`א‬45KKC‫‚א‬k#!‫›&א‬+‫\א‬H$?
* .37٪'k5 MS SQL Server L*
٤٤
‫&\א="؟‬Kj\H$?‫א‬:B،"=‫>&\א‬$Ž(c*;$p55w¶
.K‫אא‬L›+‫א‬GH\LYE:F‫'"؟"א‬k5?=‫א‬rCYL
\&;?BK;$_ A "ŒY ƒ$$cKC‫‚א‬k#!‫›&א‬+;$\H$?‫א‬::;:8
.žD٣4D
SELECT * FROM Tb_Main WHERE FName like 'A??';
%&>?5@›Œ‚k# Address ;‫א(?א‬00K(cA6.3`(M‫א‬OlU8;v‫א‬
.K.DV‫(?א‬lE$
0Y Like . _‫א‬wK€&‫א‬K;?BKKC‫‚א‬k#!‫א¡א‬k5‫א‬R^5=‫א‬rCYL
‫؟؟؟‬xE"(c
Between .6‫א‬.‫א‬b‫א‬
›+‫א‬L*‫א‬k5‫?א‬Y0(‫אא‬C]O.(5‫א‬4#$،( ^.V›+0(‫אא‬CY'k5
.œKH‫?א‬5‫א‬.V
:5‫א‬u‫ א‬between '‫א‬k5›+‫א‬CW[K
SELECT colum FROM table WHERE field BETWEEN v1
AND v2;
:٦٠٢٠YH.&$m‫א‬tcKC‫‚א‬k#!‫א¡א‬k573l.D
SELECT *
FROM tb_main
WHERE age between 20 and 60;
.O=‫œ^(א‬KH‫?א‬5‫א‬، ƒ!‫א‬RK^‫šא‬Q'‫א‬k5‫א‬B~
٤٥
.J‫?א&א‬MLO‫"א|א‬CDV‫¯&א‬+5›+‫?א‬6&35M¸?;v‫(א‬5
:`5‫א‬0B_N:fE‫א‬u37$$
CREATE TABLE tb1 ( colum type, colum type,........);
‡?Namey‫א‬:%&>?5@Tb2‫א‬2j376¹_...N:%&Ol.E
:Number‡?AgeWv‫(א‬String−S)
CREATE TABLE tb1 (name text,age number );
\&RV;:8...žDJWš.ºName.(‫א‬0P\;$\H$?‫א‬:;:8
:`5‫א‬0B_N:Texts7‫א‬J‡?(cR?MJ‰‫א‬
CREATE TABLE tb1 (name text(6),age number );
AP...Null−©‫א‬D0K70=‫א‬0(±xE`YO‫א_ א|א‬L4#[^W :3„K$y‫א‬ROl‫אא‬CY
CREATE TABLE tb1 (name text(6) Not Null,age number
);
:3‫?א‬cr _¦.M>C‫א‬O|‫"א‬CŒ'?K\?B‫אא‬CYRM‫א?א‬L...\1‫א&א‬:B
DROP Table tb1;
٤٦
\?B‫א‬W-U8CASCADEDV4lKjDJM(3^cO|‫אא‬CY;E?
:`5‫א‬0B_N:
DROP Table tb1 CASCADE;
.3‫\א‬I*&0.("?!*DC(O|‫_[א‬c;$%c7
&MO|‫א‬ Q‫;א‬$5&$− _7‫א‬.&(N:*80N7Y‫א‬L$;v‫א‬
.−3+V‫{א‬,$O?=‫א‬J‫א‬
:5‫א‬K^&uO?=‫א‬DV‫א‬R^5
ALTER TABLE tb1 ADD colum type;
.(%l$−E:)‡?‫`א‬l‫א‬،\‫œא‬KHc?YO!‫א‬:KK6x„D
ALTER TABLE tb1 ADD birth_Date date,Gender Text;
.Ex„3.X‫\א‬$d7...Gender0B01‫|א‬N%\`9;v‫א‬
:`5‫א‬0B_N:،−Y\?6OL−JM(‫›א‬K+5CASCADE
ALTER TABLE tb1 DROP gender CASCADE;
٤٧
،*&‫א‬$APOPETb_Main'k5"?،,/#‫א‬7Y‫(א‬5"?;v‫א‬
:DVy‫א(!א‬u‫א‬U8;v‫א‬
INSERT INTO table VALUES (v1, v2,......);
F&‚?‫א‬RV&‫א‬R،,D40Qc`l‫א א‬H‫א‬3‫אא‬H.$d7
.##F&œKH‫?א‬5‫""א‬Sc
Kq‫א‬−;‫א(?א‬−.(‫א‬−xc]‫א‬MH−zW!‫א‬y‫א‬−O!‫א‬y‫א‬−M‫א‬:5‫אא‬H.
.Jo−7/¡<5−RM?‫א‬−u‫א‬−‫א‬−`tBy‫א‬
:`5‫א‬0B_N:
Insert into tb_main
values(11,'ahmed','gamal',6666666,18,'Cairo','Hammada2
091','First Year','','',false,'');
;$0EL&b6‫א‬C−*.MHB5c7−3‫א‬3M‫(א‬6$?YB_4‫?א‬c
.ERV١١MH‫א–א‬A6šE!‫א‬OWBN:B~3I...M‫א‬zu
:`5‫א‬0B_MyNumber
Insert into tb_main
values(MyNumber,'ahmed','gamal',6666666,18,'Cairo','Ha
mmada2091','First Year','','',false,'');
RV.MyNumber.MOW\‫א‬Nb^cHN4o5'(5y‫)א‬CQcA6
.O|‫א‬L45DV‫א‬5K"?HB;?Bc7$_.M
٤٨
:o*
.›+7‫אא‬CE..NO‫?א‬PQ‫א‬Lzu5*šE!‫א‬L <|‫אא‬CY;8
:5‫›א‬+‫)א‬EC5c0Y
;'Select * From Tb_Main where name='ahmed
:`5‫א‬0B_MyName3‫א‬zu5RVAhmed0K<c;$A6
Select * From Tb_Main where name = myname;
...*&›+‫א‬Lb}c.D3.BjN^(K‫א‬CY
:!‫א‬
:`5‫א‬0B_0PJ0K(5(‫א‬u‫א‬
UPDATE table_name SET colum1 = v1 , colum2 = v2
WHERE colum = v;
*ƒ‫>א‬C‫א‬Sk_www.vb4arab.com=RM?‫א‬٢٨=.(‫א‬0(|37l;v‫א‬AP
:(Gamal)zW7‫(א‬Ahmed)O!‫א‬
Update tb_main set age=25 , site='www.vb4arab.com'
;'where fname='ahmed' and lname='Gamal
:`5‫א‬Ol‫*א‬4_KRX#!‫אא‬CYRM‫א?א‬L.0PlE$0._K!‫;א‬E?‫א‬:B
٤٩
Update tb_main set fname='Ahmad' where
;'fname='ahmed
3„K$'k5K;$B~.E،(‫א‬u‫א‬R3,?W ƒ!‫?א‬5Ol‫אא‬CY0l'k5KM
.‫=א‬${K3l.D،›+‫א‬J.&L<.]‫א‬zŸ[c0YP5
!*#$RVB~،_‫א‬R„=‫א‬rCYL...J‫א‬zu5‫א‬.(c\H$?‫א‬:B
:J‫?א‬٥H.&!‫\א‬K<`5‫א‬
Update tb_main set age=age+5;
bc‫א‬H\K<'k5K3l.D...JE_‫א‬J&‫?א‬ML3&?#‫א!א‬lE$!‫אא‬CYq5(K
.(*$*5Ÿ\K–;?Bc;$B~)(Q§?‫א‬
:`5E&u,›+‫)א‬Ck5cRM‫א?א‬L...\1‫א&א‬:B
DELETE FROM table WHERE colum = value;
R)"C"?`5‫א‬Ol‫א‬L..#lE$wjzŸ[c2j"C=‫?;א‬BK;$B~
:(H!‫&א‬YH.&$K<cKC‫‚א‬k#!‫א‬
Delete from tb_main where age>40;
:K^‫`א‬YrCY...f!}$\N&‫א‬:B
٥٠
DELETE * FROM table;
.,B‫א‬P‫אא‬
(c،@،'‫א‬k57‫(א‬X#`Y،'(57‫א‬0)J€.VO‫אא‬K(‫'א‬k5c
.GH‫אא‬CYOWl!‫א‬i(RO‫אא‬i(%&"(5−O6(c7−.M
:`5‫א‬0B_‫א‬CW[cF‫א‬O‫א'אא‬k57(‫א‬u‫א‬U8(Koo
SELECT func(colum) FROM table WHERE condition;
:AVG7‫אא‬
3‫א‬$b5B3lJ‫&א‬MLH.&!‫?žא‬5A=،0ž?5‫אא‬rCY^(c
:`5E
Select AVG(Age) from tb_main;
R.±›JP‫א‬R)%&HE،‫אא‬rCY'k5ª?0(Q‫א‬:0k5c;‫א‬N
.−3I−‫א‬CBY`5‫א‬U805Ÿ0P0E'MH‫א‬
YH.&$K<c7KC‫‚א‬k#!‫א‬H.&$ž?5A=3l.D..._‫א'אא‬k5‫א‬B~3„K$
:٢٥&
SELECT AVG(Age) FROM tb_main where age < 25;
−M‫א‬C...*#$Expr100‫א‬2j0L4oK‫אא‬pc;$J6?2o7?
:`5‫א‬0B_3.(c.EAswK€&pc‫א‬0.c\&−Kc2E‫א‬:8
٥١
SELECT AVG(Age) as AVGAGE FROM tb_main WHERE
age < 25;
...}HQ‫א‬JP‫א‬0YP5c"?‫;אא‬$d7
:Sum,Max,Min‫אא‬
&ML.&qE$%&Ol‫א‬CY،`‫?א‬5‫א‬%&u,!‫א‬−qE!‫א‬−‡?.»‫א‬O‫אא‬rCY`^(c
:J‫א‬
SELECT max(Age) AS mxAGE FROM tb_main;
.'(5y‫א‬.(#RVB¦;$šc7
:Count7‫אא‬
0.(c7`4Dll‫א‬H?‫א‬$...šE$R0.(c;cH?,]JP‫אא&\א‬rCY(c
:šE7‫א‬%&
4D3}HD0=‫אא‬CYBKªF‫א‬JP‫(&\א‬c...(Count(colum:U!‫א‬u‫א‬
.
.7'$}HD2E‫א‬:8U8o‫\;א‬JP‫(&\א‬c...(*)Count:l‫א‬u‫א‬
RJP‫?'(א‬c›)COUNT(DISTINCT Colum:ll‫א‬u‫א‬$
.4HB‫א‬0Y1
:l‫א‬u‫א‬%&37l
Select count(*) From Tb_Main;
٥٢
.(‫א‬.(#RVNB¦;$šc7
,
9!2E?‫א‬:،;v‫א‬TSqlL4#lE7‫א^א‬O‫אא‬i(rCY2E
.a>
:‫א‬Pc~
N:,‰‫א‬k_‫א‬M^‫א‬J?(%&O?=‫א‬K...=‫א‬rCY0lL
.−`l‫א‬O|‫א‬L06?K7*$d7−Tb_R2
SELECT tb_main.Fname, tb_main.lname,
Tb_R1.passport, tb_r1.bclass, tb_r1.from
FROM tb_main, tb_r1
WHERE tb_main.Number = tb_r1.Number;
:‫א‬K^‫א‬K^‫א‬rCY Q‫א‬d;v‫\&א‬
.O6lE$R0(5!4N:0=‫אא‬.O|‫אא‬5B'?:37$
.O6lE$pc‫א?א‬K!FromH&(O6lE‫א‬5B'?:3Ÿ
|‫א‬L4MH$*_5cF‫א‬J?(‫(Šא‬K`B?Y'(57‫)א‬zW!‫א^א‬:3lŸ
.K?
K<cKC‫ א‬M,!w(5cF‫א‬J?(‫א‬DE&'(57N:...3‫א‬W-37lA±;v‫\&א‬
.٢٠&YH.&$
SELECT tb_main.Fname, tb_main.lname,
Tb_R1.passport, tb_r1.bclass, tb_r1.from
FROM tb_main, tb_r1
WHERE tb_main.Number = tb_r1.Number and
‫؛‬tb_main.age >25
٥٣
M,!‫א‬i(;?BK;$7GH‫אא‬CYl$w^cL$`B،K6l‫א‬w^cK;v‫א‬
.7Wv‫א‬i(‫`א‬l‫א‬O|‫א‬LJP4K
.Join‫¯&אא‬+5...4w(5KJM(‫א‬O?lKO‫–א‬
:Inner Join:‫א‬29‫א‬
M(‫א‬#;EOLpc‫(^א?א‬cw‫א‬GH‫א‬L4&ŸjF‫א‬K\(‫א‬K^‫`א‬Y
.|‫א‬EL3+5
%5−4c?(;$P5،`l‫א‬O|‫ א‬M,!‫א‬JPi("Cj;$A6:%(
.4oc−!‫א‬
`5‫א‬0B_*55EB~...`V‫א‬tD7‫?א‬YInner Join*&w^Kž‫אא?‡א‬CY
:Q5k‫א!?א‡א‬wKQ5
SELECT tb_main.Fname, tb_main.lname,
Tb_R1.passport, tb_r1.bclass, tb_r1.from
FROM tb_main inner join tb_r1
on tb_main.Number=tb_r1.Number;
.|‫אƒ`א‬inner join(V.EonAWhere5‫א‬$d7
:Left Join:)[‫א‬29‫א‬
L‫א‬J‫(Šא‬KŸ(H‫א‬%&)O!‫א‬O|‫א‬JR)Š(K‡?‫אא‬CYL
.`l‫א‬O|‫א‬
:K$‡?‫אא‬CYLd7
Š(KŠ(KH‫¦;א‬D.‫א‬%&JP4c7(H‫א‬%&)JPsY2E‫א‬:8*
.3}HD.‫א‬
.3‫א‬$Š(ˆc74¦DH‫א‬%&0]š(.‫א‬%&)JPsY2E‫א‬:8*
٥٤
:&?‫א‬rCYOl
SELECT tb_main.Fname, tb_main.lname,
Tb_R1.passport, tb_r1.bclass, tb_r1.from
FROM tb_main Left JOIN tb_r1 ON
tb_main.Number=tb_r1.Number;
:Right Join:_[‫א‬29‫א‬
:*&Ol‫א‬CY،‫א‬.(3`B(‫?א?‡א‬Y
SELECT tb_main.Fname, tb_main.lname,
Tb_R1.passport, tb_r1.bclass, tb_r1.from
FROM tb_main Right JOIN tb_r1 ON
tb_main.Number=tb_r1.Number;
K<‫א‬L›+‫א‬NB~F‫א!אא‬zlB‫א‬%&>?5j2‫–א‬7SQL;‫šא‬c7K4‫א‬L
.2t7‫א‬%&4
no،(<‫א‬C‫אא‬9:d‫אא‬:eQ ‫א‬a
..p0‫אא‬P0>‫א‬
. ٢٠٠٤-٢٠٠٣ : STUV ‫ال‬YZUL ‫ت‬EFGHIJ KL MNOP QR
٥٥
٥٦

Similar documents

Wire Rope Hoists _ Operating and Maintenance - STAHL

Wire Rope Hoists _ Operating and Maintenance - STAHL Fleet angles..................................................................................................................... 9

More information