A/L ICT Competency 9 DBMS Model Questions

August 26, 2017 | Author: Mohamed Irfan | Category: Business, Medicine, Wellness
Share Embed Donate


Short Description

ERD, ERD to Relation Mapping, Normalization, SQL...

Description

1 | ILM.Irfan

A/L 2015 Exam Preparatory Seminar-ZDE Office Kalmunai

learnbyself.com

Nju;rr ; p – 09 khjpup tpdhf;fs; 01). jdpahu; itj;jparhiy xd;wpw;fhd juTj;jsj;jpid tbtikg;gjw;fhf Nkw;nfhs;sg;gl;l Njitg;ghl;L Ma;tpd; NghJ gpd;tUk; tplaq;fs; fz;lwpag;gl;ld. M]pup itj;jparhiyahdJ ,yq;ifapy; gpugykhd jdpahu; itj;jparhiyahFk;. xU Nehahsu; jq;fpapUe;J rpfpr;ir ngWtjw;fhf mDkjpf;fg;gl;;lhy; mtUf;fhd miw xJf;fg;gLtNjhL mtu; ve;j itj;jpaupd; fPo; rpfpr;ir ngwTs;shu; vd;w tpguk; NehaspfsplkpUe;J ngwg;gl;L cupa itj;jpaUf;F mwptpf;fg;gLk;. itj;jpau; me;Nehahspia ghu;itapl;l gpd; mtiu NkYk; NtW rpwg;G epGzj;Jtk; tha;e;j itj;jpau;/itj;jpau;fsplk; fhl;l Ntz;bapUe;jhy; mtu;fSf;F mwptpg;G toq;FkhW itj;jparhiy epu;thfj;jplk; mwptpg;ghu;. NkYk; xt;nthU Nehahspf;Fk; vd jdpg;gl xt;nthU jhjpau; epakpf;fg;gLtu;. xt;nthU NehahspAk; mDkjpf;fg;gl;lhy; mtu;fSf;nfd gpuj;jpNaf ,yf;fk; toq;fg;gL;k;. xU itj;jpau; gy Jiwfspy; rpwg;G Nju;r;rpAlatu;fshfTk; ,Ug;gu;. “DoctorID”, “RoomID”, “NurseID”, “PatientID” vd;gd KiwNa itj;jpau;, miw, jhjp kw;Wk; Nehahspfis gpuj;jpNafkhf milahsk; fhz;gjw;fhf gad;gLj;jg;gLgitahFk;. 1. ,e;epiyikapid fUj;jpw; nfhz;L ,jw;fhd ER tiugpid tiuf. nghUj;jkhd gz;;Gfis xt;nthU nghUSf;Fk; toq;Ff 2. ER tiugpid njhlu;ghf(Relation) khw;Wf

02). gpd;tUk; Doctor, Patient ,uz;L ml;ltizfisAk; ftdj;jpy; nfhs;f: Table: Doctor Doc_Id 432 509 389 504 235 889 289 100

Name Nifras Akrif Hashir Ijas Muflih Yoonus Rihan Mithujan

Mon_Salary 60000 40000 50000 57000 55000 30000 80000 95000

Area Pediatrics Pediatrics Pediatrics Neurology Orthopedics Orthopedics Neurology Director

Supervsr 100 432 432 289 100 235 100

Date_Hird 10/12/92 08/01/02 23/01/95 25/08/98 05/05/95 16/11/99 23/06/88 25/06/80

Patien_Charge 750 400 450 300 850 400 600

Annual_Bonus 40000 15000 20000 25000 35000 20000 32000 50000

Table: Patient Pt_Id 168 302 103 715 150 940 505 250

Pt_Name Sheshini Daya Amila Asela Sarath Lasith Himali Ajith

Doc_Id 432 289 235 889 504 509 889 504

Pt_DOB 05/03/02 25/04/45 15/06/81 06/03/75 07/07/63 10/11/03 13/05/74 16/02/55

City Colombo Kohuwala Nugegoda Maharagama Colombo Kottawa Colombo Maharagama

Street First Cross Main Street Market Second Queen Dam Main First

a. itj;jpau; ngau(Name); kw;Wk; mtuJ khjr; rk;gsk;(Mon_Salary); kw;Wk; tUlhe;j gb(Annual Bonus) ntspaPL nra;aj;jf;f SQL tpdtiy vOJf. ……………………………………………………………………………………………………………………. ……………………………………………………………………………………………………………………. ……………………………………………………………………………………………………………………. ……………………………………………………………………………………………………………………. b. Doc_Id – 350, Name – Vaas, Mon_Salary - 35,000, Area – Orthopedics, Supervisr – 235, Date_Hird – 27/7/15 , Patien_Charge – 300 vDk; gjptpid Doctor ml;ltizapy; cs;Eiotpg;gjw;fhd SQL tpdtiy vOJf. ……………………………………………………………………………………………………………………. ……………………………………………………………………………………………………………………. ……………………………………………………………………………………………………………………. ……………………………………………………………………………………………………………………. c. $Ljyhd fhyk; Nrit nra;jtu;fspd; mbg;gilapy; itj;jpau; ngau; kw;Wk; mtu; itj;jparhiyahy; gzpf;F mku;j;jg;gl;l jpfjp(Date_Hird) vd;git cs;slq;fshf xOq;FgLj;Jf .……………………………………………………………………………………………………………………. ……………………………………………………………………………………………………………………. …………………………………………………………………………………………………………………….

2 | ILM.Irfan

A/L 2015 Exam Preparatory Seminar-ZDE Office Kalmunai

learnbyself.com

……………………………………………………………………………………………………………………. d. Doc_Id – 504 ,Dila Patien_Charge ,id 500 Mf khw;Wf. ,jw;fhd SQL tpdtiyj; jUf ……………………………………………………………………………………………………………………. ……………………………………………………………………………………………………………………. ……………………………………………………………………………………………………………………. …………………………………………………………………………………………………………………….

3). gpd;tUk; ml;ltizfspid nghUj;jkhd nghJikg;gLj;jypidg; gad;gLj;jp rPu;nra;f a. Table: Players Pl,ayer_Id B01 C01 B02 B03 B04 C02 C03

Name Mahela Sangakkara Mahroof Rasfas Mathew Asanka Kusal

Category A A C B B D C

Salary 12Million 12Million 5Million 8Million 8Million 2.5Million 5Million

b. Table: Project Prj_No 15

Prj_Name Evergreen

18

Starlight

Emp_No 1030 1010 1050 1060 1020 1140 1180 1040 1120 1050

Emp_Name Silva Perera Nonis Steve Silva Kapila James Asoka Kosal Nonis

4). ckJ ghlrhiy E}yfj;ij fzdp kag;gLj;j E}yfu; vz;zpAs;shu; mjw;fhf ICT khztu;fs; FOitf; nfhz;L mfw;fhd G+u;thq;f Ma;tpid Nkw;nfhz;L rpy tpguq;fisj; jpul;bAs;shu;. E}yfj;jpy; nkhj;jk; 5590 Gj;jfq;fs; ,Uf;fpd;wd. mg;Gj;jfq;fs; njhlu;ghd tpguq;fSk; juTj;jsj;jpy; NgzNtz;bAs;sNjhL mg;Gj;jfq;fs; ISBN ,yf;fq;fshy; ,yFthf milahsk; fhz KbAk;. NkYk; Rkhu; 800 khztu;fs; kw;Wk; 45 Mrpupau;fs; mq;fj;jtu;fshf cs;sdu;. mq;fj;Jtj;ijg; ngw 5/- nrYj;jp mq;fj;Jtg;gbtj;ijg; ngw;W G+u;j;jp nra;J E}yfuplk; toq;Ftjd; %yk; E}yf mq;fj;jtuhfyhk;. mq;fj;Jt mDkjpf;fl;lzk; ,ytrk;. Fwpj;j Rl;byf;fj;ijAila khztu; ,utyhf xU Gj;jfj;ijAk;, Fwpj;j Mrpupau; ,yf;fj;ijAila Mrpupau; ,utyhf ,uz;L Gj;jfj;ijAk; ngw;Wf; nfhs;s KbAk;. xU Gj;jfj;jpd; gy gpujpfs; E}yfj;jpy; fhzg;gLk;. mg;gpujpfis gy; mq;fj;jtu;fs; ,utyhf ngwyhk;. ,utyhf Gj;jfj;ij toq;Ffpd;wNghJ mjid toq;fpa jpfjp kw;Wk; jpUg;gp juNtz;ba jpfjp vd;gtw;iw E}yfkhdJ gjpe;J itf;fpd;wJ. ,utyhf Mrpupau; 14 ehl;fSk; khztu;fs; 10 ehl;fSk; Gj;jfj;ij itj;jpUf; KbAk;. NkYk; E}yfkhdJ Gj;jf ntspaPL nra;Ak; gjpg;gfq;fspd; juTfisAk; gjpe;J itj;jpUf;Fk; Vnddpy; rpy ntspaPl;lfq;fs; khztu;fSf;F gpuNahrdkspf;ff; $ba Gj;jfq;fis njhlue;J ntspaPL nra;tdthFk; mt;thwhd gjpg;gfq;fspy; ,Ue;J Gj;jfq;fis Neubahf nfhs;tdT nra;jhy; kypthf ngw;Wf; nfhs;syhk; vd;gjw;fhf mg;gjpg;gfq;fs; njhlu;ghd; tpguq;fisAk; E}yfk; gjpe;J itf;fpd;wJ. a. nghUl;fis(Entities) milahsk; fz;L ngaupLf. b. nghUs; cwT tiuglj;ij tiuf. (nghUj;jkhd gz;Gfis nfhz;bUf;ff; $bajhf nghUl;fis mikf;Ff)

View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF