Szentjánosbogár Camp Applications



Hasonló dokumentumok
ENROLLMENT FORM / BEIRATKOZÁSI ADATLAP

Tavaszi Sporttábor / Spring Sports Camp május (péntek vasárnap) May 2016 (Friday Sunday)

Adattípusok. Max. 2GByte

Adattípusok. Max. 2GByte

Széchenyi István Egyetem

Tábla létrehozása: CREATE TABLE alma( ID INT( 3 ) NOT NULL PRIMARY KEY, Leiras VARCHAR( 100 ) );

Személyes adatváltoztatási formanyomtatvány- Magyarország / Personal Data Change Form - Hungary

ANGOL NYELV KÖZÉPSZINT SZÓBELI VIZSGA I. VIZSGÁZTATÓI PÉLDÁNY

Készítette: Szabóné Nacsa Rozália

8. Gyakorlat SQL. DDL (Data Definition Language) adatdefiníciós nyelv utasításai:

There is/are/were/was/will be

Lopocsi Istvánné MINTA DOLGOZATOK FELTÉTELES MONDATOK. (1 st, 2 nd, 3 rd CONDITIONAL) + ANSWER KEY PRESENT PERFECT + ANSWER KEY

Angol Középfokú Nyelvvizsgázók Bibliája: Nyelvtani összefoglalás, 30 kidolgozott szóbeli tétel, esszé és minta levelek + rendhagyó igék jelentéssel

B I T M A N B I v: T M A N

Tudományos Ismeretterjesztő Társulat

On The Number Of Slim Semimodular Lattices

Előszó.2. Starter exercises. 3. Exercises for kids.. 9. Our comic...17

3. MINTAFELADATSOR KÖZÉPSZINT. Az írásbeli vizsga időtartama: 30 perc. III. Hallott szöveg értése

ANGOL NYELVI SZINTFELMÉRŐ 2014 A CSOPORT

Construction of a cube given with its centre and a sideline

Személyes adatváltoztatási formanyomtatvány - Magyarország / Personal Data Change Form - Hungary

ANGOL NYELV KÖZÉPSZINT SZÓBELI VIZSGA I. VIZSGÁZTATÓI PÉLDÁNY

2. Tavasz Kupa. Uszonyos és Búvárúszó Verseny Kiírása

BEVEZETÉS Az objektum fogalma

ENROLLMENT FORM / BEIRATKOZÁSI ADATLAP

Adatbázis-kezelés. Harmadik előadás

ANGOL NYELVI SZINTFELMÉRŐ 2012 A CSOPORT. to into after of about on for in at from

Adatbázisok. 8. gyakorlat. SQL: CREATE TABLE, aktualizálás (INSERT, UPDATE, DELETE), SELECT október október 26. Adatbázisok 1 / 17

Felhívás. érted is amit olvasol? (Apostolok Cselekedetei 8:30)

Csatlakozás a BME eduroam hálózatához Setting up the BUTE eduroam network

Képleírási segédlet középszintű angol nyelvi vizsgákhoz. Horváth Balázs Zsigmond, Lövey Zoltán. Publio kiadó. Minden jog fenntartva!

Tudok köszönni tegezve és önözve, és el tudok búcsúzni. I can greet people in formal and informal ways. I can also say goodbye to them.

General information for the participants of the GTG Budapest, 2017 meeting

Intézményi IKI Gazdasági Nyelvi Vizsga

Elemi alkalmazások fejlesztése IV.

6. évfolyam Angol nyelv

ANGOL NYELVI SZINTFELMÉRŐ 2013 A CSOPORT. on of for from in by with up to at

PONTOS IDŐ MEGADÁSA. Néha szükséges lehet megjelölni, hogy délelőtti vagy délutáni / esti időpontról van-e szó. Ezt kétféle képpen tehetjük meg:

EXKLUZÍV AJÁNDÉKANYAGOD A Phrasal Verb hadsereg! 2. rész

ANGOL NYELVI SZINTFELMÉRŐ 2008 A CSOPORT

Minta ANGOL NYELV KÖZÉPSZINT SZÓBELI VIZSGA II. Minta VIZSGÁZTATÓI PÉLDÁNY

Smaller Pleasures. Apróbb örömök. Keleti lakk tárgyak Répás János Sándor mûhelyébõl Lacquerware from the workshop of Répás János Sándor

Create & validate a signature

Correlation & Linear Regression in SPSS

FAMILY STRUCTURES THROUGH THE LIFE CYCLE

(Asking for permission) (-hatok/-hetek?; Szabad ni? Lehet ni?) Az engedélykérés kifejezésére a következő segédigéket használhatjuk: vagy vagy vagy

Where are the parrots? (Hol vannak a papagájok?)

USER MANUAL Guest user

Spatial a gyakorlatban

Munkahelykeresés. Önéletrajz és állásinterjú 12. ÉVFOLYAM. Felkészülés a felnőtt szerepekre. A modul szerzõje: Simon Gabriella SZKB_212_04

mondat ami nélkül ne indulj el külföldre

1. MINTAFELADATSOR KÖZÉPSZINT. Az írásbeli vizsga időtartama: 30 perc. III. Hallott szöveg értése

SQL- Utasítások csoportosítása Definíció: DDL: - objektum létrehozás CREATE - objektum megszüntetés DROP - objektum módosítás ALTER

2. Local communities involved in landscape architecture in Óbuda

Adatbázis Rendszerek I. 10. SQL alapok (DML esettanulmány)

Dependency preservation

International Open TABLE TENNIS. Competition to the Memory of János Molnár RESULTS

EN United in diversity EN A8-0206/419. Amendment

NFFKÜ - Nemzetközi Fejlesztési és Forráskoordinációs Ügynökség Zártkörűen Működő Részvénytársaság (1037 Budapest, Montevideo u. 16/A.

Please stay here. Peter asked me to stay there. He asked me if I could do it then. Can you do it now?

Lexington Public Schools 146 Maple Street Lexington, Massachusetts 02420

SQL/PSM kurzorok rész

Hogyan használja az OROS online pótalkatrész jegyzéket?

Adatbázis rendszerek SQL nyomkövetés

INDEXSTRUKTÚRÁK III.

TestLine - Angol teszt Minta feladatsor

Adatbázis Rendszerek II. 8. Gyakorló környezet

EGYSZERŰNEK TŰNIK IV. RÉSZ

Can/be able to. Using Can in Present, Past, and Future. A Can jelen, múlt és jövő idejű használata

A modern e-learning lehetőségei a tűzoltók oktatásának fejlesztésében. Dicse Jenő üzletfejlesztési igazgató

Csomag. Adatbázis-objektum Programozási eszközök gyűjteménye Két részből áll. specifikáció törzs (opcionális)

Év Tájépítésze pályázat Wallner Krisztina. 1. Vízparti sétány kiépítése Balatonfüreden, 3 km hosszon

Elemi alkalmazások fejlesztése IV.

Eseményvezérelt alkalmazások fejlesztése II 12. előadás. Objektumrelációs adatkezelés (ADO.NET) Giachetta Roberto

STUDENT LOGBOOK. 1 week general practice course for the 6 th year medical students SEMMELWEIS EGYETEM. Name of the student:

Travel Getting Around

Rotary District 1911 DISTRICT TÁMOGATÁS IGÉNYLŐ LAP District Grants Application Form

Cashback 2015 Deposit Promotion teljes szabályzat

ADATBÁZIS-KEZELÉS FÉLÉVES FELADAT

Ismeri Magyarországot?

OLYMPICS! SUMMER CAMP

Adatbázisok* tulajdonságai

Angol érettségi témakörök 12.KL, 13.KM, 12.F

Adatbázis használat I. 5. gyakorlat

HALLÁS UTÁNI SZÖVEGÉRTÉS 25. Beauty and the Beast Chapter Two Beauty s rose

Lesson 1 On the train

MySql elindítása. Elemi alkalmazások fejlesztése IV. Feladat. Az alkalmazás adatbázisa

FÖLDRAJZ ANGOL NYELVEN

Using the CW-Net in a user defined IP network

Gyakorlás: Hozzunk létre egy Alkalmazottak táblát AZO szám, Részleg szöveg, Munkakör szöveg és BelépésDátuma dátum típussal.

KIEGÉSZÍTŽ FELADATOK. Készlet Bud. Kap. Pápa Sopr. Veszp. Kecsk Pécs Szomb Igény

T Á J É K O Z T A T Ó. A 1108INT számú nyomtatvány a webcímen a Letöltések Nyomtatványkitöltő programok fülön érhető el.

5. téma XML DB. Az adatkezelés és XML kapcsolata. Miért fontos az XML használata az adatbázis kezelésben?

Genome 373: Hidden Markov Models I. Doug Fowler

Szeretettel hívjuk, várjuk sporttársainkat az Eger Ünnepe és az Egri Senior Úszó-Klub fennállásának 25-ikévében rendezett versenyünkre

Tranzakciókezelés PL/SQL-ben

Adatbázis Rendszerek I. 9. SQL alapok (DDL esettanulmány)

1x1 Fordítóiroda 1x1 Translations

SQL PÉLDATÁR. készült a PTE TTK Iskolai informatika III. kurzus teljesítésére

Átírás:

Gábor Oltványi Szentjánosbogár Camp Applications Database project 2006 p1/18 Gábor József Oltványi PPKE-ITK II. évfolyam QASEL9 Spring, 2006. Database System Project Szentjánosbogár Camp Applications Consultant: Benedek Kaposi

Gábor Oltványi Szentjánosbogár Camp Applications Database project 2006 p2/18 TABLE OF CONTENTS Front Page... Table of Contents... Specification... Entity-Relation Diagrams outline, complete)... Relational Schemes... Creating Tables in SQL... Inserting into Tables in SQL... Selecting from Tables in SQL... Functional Dependencies... Normalization to BCNF... Triggers... Specification in Hungarian... p1 p2 p3 p4-5 p6 p7 p9-12 p13-14 p15 p16 p17 p18

Gábor Oltványi Szentjánosbogár Camp Applications Database project 2006 p3/18 SPECIFICATION Children Szentjanosbogar) applicate to camps this summer CampThisYear), which are organized all over the country TakesPlace). In these excepts for the "Seniors Camp" CampThisYear/Senior) so that in the Children s [aged 10-14], Adolescents [aged 14-16] and Juniors Camps [aged 16-20] CampThisYear/ChildAdolJunior)) inhabitants Inhabitant) accomodate Accomodating + GivesHome) the children. In the Senior Camp there s only one building, where everyone sleeps SleepIn), in rooms RoomIn) Room: Number, Max person). In each camp, there are groups Grop), there are leaders in each group, excepts for the Seniors Camp. There are five Children s Camps, one Adolescents Camp in the same week, then there is one Juniors Camp the next week, and later one Seniors Camp so. Children who applicate to Children s Camp have to give a priority list Priority), to indicate which camp they prefer, if the first camp they ve marked first is full when there are less inhabitants who can accomodate). So those who apllicate later by ApplDate) can go to the second, third, etc. camps on their list ["logical"] IsGoingThere attribute is true, if he will go there finally). There s also an Archive attached to the database, about the former events Event) and about who has been where Appeared) so far. DETAILS: An applicant can be a participant, organizer, camp preacher, camp leader, groupleader except Senior s Camp), and other Status). In the children s application form, there are the following fields: name Name), address AddrCity, AddrZip, AddrStreet), phone numbers MobPhone, HomePhone), E-mails) EMail), place BornPlace) and date of birth BornDate), school class Class), parson s name ParsonName), parish address ParishAddress), parish phone number ParishPhone), religion teacher or Szentjánosbogár Club s leader ReligLeader), illness IllName), medicine Medicine), will this medicine with be him during the camp or not WillHaveMedicine), parent s name ParentName), notification ParentNotification), how much they can pay CanPay) in the costs of the camp it can be more or less depending on their possibilities), and how he will arrive to the camp GettingTo, usually: by car or from Budapest or from an other city with the others). Applicants can indicate with whom they wish to have or have not: H_ToBeOrNot, G_ToBeOrNot) the same accomodation or group ClaimToBeIn1Home, ClaimToBeIn1Group). From the hosters we ask the name, address, phone numbers + WorkPhone). And also the number of children can they accomodate CanAccChild), and the number in the last resort CanAccMax), what is their ideal girl-boy rate preference GirlBoyRate), how much time it takes to get the morning meeting point from their homes DistanceFrom), and what is the best vehicle to be used Vehicle: on foot, by bicicle, car, bus). We store about a former event its type EventType: "gyerektábor", "kamasztábor", "ifitábor", "szeniortábor", "ősbogártábor", "bál", "rajzás", "métabajnokság", "lelkigyakorlat", "vezetőképző", "táborelőkészítő nap", "konditábor", "játékklub", "bogármise"), its place ExPlace), the starting EventStarted) and the ending date EventEnded). About the participants of these event Appeared) we store their status ExStatus: organizer, leader, participant, etc.), and the group name, if there were groups ExGroup). This year s camps will take place in different cities or villages TakesPlace) there are no two camps organized at the same place). It is important, when the camp starts Starts), ends Ends), the costs Costs), the topic groups will talk about, Topic), and there is also a symbolic homework HomeWork). The limit of the number of participants number_limit) depends on the places offered by the hosters. Altough there are four different age-groups, only two application models are separated: first the application for children, adolescents, juniors Application_JUN) then for the seniors Application_SEN). Groups Grop) have names GroupName), these groupnames are the same in all Children s Camp. We can get the group leaders from their application and status, the number of the group is from the group schedule. During the camp there is a trip, where there will be three or four buses tranporting the people in every bus, there are 3-4 groups TripTogether). It is important to separate the planes of time. In an application, we get the constant datas of people, and also get datas only in connection with the application. So we shouldn t mix for example the future camp-participants for the hosted children other, different relations!). A child can be a participant in a camp, if his IsGoingThere attribute is 1, it is true, that he goes there.

Gábor Oltványi Szentjánosbogár Camp Applications Database project 2006 p4/18 ENTITY-RELATION DIAGRAM the scheme, without the attributes: and the next page, with attributes:

Gábor Oltványi Szentjánosbogár Camp Applications Database project 2006 p5/18

Gábor Oltványi Szentjánosbogár Camp Applications Database project 2006 p6/18 RELATIONAL SCHEMES EVENT ExPlace, EventStarted, EventEnded, EventType APPEARED BID, ExPlace, EventStarted, ExStatus, ExGroup SZENTJANOSBOGAR BID, Name, AddrCity, AddrZip, AddrStreet, MobPhone, HomePhone, Email, BornPlace, BornDate, Class, ParsonName, ParishAddress, ParishPhone, ReligLeader, ParentName, ParentNotification, IllName, Medicine, WillHaveMedicine CLAIMTOBEIN1GROUP WHOBID, WITHBID, G_ToBeOrNot CLAIMTOBEIN1HOME WHOBID, WITHBID, H_ToBeOrNot INHABITANT IID, Name, AddrCity, AddrZip, AddrStreet, MobPhone, HomePhone, WorkPhone, Email, DistanceFrom, Vehicle ACCOMODATED BID, IID CAMPTHISYEAR CampType, TakesPlace, Starts, Ends, Costs, NumberLimit, Topic, HomeWork CHILD HILDADOL DOLJUNIOR TakesPlace SENIOR TakesPlace APPLICATION_JUN BID, TakesPlace, Status, Priority, ApplDate, IsGoingThere, CanPay, GettingTo, IsInhabitant -- takesplace is a key, because of the many-many rel. see: priority) APPLICATION_SEN BID, TakesPlace, CanPay, GettingTo --takesplace is not a key, because of the many 1 rel. 1 senior/1 year) GIVESHOME IID, TakesPlace, CanAccChild, CanAccMax, GirlBoyRate, Other --takesplace is not a key many-1 rel. in 1 camp can give home) ROOM RoomNo, Max ROOMIN TakesPlace, RoomNo SLEEPIN BID, RoomNo GROP TakesPlace, GroupName TRIPTOGETHER TakesPlace, GroupName1, GroupName2, BusID GROUPMEMBER BID, TakesPlace, GroupName

Gábor Oltványi Szentjánosbogár Camp Applications Database project 2006 p7/18 CREATING TABLES IN SQL FIRST DROPPING TABLES: --delete from ClaimToHave1Leader; --drop table ClaimToHave1Leader; delete from roomin; drop table roomin; delete from application_jun; drop table application_jun; delete from childadoljunior; drop table childadoljunior; delete from ClaimToBeIn1Home; drop table ClaimToBeIn1Home; delete from groupmember; drop table groupmember; delete from appeared; drop table appeared; delete from campthisyear; drop table campthisyear; delete from ClaimToBeIn1Group; drop table ClaimToBeIn1Group; delete from giveshome; drop table giveshome; delete from grop; drop table grop; delete from inhabitant; drop table inhabitant; delete from triptogether; drop table triptogether; delete from accomodated; drop table accomodated; delete from room; drop table room; delete from szentjanosbogar; drop table szentjanosbogar; delete from sleepin; drop table sleepin; delete from application_sen; drop table application_sen; delete from senior; drop table senior; delete from event; drop table event; CREATING: select table_name from user_tables; PROMPT Creating Entity Tables: PROMPT ^^^^^^^^^^^^^^^^^^^^^^^ PROMPT - creating EVENT create table EVENT EVENTTYPE varchar220), EXPLACE varchar230) not null, EVENTSTARTED date not null, EVENTENDED date, primary key explace, eventstarted ) PROMPT - creating SZENTJANOSBOGAR create table SZENTJANOSBOGAR BID number5) unique, NAME varchar250) not null, ADDRCITY varchar230) not null, ADDRZIP number5) not null, ADDRSTREET varchar250) not null, MOBPHONE varchar215), HOMEPHONE varchar215), EMAIL varchar2100), BORNPLACE varchar230) not null, BORNDATE date not null, CLASS number2), PARSONNAME varchar240), PARISHADDRESS varchar2100), PARISHPHONE varchar215), RELIGLEADER varchar240), PARENTNAME varchar250), PARENTNOTIFICATION varchar250), ILLNAME varchar250), MEDICINE varchar250), WILLHAVEMEDICINE number1) -- boolean PROMPT - creating INHABITANT create table INHABITANT IID number5) unique, NAME varchar250) not null, ADDRCITY varchar230) not null, ADDRZIP number5) not null, ADDRSTREET varchar250) not null, MOBPHONE varchar215), HOMEPHONE varchar215), WORKPHONE varchar215), EMAIL varchar2100), DISTANCEFROM number2), VEHICLE varchar215) PROMPT - creating CAMP-THIS-YEAR create table CAMPTHISYEAR CAMPTYPE varchar218) not null, TAKESPLACE varchar220) primary key, STARTS date not null, ENDS date not null, COSTS number5) not null, NUMBERLIMIT number3), -- there will be a trigger for count NumberLimit TOPIC varchar2100), HOMEWORK varchar2200) PROMPT - creating CHILD-ADOL-JUNIOR IS_A CampThisYear) create table CHILDADOLJUNIOR TAKESPLACE varchar220) primary key, -- constraint: CampType == 'gyerektábor' OR 'kamasztábor' OR 'ifitábor' foreign key takesplace ) references campthisyear takesplace ) PROMPT - creating SENIOR IS_A CampThisYear) create table SENIOR TAKESPLACE varchar220) primary key, -- constraint CampType == 'szeniortábor' foreign key takesplace ) references campthisyear takesplace ) PROMPT - creating ROOM create table ROOM ROOMNO number3) primary key, MAX number2) PROMPT - creating GROP - like "Group" weak entity) create table GROP TAKESPLACE varchar220) not null, --unique? GROUPNAME varchar230), primary key takesplace, groupname ), foreign key takesplace ) references campthisyear takesplace )

Gábor Oltványi Szentjánosbogár Camp Applications Database project 2006 p8/18 PROMPT PROMPT Creating Relational Tables: PROMPT ^^^^^^^^^^^^^^^^^^^^^^^^^^^ PROMPT - creating APPEARED weak relation) create table APPEARED BID number5) not null, EXPLACE varchar230) not null, EVENTSTARTED date not null, EXSTATUS varchar215), EXGROUP varchar230), foreign key bid) references szentjanosbogarbid), foreign key explace, eventstarted) references eventexplace, eventstarted) PROMPT - creating APPLICATION-JUNiors' + children's + adolescents' create table APPLICATION_JUN BID number5) not null, TAKESPLACE varchar220) not null, STATUS varchar215), PRIORITY number1), APPLDATE date, ISGOINGTHERE number1) default 1, CANPAY number5) default 6600, GETTINGTO varchar220), ISINHABITANT number1) default 0, -- boolean primary key bid, takesplace ), foreign key bid ) szentjanosbogar bid ), foreign key takesplace ) childadoljunior takesplace ) references references PROMPT - creating APPLICATION-SENior create table APPLICATION_SEN BID number5) not null, TAKESPLACE varchar220) not null references seniortakesplace), CANPAY number5) default 5300, GETTINGTO varchar220), primary key bid ), foreign key bid ) references szentjanosbogarbid) PROMPT - creating ACCOMODATED create table ACCOMODATED BID number5) not null, IID number5) not null references inhabitant iid), primary key bid ), foreign key bid) references szentjanosbogarbid) PROMPT - creating GIVES-HOME create table GIVESHOME IID number5) primary key references inhabitantiid), TAKESPLACE varchar220) not null references childadoljuniortakesplace), CANACCCHILD number2) not null, CANACCMAX number2) not null, GIRLBOYRATE varchar220) not null, OTHER varchar2300) PROMPT - creating GROUP-MEMBER create table GROUPMEMBER BID number5), TAKESPLACE varchar220), GROUPNAME varchar230), primary key bid, takesplace, groupname ), foreign key bid) references szentjanosbogarbid), foreign key groupname, takesplace) references gropgroupname, takesplace) PROMPT - creating ROOM-IN create table ROOMIN TAKESPLACE varchar220) not null references seniortakesplace), ROOMNO number3) primary key references roomroomno) PROMPT - creating SLEEP-IN create table SLEEPIN BID number5) primary key references szentjanosbogarbid), ROOMNO number3) not null references roomroomno) PROMPT - creating TRIP-TOGETHER create table TRIPTOGETHER -- not perfect : TAKESPLACE varchar220) not null,-- references groptakesplace), WHICHGROUP varchar230),--references gropgroupname), WITHGROUP varchar230),--references gropgroupname), BUSID number1) not null, primary key takesplace, whichgroup, withgroup) PROMPT - creating CLAIM-TO-BE-IN-1-GROUP create table CLAIMTOBEIN1GROUP WHOBID number5) not null references szentjanosbogarbid), WITHBID number5) not null references szentjanosbogarbid), G_TOBEORNOT number1) default 1, -- boolean primary key whobid, withbid ) PROMPT - creating CLAIM-TO-BE-IN-1-HOME create table CLAIMTOBEIN1HOME WHOBID number5) not null references szentjanosbogarbid), WITHBID number5) not null references szentjanosbogarbid), H_TOBEORNOT number1) default 1, -- boolean primary key whobid, withbid ) /* PROMPT - creating CLAIM-TO-HAVE-1-LEADER create table CLAIMTOHAVE1LEADER BID number5) not null references szentjanosbogarbid), -- a lap kitöltője BID2 number5) not null, -- akit nem) akar L_TOBEORNOT number1) default 1, -- bool primary key bid2 ), foreign key bid2) references */ szentjanosbogarbid) select table_name from user_tables;

Gábor Oltványi Szentjánosbogár Camp Applications Database project 2006 p9/18 INSERTING INTO TABLES IN SQL Here are my inserting commands used. The inserting order is important. I didn t fill out these not so important tables yet: TripTogether, ClaimToBeIn1Group, ClaimToBeIn1Home. Sorry for saving spaces on paper;-). --1. block insert into szentjanosbogar szentjanosbogar values 1, 'Oltványi Gábor', 'Szeged', 6722, 'Kálvária sgt. 21.', '30-5745830', '62-450304', 'gabrosz@gmail.com', 'Szeged', to_date'22-08-1985','dd-mm-yyyy'), 2, 'Tamás Barna SJ', 'Szeged, Bolyai u. 22.', '62-4??-???', '-', 'dr. Oltványi György', '30-6545495', 'asztma', 'Ventolin', 1 insert into szentjanosbogar values 2, 'Börcsök Anikó', 'Jánossomorja', 1890, 'Nagybányai út 84.', '20-5287810', '21-646-997', 'halmik@tonline.hu', 'Csömör', to_date'01-02-1987','dd-mm-yyyy'), 12, 'Kutasi Áron', null, null, null, null, null, null, null, null insert into szentjanosbogar values 3, 'Börcsök Csaba', 'Hidegség', 9677, 'Brassó utca 37.', '70-8096441', '97-632-468', 'josh@freemail.hu', 'Sajóbábony', to_date'06-06-1996','dd-mm-yyyy'), 3, 'Kutasi Géza', null, null, null, null, null, 'csípésallergia', 'Ventolin spray', 1 insert into szentjanosbogar values 4, 'Csillik Zsófia', 'Tápiószentmárton', 4124, 'Piac tér 88.', '70-9670082', '32-488-701', 'retikul@mailbox.hu', 'Nick', to_date'17-08-1995','dd-mm-yyyy'), 4, 'Tóth Mária', null, null, null, null, null, null, null, null insert into szentjanosbogar values 5, 'Csonka Katalin', 'Szelídi-tó Soltvadkert)', 2784, 'Bakáts utca 72.', '70-8487194', '44-114-042', 'kukori@mailbox.hu', 'Gádoros', to_date'06-09-1989','dd-mm-yyyy'), 10, 'Görög József', null, null, null, null, null, 'vesebetegség', 'Calcium tabletta', 0 insert into szentjanosbogar values 6, 'Fodor Ernő', 'Füzesgyarmat', 2565, 'Kalmár Ilona sétány 24.', '70-8003177', '1-6008-573', 'zurmuty@gmail.com', 'Kaposmérő', to_date'19-10-1989','dd-mm-yyyy'), 10, 'Hantosi Péter', null, null, null, null, null, null, null, null insert into szentjanosbogar values 7, 'Gyorgyovich János', 'Sopronhorpács', 9408, 'Enying utca 55.', '20-8617654', '53-601-557', 'mici@citromail.hu', 'Bordány', to_date'28-11-1986','dd-mm-yyyy'), 13, 'Bognár István', null, null, null, null, null, 'bokaficam', null, null insert into szentjanosbogar values 8, 'Kara Mária', 'Nick', 4047, 'Erdőalja lépcső 4.', '30-2829690', '1-2773-192', 'atlantis@gmail.com', 'Nyíregyháza', to_date'18-11-1994','dd-mm-yyyy'), 5, 'Király Bálint', null, null, null, null, null, null, 'orcsepp', 1 insert into szentjanosbogar values 9, 'Keresztény Izabella', 'Csorna', 8521, 'Bartók Béla út 122.', '70-1098559', '54-516-444', 'mici@tonline.hu', 'Kömlő', to_date'20-02-1989','dd-mm-yyyy'), 10, 'Judák Endre', null, null, null, null, null, 'vérszegénység', null, null insert into szentjanosbogar values 10, 'Keresztény Mária', 'Felsőzsolca', 4494, 'Technikus utca 11.', '20-8258551', '1-3703-304', 'jpek@gmail.com', 'Mezőtúr', to_date'06-02-1990','dd-mm-yyyy'), 9, 'Sajgó Barnabás', null, null, null, null, null, null, null, null insert into szentjanosbogar values 11, 'Kiss András', 'Hatvan', 5829, 'Kolozsvár utca 85.', '30-5148845', '98-616-376', 'hernyo@citromail.hu', 'Halimba', to_date'26-10-1989','dd-mm-yyyy'), 10, 'Király Tamás', null, null, null, null, null, 'csípésallergia', 'Penicillin', 0 insert into szentjanosbogar values 12, 'Kiss Emőke', 'Iváncsa', 7739, 'Szerémi út 102.', '20-6711619', '98-478-046', 'turnmeon@freemail.hu', 'Bükkszenterzsébet', to_date'28-08-1994','dd-mm-yyyy'), 5, 'Szelei Endre', null, null, null, null, null, null, 'Algopirin', 0 insert into szentjanosbogar values 13, 'Kovács Ágnes', 'Panyola', 7123, 'Ványoló utca 15.', '70-5474891', '72-960-166', 'taborka@primposta.hu', 'Lepsény', to_date'24-10-1987','dd-mm-yyyy'), 12, 'Pálinkás Mária', null, null, null, null, null, null, 'C-vitamin', 1 insert into szentjanosbogar values 14, 'Laki Béla', 'Dusnok', 7071, 'Fábián utca 69.', '70-7494592', '78-886-586', 'mittoomeen@citromail.hu', 'Hegyhátszentjakab', to_date'27-06-1988','dd-mm-yyyy'), 11, 'Pálinkás Imre', null, null, null, null, null, null, null, null insert into szentjanosbogar values 15, 'Mezey Imre', 'Bátorliget', 3017, 'Zalaegerszegi utca 38.', '30-2066584', '1-9201-234', 'muff@vipmail.hu', 'Szentkirályszabadja', to_date'20-06-1996','dd-mm-yyyy'), 3, 'Király Péter', null, null, null, null, null, null, null, null insert into szentjanosbogar values 16, 'Nagy Győző', 'Zomba', 6841, 'Rákász utca 63.', '70-1260889', '68-284-006', 'iroda@gmail.com', 'Győrszemere', to_date'22-07-1985','dd-mm-yyyy'), 14, 'Kerekes Hajnalka', null, null, null, null, null, null, null, null insert into szentjanosbogar values 17, 'Nagy Irma', 'Csák', 8025, 'Döbrentei tér 49.', '30-5922232', '32-601-708', 'tot.lajos@gmail.com', 'Böhönye', to_date'02-05-1994','dd-mm-yyyy'), 5, 'Gábor Leó', null, null, null, null, null, null, null, null insert into szentjanosbogar values 18, 'Nagy Júlia', 'Ostffyasszonyfa', 2900, 'Nyerges köz 92.', '30-4165233', '59-351-613', 'gmesi@freemail.hu', 'Sopron', to_date'27-06-1992','dd-mm-yyyy'), 7, 'Tóth Géza', null, null, null, null, null, 'vesebetegség ', null, 0 insert into szentjanosbogar values 19, 'Nagy Kinga', 'Tiszafüred', 1574, 'Orlay utca 115.', '70-9120182', '74-923-895', 'jatekos@vipmail.hu', 'Soltvadkert', to_date'26-04-1995','dd-mm-yyyy'), 4, 'Deák Bálint', null, null, null, null, null, null, 'C-vitamin', 1 insert into szentjanosbogar values 20, 'Oltványi Márton', 'Halászi', 2503, 'Bártfa utca 22.', '70-6636420', '67-462-094', 'sajt@gmail.com', 'Sormás', to_date'02-10-1994','dd-mm-yyyy'), 5, 'Börcsök András', null, null, null, null, null, null, null, null insert into szentjanosbogar values 21, 'Palágyi József', 'Vasszentmihály', 7956, 'Koráll köz 127.', '20-2272404', '55-859-542', 'fonografia@vipmail.hu', 'Nagyszentjános', to_date'20-09-1987','dd-mm-yyyy'), 12, 'Király Cecília', null, null, null, null, null, 'bokaficam', null, 0 insert into szentjanosbogar values 22, 'Palágyi Rita', 'Bakonycsernye', 2562, 'Szerencs utca 61.', '20-8823117', '1-9220-200', 'sajatemail@hotmail.com', 'Szentgyörgyvölgy', to_date'03-06-1992','dd-mm-yyyy'), 7, 'Csillik Luca', null, null, null, null, null, null, null, null insert into szentjanosbogar values 23, 'Prohászka János', 'Kup', 2212, 'Aradi utca 79.', '30-3922248', '84-066-252', 'jatek@gmail.com', 'Jászkisér', to_date'26-03-1992','dd-mm-yyyy'), 7, 'Réti Gyula', null, null, null, null, null, 'gyógyszerallergia', null, null insert into szentjanosbogar values 24, 'Sajgó Anikó', 'Szekszárd', 6473, 'Baracska utca 93.', '30-2894527', '81-283-355', 'fesulkodo@citromail.hu', 'Alsóhámor', to_date'10-01-1996','dd-mm-yyyy'), 3, 'Tornai Tivadar', null, null, null, null, null, null, 'C-vitamin', 1 insert into szentjanosbogar values 25, 'Simó Luca', 'Záhony', 5780, 'Máramarosi út 15.', '20-8819744', '96-080-457', 'kutyulimutyuli@yahoo.com', 'Tura', to_date'11-09-1988','dd-mm-yyyy'), 11, 'Simó Zsófi', null, null, null, null, null, null, 'C-vitamin', 1 insert into szentjanosbogar values 26, 'Szabó János', 'Kápolnásnyék', 2894, 'Szőlőműves utca 39.', '20-7617899', '75-208-121', 'lakitelki@gmail.com', 'Győrzámoly', to_date'12-06-1993','dd-mm-yyyy'), 6, 'Kaposi Barnabás', null, null, null, null, null, null, null, null insert into szentjanosbogar values 27, 'Szabó Katalin', 'Gödöllő', 9042, 'Csillagvirág utca 6.', '30-7407353', '48-932-102', 'zsede@hotmail.com', 'Kölcse', to_date'02-09-1989','dd-mm-yyyy'), 10, 'Szlovák Anita', null, null, null, null, null, null, null, null insert into szentjanosbogar values 28, 'Szalay Szilvia', 'Tolmács', 4027, 'Albertfalva utca 114.', '30-4331138', '73-913-932', 'paliba@freemail.hu', 'Nagyrécse', to_date'13-10-1985','dd-mm-yyyy'), 14, 'Görög Péter', null, null, null, null, null, null, 'C-vitamin', 0 insert into szentjanosbogar values 29, 'Szőke Gábor', 'Nagyrécse', 4299, 'Erdőtelek utca 129.', '20-3408708', '23-572-299', 'lakodalom@yahoo.com', 'Kóspallag', to_date'16-05-1995','dd-mm-yyyy'), 4, 'Gyorgyovich Mária', null, null, null, null, null, 'vérszegénység', 'szemcsepp', null insert into szentjanosbogar values 30, 'Szőke Leó', 'Cegléd', 3952, 'Posztógyári köz 121.', '20-3720208', '50-931-276', 'ttamas@t-online.hu', 'Csősz', to_date'15-01-1988','dd-mm-yyyy'), 11, 'Kutasi Ágnes', null, null, null, null, null, null, 'Penicillin', 1 insert into szentjanosbogar values 31, 'Szőke Mónika', 'Zsórifürdő', 8992, 'Vásár utca 62.', '30-1747210', '27-744-743', 'macsek@mailbox.hu', 'Kozármisleny', to_date'01-11-1986','dd-mm-yyyy'), 13, 'Istenhegyi Csaba', null, null, null, null, null, 'csípésallergia', null, null insert into szentjanosbogar values 32, 'Tábori Fanni', 'Ballószög', 6889, 'Szövőszék utca 10.', '30-1001729', '1-6445-231', 'langfej@citromail.hu', 'Kondoros', to_date'02-05-1991','dd-mm-yyyy'), 8, 'Nagy József', null, null, null, null, null, null, null, 0 insert into szentjanosbogar values 33, 'Tornai Kinga', 'Mosonmagyaróvár', 8929, 'Török Flóris utca 56.', '30-5124803', '36-734-301', 'joskaba@yahoo.com', 'Szentkirályszabadja', to_date'14-09-1988','dd-mm-yyyy'), 11, 'Tóth Miklós', null, null, null, null, null, null, null, null insert into szentjanosbogar values 34, 'Tóth Adorján', 'Abda', 7320, 'Tahi köz 125.', '70-7194089', '66-962-293', 'vizipok@citromail.hu', 'Mernye', to_date'16-10-1987','dd-mm-yyyy'), 12, 'Szalay Rita', null, null, null, null, null, null, null, 1 insert into szentjanosbogar values 35, 'Tóth Bálint', 'Bátorliget', 7479, 'Janicsár utca 58.', '30-1058279', '70-180-898', 'zzz@t-online.hu', 'Tardona', to_date'06-08-1996','dd-mm-yyyy'), 3, 'Tóth Fanni', null, null, null, null, null, 'törött kéz', null, null insert into szentjanosbogar values 36, 'Tóth Bálint', 'Budakeszi', 2424, 'Nádor utca 34.', '30-6752678', '76-729-970', 'medvebocs@yahoo.com', 'Tarnaszentmiklós', to_date'03-03-1991','dd-mm-yyyy'), 8, 'Takács Gábor', null, null, null, null, null, null, null, null insert into szentjanosbogar values 37, 'Tóth Júlia', 'Csertő', 6835, 'Gyeplős utca 6.', '20-6541878', '66-182-129', 'lacika@freemail.hu', 'Komoró', to_date'07-10-1986','dd-mm-yyyy'), 13, 'Réti Mónika', null, null, null, null, null, null, null, 0 insert into szentjanosbogar values 38, 'Tóth Natália', 'Mátraverebély', 6406, 'Bod Péter utca 52.', '20-7722466', '1-5224-127', 'tricikli@yahoo.com', 'Bükkszentkereszt', to_date'01-10-1993','dd-mm-yyyy'), 6, 'Istenhegyi Péter', null, null, null, null, null, null, null, null insert into szentjanosbogar values 39, 'Tóth Tamás', 'Sormás', 4006, 'Thököly út 34.', '70-7103091', '66-981-953', 'muki@vipmail.hu', 'Hodász', to_date'25-11-1989','dd-mm-yyyy'), 10, 'Kis Csaba', null, null, null, null, null, 'csípésallergia', null, null insert into szentjanosbogar values 40, 'Vandlik Mária', 'Balatonmária', 1023, 'Védgát utca 137. ', '20-6151001 ', '62-819-055 ', 'kapca@tonline.hu', 'Etyek ', to_date'01-07-1990','dd-mm-yyyy'), 9, 'Molnár Zsuzsanna ', null, null, null, null, null, 'bokaficam', null, 1 select bid, name, addrcity from szentjanosbogar; insert into inhabitant values 1, 'Jójárt Szindi', 'Taksony', 1931, 'Mildenberger utca 81.', null, null, null, 'Periklész@yahoo.com', 14, 'gyalog' insert into inhabitant values 2, 'Király Johanna', 'Taksony', 4926, 'Takaros utca 122.', null, null, null, 'Tömör@mailbox.hu', 7, 'gyalog' insert into inhabitant values 3, 'Gróf Fiadelfia', 'Taksony', 9752, 'Szinva utca 2.', null, null, null, null, 13, 'gyalog' insert into inhabitant values 4, 'Nagy Malvina', 'Hosszúhetény', 9133, 'Hegytető utca 56.', null, null, null, 'Valér@primposta.hu', 14, 'gyalog' insert into inhabitant values 5, 'Sebők Emiliána', 'Hosszúhetény', 3602, 'Móra Ferenc utca 63.', null, null, null, null, 9, 'gyalog' insert into inhabitant values 6, 'Barki Sába', 'Hosszúhetény', 7610, 'Páfrány forduló forduló 96.', null, null, null, null, 8, 'gyalog' insert into inhabitant values 7, 'Pusztai Herold', 'Hosszúhetény', 1128, 'Szalóki utca 106.', null, null, null, 'Sámson@mailbox.hu', 11, 'kerékpár'

Gábor Oltványi Szentjánosbogár Camp Applications Database project 2006 p10/18 insert into inhabitant values 8, 'Hódsági Gajána', 'Csanádapáca', 1967, 'Száraznád utca 35.', null, null, null, 'Umbertó@t-online.hu', 19, 'gyalog' insert into inhabitant values 9, 'Gábor Ruszalka', 'Csanádapáca', 5940, 'Gomba utca 141.', null, null, null, null, 5, 'autó' insert into inhabitant values 10, 'Simó Magor', 'Csanádapáca', 4359, 'Eötvös József park 46.', null, null, null, 'Fidél@gmail.com', 12, 'autó' insert into inhabitant values 11, 'Takács Tardos', 'Csanádapáca', 6806, 'Vaspálya utca 17.', null, null, null, null, 7, 'gyalog' insert into inhabitant values 12, 'Kutasi Nóna', 'Újdombóvár', 5849, 'Kántorné utca 6.', null, null, null, 'Jutocsa@t-online.hu', 4, 'gyalog' insert into inhabitant values 13, 'Oltványi Sámson', 'Újdombóvár', 7255, 'Zombori utca 142.', null, null, null, null, 5, 'gyalog' insert into inhabitant values 14, 'Kovács Loréna', 'Újdombóvár', 5551, 'Corvin út 138.', null, null, null, null, 11, 'gyalog' insert into inhabitant values 15, 'Szűcs Tegza', 'Esztergom', 8690, 'Gerezd utca 27.', null, null, null, null, 6, 'gyalog' insert into inhabitant values 16, 'Kara Dezső', 'Esztergom', 4291, 'Hegycsúcs utca 144.', null, null, null, null, 18, 'autó' insert into inhabitant values 17, 'Tóth Libóriusz', 'Esztergom', 3631, 'Palicsi utca 139.', null, null, null, null, 10, 'kerékpár' insert into inhabitant values 18, 'Kiss Boleszláv', 'Esztergom', 6204, 'Határ utca 80.', null, null, null, 'Panna@gmail.com', 8, 'gyalog' insert into inhabitant values 19, 'Simó Miriam', 'Mocsa', 7143, 'Rákóczi utca 49.', null, null, null, 'Kató@gmail.com', 19, 'gyalog' insert into inhabitant values 20, 'Berecz Paulina ', 'Mocsa', 5611, 'Kerámia utca 76. ', null, null, null, null, 4, 'gyalog' select iid, name, addrcity from Inhabitant; insert into CampThisYear values 'gyerektábor', 'Újdombóvár', insert into CampThisYear values 'gyerektábor', to_date'02-07-2006','dd-mm-yyyy'), to_date'07-07-2006','dd- 'Csanádapáca', to_date'02-07-2006','dd-mm-yyyy'), to_date'07- MM-YYYY'), 6300, 150, 'tálentumok', null 07-2006','DD-MM-YYYY'), 6300, 120, 'tálentumok', null insert into CampThisYear values 'kamasztábor', 'Esztergom', insert into CampThisYear values 'gyerektábor', 'Taksony', to_date'02-07-2006','dd-mm-yyyy'), to_date'07-07-2006','ddto_date'02-07-2006','dd-mm-yyyy'), to_date'07-07-2006','dd- MM-YYYY'), 6300, 150, 'más1', null MM-YYYY'), 6300, 100, 'tálentumok', null insert into CampThisYear values 'ifitábor', 'Hajdúdorog', insert into CampThisYear values 'gyerektábor', 'Mocsa', to_date'10-07-2006','dd-mm-yyyy'), to_date'16-07-2006','ddto_date'02-07-2006','dd-mm-yyyy'), to_date'07-07-2006','dd- MM-YYYY'), 7000, 140, 'más2', null MM-YYYY'), 6300, 130, 'tálentumok', null insert into CampThisYear values 'szeniortábor', 'Miskolc', insert into CampThisYear values 'gyerektábor', 'Hosszúhetény', to_date'14-08-2006','dd-mm-yyyy'), to_date'20-08-2006','ddto_date'02-07-2006','dd-mm-yyyy'), to_date'07-07-2006','dd- MM-YYYY'), 7000, 200, 'más3', null MM-YYYY'), 6300, 110, 'tálentumok', null select CampType, TakesPlace, Starts, Ends, Costs, NumberLimit from CampThisYear; insert into event values 'bál', 'Budapest', to_date'12-11-2005','dd-mm-yyyy'), to_date'13-11-2005','dd-mm-yyyy') insert into event values 'bál', 'Budapest', to_date'11-02-2006','dd-mm-yyyy'), to_date'12-02-2006','dd-mm-yyyy') insert into event values 'bál', 'Budapest', to_date'11-11-2006','dd-mm-yyyy'), to_date'12-11-2006','dd-mm-yyyy') insert into event values 'gyerektábor', 'Domaszék', to_date'29-06-2004','dd-mm-yyyy'), to_date'04-07-2004','dd-mm-yyyy') insert into event values 'gyerektábor', 'Mocsa', to_date'29-06-2004','dd-mm-yyyy'), to_date'04-07-2004','dd-mm-yyyy') insert into event values 'gyerektábor', 'Újkígyós', to_date'29-06-2004','dd-mm-yyyy'), to_date'04-07-2004','dd-mm-yyyy') insert into event values 'gyerektábor', 'Kálló', to_date'29-06-2004','dd-mm-yyyy'), to_date'04-07-2004','dd-mm-yyyy') insert into event values 'gyerektábor', 'Egyházaskozár', to_date'29-06-2004','dd-mm-yyyy'), to_date'04-07-2004','dd-mm-yyyy') insert into event values 'ifitábor', 'Herény', to_date'07-07-2004','dd-mm-yyyy'), to_date'13-07-2004','dd-mm-yyyy') insert into event values 'ifitábor', 'Gencsapáti', to_date'07-07-2004','dd-mm-yyyy'), to_date'13-07-2004','dd-mm-yyyy') insert into event values 'közgyűlés', 'Budapest', to_date'22-10-2005','dd-mm-yyyy'), to_date'23-10-2005','dd-mm-yyyy') insert into event values 'közgyűlés', 'Budapest', to_date'16-09-2006','dd-mm-yyyy'), to_date'17-09-2006','dd-mm-yyyy') insert into event values 'lelkigyakorlat', 'Dobogókő', to_date'09-12-2005','dd-mm-yyyy'), to_date'11-12-2005','dd-mm-yyyy') insert into event values 'lelkigyakorlat', 'Dobogókő', to_date'10-03-2006','dd-mm-yyyy'), to_date'12-03-2006','dd-mm-yyyy') insert into event values 'métabajnokság', 'Budapest', to_date'29-04-2006','dd-mm-yyyy'), to_date'29-04-2006','dd-mm-yyyy') insert into event values 'rajzás', 'Szeged', to_date'24-09-2005','dd-mm-yyyy'), to_date'24-09-2005','dd-mm-yyyy') insert into event values 'rajzás', 'Budapest', to_date'01-10-2005','dd-mm-yyyy'), to_date'01-10-2005','dd-mm-yyyy') insert into event values 'rajzás', 'Szeged', to_date'23-09-2006','dd-mm-yyyy'), to_date'23-09-2006','dd-mm-yyyy') insert into event values 'rajzás', 'Budapest', to_date'30-09-2006','dd-mm-yyyy'), to_date'30-09-2006','dd-mm-yyyy') insert into event values 'vezetőképző', 'Dobogókő', to_date'27-01-2006','dd-mm-yyyy'), to_date'29-01-2006','dd-mm-yyyy') insert into event values 'vezetőképző', 'Dobogókő', to_date'17-02-2006','dd-mm-yyyy'), to_date'19-02-2006','dd-mm-yyyy') insert into event values 'vezetőképző', 'Dobogókő', to_date'31-03-2006','dd-mm-yyyy'), to_date'02-04-2006','dd-mm-yyyy') insert into event values 'vezetőképző', 'Szeged-Szentmihály', to_date'21-04-2006','dd-mm-yyyy'), to_date'23-04-2006','dd-mm-yyyy') select * from event; insert into Room om values 205, 3 insert into room values 210, 4 insert into room values 313, 5 select * from room; --2. block Child ldadol doljunior insert into Chi unior values 'Csanádapáca' insert into childadoljunior values 'Taksony' insert into childadoljunior values 'Mocsa' insert into childadoljunior values 'Hosszúhetény' insert into childadoljunior values 'Újdombóvár' insert into childadoljunior values 'Esztergom' insert into childadoljunior values 'Hajdúdorog' select * from childadoljunior; insert into Senior values 'Miskolc' enior select * from senior; insert into Grop values 'Csanádapáca', 'messzirelátó' insert into GROP values 'Taksony', 'messzirelátó' insert into GROP values 'Mocsa', 'messzirelátó' insert into GROP values 'Hosszúhetény', 'messzirelátó' insert into GROP values 'Újdombóvár', 'messzirelátó' insert into GROP values 'Csanádapáca', 'figyelmes' insert into GROP values 'Taksony', 'figyelmes' insert into GROP values 'Mocsa', 'figyelmes' insert into GROP values 'Hosszúhetény', 'figyelmes' insert into GROP values 'Újdombóvár', 'figyelmes' insert into GROP values 'Csanádapáca', 'türelmes' insert into GROP values 'Taksony', 'türelmes' insert into GROP values 'Mocsa', 'türelmes' insert into GROP values 'Hosszúhetény', 'türelmes' insert into GROP values 'Újdombóvár', 'türelmes' insert into GROP values 'Esztergom', 'farkas' insert into GROP values 'Esztergom', 'pók' insert into GROP values 'Esztergom', 'nyúl' insert into GROP values 'Hajdúdorog', 'arany' insert into GROP values 'Hajdúdorog', 'gyémánt' insert into GROP values 'Hajdúdorog', 'acél' insert into GROP values 'Miskolc', 'helybentaláljákki1' insert into GROP values 'Miskolc', 'helybentaláljákki2' insert into GROP values 'Miskolc', 'helybentaláljákki3' select * from GROP; --3. block insert into Application_JUN Application_JUN values 1, 'Csanádapáca', 'főbogár', 1, to_date'03-05-2006','dd-mm-yyyy'), 1, 0, 'Bp - többiekkel', 0 insert into application_jun values 1, 'Taksony', 'főbogár', 2, to_date'03-05-2006','dd-mm-yyyy'), 0, 0, 'Bp - többiekkel', 0 insert into application_jun values 4, 'Esztergom', 'főbogár', 1, to_date'12-05-2006','dd-mm-yyyy'), 1, 0, 'Bp - többiekkel', 0 insert into application_jun values 4, 'Hajdúdorog', 'főbogár', 1, to_date'20-05-2006','dd-mm-yyyy'), 1, 0, 'kocsival', 0 insert into application_jun values 4, 'Taksony', 'főbogár', 2, to_date'12-05-2006','dd-mm-yyyy'), 0, 0, 'Bp - többiekkel', 0 insert into application_jun values 15, 'Csanádapáca', 'főbogár', 1, to_date'05-05-2006','dd-mm-yyyy'), 1, 0, 'kocsival', 0 insert into application_jun values 15, 'Esztergom', 'főbogár', 2, to_date'05-05-2006','dd-mm-yyyy'), 0, 0, 'Bp - többiekkel', 0 insert into application_jun values 1, 'Hajdúdorog', 'résztvevő', 1, to_date'19-05-2006','dd-mm-yyyy'), 1, null, 'kocsival', 0 insert into application_jun values 5, 'Hajdúdorog', 'résztvevő', 1, to_date'13-05-2006','dd-mm-yyyy'), 1, null, 'kocsival', 0 insert into application_jun values 6, 'Hajdúdorog', 'résztvevő', 1, to_date'14-05-2006','dd-mm-yyyy'), 1, null, 'kocsival', 0 insert into application_jun values 7, 'Hajdúdorog', 'résztvevő', 1, to_date'21-05-2006','dd-mm-yyyy'), 1, null, 'Bp - többiekkel', 0 insert into application_jun values 19, 'Hajdúdorog', 'résztvevő', 1, to_date'15-05-2006','dd-mm-yyyy'), 1, null, 'kocsival', 0 insert into application_jun values 20, 'Hajdúdorog', 'résztvevő', 1, to_date'16-05-2006','dd-mm-yyyy'), 1, null, 'Bp - többiekkel', 0 insert into application_jun values 21, 'Hajdúdorog', 'résztvevő', 1, to_date'22-05-2006','dd-mm-yyyy'), 1, null, 'Bp - többiekkel', 0 insert into application_jun values 33, 'Hajdúdorog', 'résztvevő', 1, to_date'17-05-2006','dd-mm-yyyy'), 1, null, 'Bp - többiekkel', 0 insert into application_jun values 34, 'Hajdúdorog', 'résztvevő', 1, to_date'18-05-2006','dd-mm-yyyy'), 1, null, 'kocsival', 0 insert into application_jun values 3, 'Esztergom', 'résztvevő', 1, to_date'11-05-2006','dd-mm-yyyy'), 1, null, 'Bp - többiekkel', 0 insert into application_jun values 17, 'Esztergom', 'résztvevő', 1, to_date'13-05-2006','dd-mm-yyyy'), 1, null, 'város - többiekkel', 0 insert into application_jun values 18, 'Esztergom', 'résztvevő', 1, to_date'14-05-2006','dd-mm-yyyy'), 1, null, 'Bp - többiekkel', 0 insert into application_jun values 31, 'Esztergom', 'résztvevő', 1, to_date'15-05-2006','dd-mm-yyyy'), 1, null, 'Bp - többiekkel', 0 insert into application_jun values 32, 'Esztergom', 'résztvevő', 1, to_date'16-05-2006','dd-mm-yyyy'), 1, null, 'Bp - többiekkel', 0 insert into application_jun values 2, 'Csanádapáca', 'résztvevő', 1, to_date'04-05-2006','dd-mm-yyyy'), 1, null, 'város - többiekkel', 0 insert into application_jun values 2, 'Taksony', 'résztvevő', 2, to_date'04-05-2006','dd-mm-yyyy'), 0, null, 'kocsival', 0 insert into application_jun values 3, 'Hosszúhetény', 'résztvevő', 2, to_date'11-05-2006','dd-mm-yyyy'), 0, null, 'Bp - többiekkel', 0 insert into application_jun values 6, 'Csanádapáca', 'résztvevő', 2, to_date'29-05-2006','dd-mm-yyyy'), 0, null, 'kocsival', 0 insert into application_jun values 6, 'Taksony', 'résztvevő', 1, to_date'29-05-2006','dd-mm-yyyy'), 1, null, 'Bp - többiekkel', 0 insert into application_jun values 7, 'Csanádapáca', 'résztvevő', 3, to_date'17-05-2006','dd-mm-yyyy'), 0, null, 'kocsival', 0 insert into application_jun values 7, 'Hosszúhetény', 'résztvevő', 1, to_date'17-05-2006','dd-mm-yyyy'), 1, null, 'Bp - többiekkel', 0 insert into application_jun values 7, 'Újdombóvár', 'résztvevő', 2, to_date'17-05-2006','dd-mm-yyyy'), 0, null, 'Bp - többiekkel', 0 insert into application_jun values 10, 'Csanádapáca', 'résztvevő', 3, to_date'20-05-2006','dd-mm-yyyy'), 1, null, 'város - többiekkel', 0

Gábor Oltványi Szentjánosbogár Camp Applications Database project 2006 p11/18 insert into application_jun values 10, 'Mocsa', 'résztvevő', 1, to_date'20-05-2006','dd-mm-yyyy'), 0, null, 'kocsival', 0 insert into application_jun values 10, 'Taksony', 'résztvevő', 2, to_date'20-05-2006','dd-mm-yyyy'), 0, null, 'Bp - többiekkel', 0 insert into application_jun values 11, 'Mocsa', 'résztvevő', 1, to_date'21-05-2006','dd-mm-yyyy'), 1, null, 'város - többiekkel', 0 insert into application_jun values 11, 'Újdombóvár', 'résztvevő', 2, to_date'21-05-2006','dd-mm-yyyy'), 0, null, 'Bp - többiekkel', 0 insert into application_jun values 12, 'Csanádapáca', 'résztvevő', 2, to_date'26-05-2006','dd-mm-yyyy'), 0, null, 'város - többiekkel', 0 insert into application_jun values 12, 'Hosszúhetény', 'résztvevő', 3, to_date'26-05-2006','dd-mm-yyyy'), 0, null, 'város - többiekkel', 0 insert into application_jun values 12, 'Taksony', 'résztvevő', 1, to_date'26-05-2006','dd-mm-yyyy'), 0, null, 'kocsival', 0 insert into application_jun values 13, 'Taksony', 'résztvevő', 2, to_date'30-05-2006','dd-mm-yyyy'), 0, null, 'Bp - többiekkel', 0 insert into application_jun values 13, 'Újdombóvár', 'résztvevő', 1, to_date'30-05-2006','dd-mm-yyyy'), 1, null, 'város - többiekkel', 0 insert into application_jun values 14, 'Csanádapáca', 'résztvevő', 2, to_date'31-05-2006','dd-mm-yyyy'), 0, null, 'Bp - többiekkel', 0 insert into application_jun values 14, 'Taksony', 'résztvevő', 3, to_date'31-05-2006','dd-mm-yyyy'), 0, null, 'Bp - többiekkel', 0 insert into application_jun values 14, 'Újdombóvár', 'résztvevő', 1, to_date'31-05-2006','dd-mm-yyyy'), 1, null, 'Bp - többiekkel', 0 insert into application_jun values 16, 'Csanádapáca', 'résztvevő', 1, to_date'06-05-2006','dd-mm-yyyy'), 1, null, 'város - többiekkel', 0 insert into application_jun values 16, 'Hosszúhetény', 'résztvevő', 2, to_date'06-05-2006','dd-mm-yyyy'), 0, null, 'Bp - többiekkel', 0 insert into application_jun values 17, 'Csanádapáca', 'résztvevő', 2, to_date'09-05-2006','dd-mm-yyyy'), 0, null, 'Bp - többiekkel', 0 insert into application_jun values 17, 'Taksony', 'résztvevő', 3, to_date'13-05-2006','dd-mm-yyyy'), 0, null, 'Bp - többiekkel', 0 insert into application_jun values 17, 'Mocsa', 'résztvevő', 4, to_date'13-05-2006','dd-mm-yyyy'), 0, null, 'Bp - többiekkel', 0 insert into application_jun values 17, 'Újdombóvár', 'résztvevő', 5, to_date'09-05-2006','dd-mm-yyyy'), 0, null, 'Bp - többiekkel', 0 insert into application_jun values 18, 'Hosszúhetény', 'résztvevő', 2, to_date'14-05-2006','dd-mm-yyyy'), 0, null, 'Bp - többiekkel', 0 insert into application_jun values 21, 'Csanádapáca', 'résztvevő', 3, to_date'18-05-2006','dd-mm-yyyy'), 0, null, 'Bp - többiekkel', 0 insert into application_jun values 21, 'Hosszúhetény', 'résztvevő', 1, to_date'18-05-2006','dd-mm-yyyy'), 1, null, 'kocsival', 0 insert into application_jun values 21, 'Mocsa', 'résztvevő', 2, to_date'18-05-2006','dd-mm-yyyy'), 0, null, 'kocsival', 0 insert into application_jun values 24, 'Hosszúhetény', 'résztvevő', 2, to_date'22-05-2006','dd-mm-yyyy'), 0, null, 'Bp - többiekkel', 0 insert into application_jun values 24, 'Mocsa', 'résztvevő', 1, to_date'22-05-2006','dd-mm-yyyy'), 1, null, 'Bp - többiekkel', 0 insert into application_jun values 25, 'Mocsa', 'résztvevő', 1, to_date'23-05-2006','dd-mm-yyyy'), 1, null, 'város - többiekkel', 0 insert into application_jun values 25, 'Újdombóvár', 'résztvevő', 2, to_date'23-05-2006','dd-mm-yyyy'), 0, null, 'kocsival', 0 insert into application_jun values 26, 'Csanádapáca', 'résztvevő', 2, to_date'27-05-2006','dd-mm-yyyy'), 0, null, 'Bp - többiekkel', 0 insert into application_jun values 26, 'Hosszúhetény', 'résztvevő', 3, to_date'27-05-2006','dd-mm-yyyy'), 0, null, 'Bp - többiekkel', 0 insert into application_jun values 26, 'Taksony', 'résztvevő', 1, to_date'27-05-2006','dd-mm-yyyy'), 1, null, 'Bp - többiekkel', 0 insert into application_jun values 27, 'Hosszúhetény', 'résztvevő', 3, to_date'01-06-2006','dd-mm-yyyy'), 0, null, 'város - többiekkel', 0 insert into application_jun values 27, 'Mocsa', 'résztvevő', 2, to_date'01-06-2006','dd-mm-yyyy'), 0, null, 'Bp - többiekkel', 0 insert into application_jun values 27, 'Újdombóvár', 'résztvevő', 1, to_date'01-06-2006','dd-mm-yyyy'), 1, null, 'kocsival', 0 insert into application_jun values 28, 'Hosszúhetény', 'résztvevő', 2, to_date'02-06-2006','dd-mm-yyyy'), 0, null, 'kocsival', 0 insert into application_jun values 28, 'Újdombóvár', 'résztvevő', 1, to_date'02-06-2006','dd-mm-yyyy'), 1, null, 'város - többiekkel', 0 insert into application_jun values 29, 'Csanádapáca', 'résztvevő', 1, to_date'07-05-2006','dd-mm-yyyy'), 1, 5000, 'Bp - többiekkel', 0 insert into application_jun values 29, 'Hosszúhetény', 'résztvevő', 2, to_date'07-05-2006','dd-mm-yyyy'), 0, 5000, 'kocsival', 0 insert into application_jun values 29, 'Újdombóvár', 'résztvevő', 3, to_date'07-05-2006','dd-mm-yyyy'), 0, 5000, 'kocsival', 0 insert into application_jun values 30, 'Csanádapáca', 'résztvevő', 1, to_date'08-05-2006','dd-mm-yyyy'), 1, null, 'Bp - többiekkel', 0 insert into application_jun values 30, 'Mocsa', 'résztvevő', 2, to_date'08-05-2006','dd-mm-yyyy'), 1, null, 'Bp - többiekkel', 0 insert into application_jun values 30, 'Taksony', 'résztvevő', 3, to_date'08-05-2006','dd-mm-yyyy'), 0, null, 'kocsival', 0 insert into application_jun values 31, 'Hosszúhetény', 'résztvevő', 2, to_date'15-05-2006','dd-mm-yyyy'), 0, null, 'kocsival', 0 insert into application_jun values 32, 'Újdombóvár', 'résztvevő', 2, to_date'16-05-2006','dd-mm-yyyy'), 0, null, 'kocsival', 0 insert into application_jun values 34, 'Csanádapáca', 'résztvevő', 1, to_date'10-05-2006','dd-mm-yyyy'), 1, null, 'Bp - többiekkel', 0 insert into application_jun values 34, 'Újdombóvár', 'résztvevő', 2, to_date'10-05-2006','dd-mm-yyyy'), 0, null, 'Bp - többiekkel', 0 insert into application_jun values 35, 'Hosszúhetény', 'résztvevő', 1, to_date'19-05-2006','dd-mm-yyyy'), 1, 5000, 'Bp - többiekkel', 0 insert into application_jun values 35, 'Taksony', 'résztvevő', 2, to_date'19-05-2006','dd-mm-yyyy'), 0, 5000, 'Bp - többiekkel', 0 insert into application_jun values 35, 'Újdombóvár', 'résztvevő', 3, to_date'19-05-2006','dd-mm-yyyy'), 0, null, 'kocsival', 0 insert into application_jun values 38, 'Mocsa', 'résztvevő', 1, to_date'24-05-2006','dd-mm-yyyy'), 1, null, 'város - többiekkel', 0 insert into application_jun values 38, 'Taksony', 'résztvevő', 2, to_date'24-05-2006','dd-mm-yyyy'), 1, null, 'kocsival', 0 insert into application_jun values 38, 'Újdombóvár', 'résztvevő', 3, to_date'24-05-2006','dd-mm-yyyy'), 0, null, 'kocsival', 0 insert into application_jun values 39, 'Csanádapáca', 'résztvevő', 2, to_date'25-05-2006','dd-mm-yyyy'), 1, 7500, 'kocsival', 0 insert into application_jun values 39, 'Hosszúhetény', 'résztvevő', 3, to_date'25-05-2006','dd-mm-yyyy'), 0, 7500, 'Bp - többiekkel', 0 insert into application_jun values 39, 'Mocsa', 'résztvevő', 1, to_date'25-05-2006','dd-mm-yyyy'), 0, 7500, 'Bp - többiekkel', 0 insert into application_jun values 40, 'Csanádapáca', 'résztvevő', 2, to_date'28-05-2006','dd-mm-yyyy'), 0, null, 'Bp - többiekkel', 0 insert into application_jun values 40, 'Taksony', 'résztvevő', 1, to_date'28-05-2006','dd-mm-yyyy'), 1, null, 'Bp - többiekkel', 0 select bid, takesplace, priority, canpay from application_jun; insert into Application_SEN values 8, 'Miskolc', 4000, 'kocsival' insert into Application_SEN values 23, 'Miskolc', 6000, 'Bp. - többiekkel' insert into Application_SEN values 37, 'Miskolc', 5500, 'Bp. - többiekkel' insert into Application_SEN values 1, 'Miskolc', 5000, 'Bp. - többiekkel' insert into Application_SENbid, takesplace, gettingto) values 9, 'Miskolc', 'Bp. - többiekkel' insert into Application_SENbid, takesplace, gettingto) values 22, 'Miskolc', 'Bp. - többiekkel' insert into Application_SENbid, takesplace, gettingto) values 36, 'Miskolc', 'Bp. - többiekkel' insert into Application_SENbid, takesplace, gettingto) values 3, 'Miskolc', 'kocsival' insert into Application_SENbid, takesplace, gettingto) values 28, 'Miskolc', 'Bp. - többiekkel' select * from Application_SEN; insert into Appeared values 1, 'Mocsa', to_date'29-06-2004','dd-mm-yyyy'), 'főbogár', null insert into appeared values 1, 'Budapest', to_date'11-02-2006','dd-mm-yyyy'), 'zenefelelős', null insert into appeared values 3, 'Budapest', to_date'16-09-2006','dd-mm-yyyy'), 'szervező', null insert into appeared values 5, 'Herény', to_date'07-07-2004','dd-mm-yyyy'), 'résztvevő', 'macska' insert into appeared values 6, 'Szeged-Szentmihály', to_date'21-04-2006','dd-mm-yyyy'), 'résztvevő', 'elsőképzős' insert into appeared values 6, 'Budapest', to_date'12-11-2005','dd-mm-yyyy'), 'résztvevő', null select * from APPEARED; insert into GivesHome values 1, 'Taksony', 2, 4, 'x f y l', null insert into GivesHome values 2, 'Taksony', 2, 4, 'x f y l', null insert into GivesHome values 3, 'Taksony', 2, 3, 'x f y l', null insert into GivesHome values 4, 'Hosszúhetény', 2, 5, 'x f y l', null insert into GivesHome values 5, 'Hosszúhetény', 2, 5, 'x f y l', null insert into GivesHome values 6, 'Hosszúhetény', 2, 2, 'x f y l', null insert into GivesHome values 7, 'Hosszúhetény', 2, 6, 'x f y l', null insert into GivesHome values 8, 'Csanádapáca', 2, 6, 'x f y l', null insert into GivesHome values 9, 'Csanádapáca', 2, 4, 'x f y l', null insert into GivesHome values 10, 'Csanádapáca', 2, 2, 'x f y l', null insert into GivesHome values 11, 'Csanádapáca', 2, 4, 'x f y l', null insert into GivesHome values 12, 'Újdombóvár', 2, 3, 'x f y l', null insert into GivesHome values 13, 'Újdombóvár', 2, 4, 'x f y l', null insert into GivesHome values 14, 'Újdombóvár', 2, 4, 'x f y l', null insert into GivesHome values 15, 'Esztergom', 2, 6, 'x f y l', null insert into GivesHome values 16, 'Esztergom', 2, 6, 'x f y l', null insert into GivesHome values 17, 'Esztergom', 2, 3, 'x f y l', null insert into GivesHome values 18, 'Esztergom', 2, 4, 'x f y l', null insert into GivesHome values 19, 'Mocsa', 2, 4, 'x f y l', null insert into GivesHome values 20, 'Mocsa', 2, 4, 'x f y l', null select * from GivesHome; insert into RoomIn values 'Miskolc', 205 insert into RoomIn values 'Miskolc', 210 insert into RoomIn values 'Miskolc', 313 select * from RoomIn; --4. block insert into accomodated accomodated values 12, 1 insert into accomodated values 34, 1 insert into accomodated values 25, 1 insert into accomodated values 3, 2 insert into accomodated values 14, 2 insert into accomodated values 15, 3 insert into accomodated values 31, 3 insert into accomodated values 7, 4 insert into accomodated values 37, 4 insert into accomodated values 21, 5 insert into accomodated values 13, 5 insert into accomodated values 10, 6 insert into accomodated values 11, 6 insert into accomodated values 17, 7 insert into GroupMember insert into accomodated values 22, 7 insert into accomodated values 9, 8 insert into accomodated values 33, 8 insert into accomodated values 8, 9 insert into accomodated values 23, 9 insert into accomodated values 36, 10 insert into accomodated values 28, 10 insert into accomodated values 32, 11 insert into accomodated values 40, 11 insert into accomodated values 4, 12 insert into accomodated values 18, 12 insert into accomodated values 16, 13 insert into accomodated values 26, 13 insert into accomodated values 30, 14 insert into accomodated values 35, 14 insert into accomodated values 27, 15 insert into accomodated values 38, 15 insert into accomodated values 39, 16 insert into accomodated values 20, 16 insert into accomodated values 6, 17 insert into accomodated values 24, 17 insert into accomodated values 29, 18 insert into accomodated values 1, 18 insert into accomodated values 2, 19 insert into accomodated values 5, 19 insert into accomodated values 19, 20 select * from ACCOMODATED; insert into GroupMember values 6, 'Hajdúdorog', 'gyémánt' GroupMember values 1, 'Csanádapáca', 'messzirelátó' insert into GroupMember values 7, 'Hosszúhetény', 'türelmes' insert into GroupMember values 2, 'Csanádapáca', 'figyelmes' insert into GroupMember values 8, 'Miskolc', 'helybentaláljákki1' insert into GroupMember values 3, 'Esztergom', 'farkas' insert into GroupMember values 9, 'Miskolc', 'helybentaláljákki2' insert into GroupMember values 4, 'Esztergom', 'nyúl' insert into GroupMember values 10, 'Mocsa', 'figyelmes' insert into GroupMember values 5, 'Hajdúdorog', 'arany'

Gábor Oltványi Szentjánosbogár Camp Applications Database project 2006 p12/18 insert into GroupMember values 11, 'Mocsa', 'türelmes' insert into GroupMember values 31, 'Esztergom', 'farkas' insert into GroupMember values 12, 'Taksony', 'messzirelátó' insert into GroupMember values 32, 'Esztergom', 'nyúl' insert into GroupMember values 13, 'Újdombóvár', 'figyelmes' insert into GroupMember values 33, 'Hajdúdorog', 'arany' insert into GroupMember values 14, 'Újdombóvár', 'türelmes' insert into GroupMember values 34, 'Hajdúdorog', 'gyémánt' insert into GroupMember values 15, 'Csanádapáca', 'messzirelátó' insert into GroupMember values 35, 'Hosszúhetény', 'türelmes' insert into GroupMember values 16, 'Csanádapáca', 'figyelmes' insert into GroupMember values 36, 'Miskolc', 'helybentaláljákki1' insert into GroupMember values 17, 'Esztergom', 'farkas' insert into GroupMember values 37, 'Miskolc', 'helybentaláljákki2' insert into GroupMember values 18, 'Esztergom', 'nyúl' insert into GroupMember values 38, 'Mocsa', 'figyelmes' insert into GroupMember values 19, 'Hajdúdorog', 'arany' insert into GroupMember values 39, 'Mocsa', 'türelmes' insert into GroupMember values 20, 'Hajdúdorog', 'gyémánt' insert into GroupMember values 40, 'Taksony', 'messzirelátó' insert into GroupMember values 21, 'Hosszúhetény', 'türelmes' insert into GroupMember values 1, 'Hajdúdorog', 'gyémánt' insert into GroupMember values 22, 'Miskolc', 'helybentaláljákki1' insert into GroupMember values 1, 'Miskolc', 'helybentaláljákki1' insert into GroupMember values 23, 'Miskolc', 'helybentaláljákki2' insert into GroupMember values 3, 'Miskolc', 'helybentaláljákki2' insert into GroupMember values 24, 'Mocsa', 'figyelmes' insert into GroupMember values 4, 'Hajdúdorog', 'arany' insert into GroupMember values 25, 'Mocsa', 'türelmes' insert into GroupMember values 6, 'Taksony', 'messzirelátó' insert into GroupMember values 26, 'Taksony', 'messzirelátó' insert into GroupMember values 7, 'Hajdúdorog', 'gyémánt' insert into GroupMember values 27, 'Újdombóvár', 'figyelmes' insert into GroupMember values 17, 'Csanádapáca', 'messzirelátó' insert into GroupMember values 28, 'Újdombóvár', 'türelmes' insert into GroupMember values 21, 'Hajdúdorog', 'gyémánt' insert into GroupMember values 29, 'Csanádapáca', 'messzirelátó' insert into GroupMember values 28, 'Miskolc', 'helybentaláljákki1' insert into GroupMember values 30, 'Csanádapáca', 'figyelmes' insert into GroupMember values 34, 'Csanádapáca', 'figyelmes' select * from GroupMember; insert into SleepIn values 8, 205 insert into SleepIn values 9, 210 insert into SleepIn values 22, 313 insert into SleepIn values 23, 205 insert into SleepIn values 36, 210 insert into SleepIn values 37, 313 insert into SleepIn values 1, 205 insert into SleepIn values 3, 210 insert into SleepIn values 28, 313 select * from SleepIn;

Gábor Oltványi Szentjánosbogár Camp Applications Database project 2006 p13/18 SELECTING FROM TABLES QUERIES IN SQL Where will be camps this summer? What kind are they? SELECT camptype, takesplace FROM campthisyear ORDER BY camptype ; List the people applicate to camps! ID, name, where, priority) PROMPT People applicated to Children's, Adolescents' or Juniors' Camp: SELECT b.bid, name, takesplace, priority FROM szentjanosbogar b, application_jun a WHERE a.bid = b.bid ORDER BY name ; PROMPT People applicated to Seniors' Camp: SELECT b.bid, name, takesplace FROM szentjanosbogar b, application_sen a WHERE b.bid = a.bid ORDER BY name People applicated to Seniors' Camp: ; BID NAME TAKESPLACE --- -------------------- -------- 3 B?rcs?k Csaba Miskolc 8 Kara M?ria Miskolc 9 Kereszt?ny Izabella Miskolc 1 Oltv?nyi G?bor Miskolc 22 Pal?gyi Rita Miskolc 23 Proh?szka J?nos Miskolc 28 Szalay Szilvia Miskolc 36 T?th B?lint Miskolc 37 T?th J?lia Miskolc 9 sor kijelolve. Who will really go to Children s or Adolescents Camps? SELECT b.bid, name, takesplace, priority FROM szentjanosbogar b, application_jun a WHERE a.bid = b.bid AND takesplace NOT LIKE 'Hajd%' AND isgoingthere=1 ORDER BY name ; BID NAME TAKESPLACE PRIORITY -- ----------------- ---------------- -- 2 B?rcs?k Anik? Csan?dap?ca 1 3 B?rcs?k Csaba Esztergom 1 4 Csillik Zs?fia Esztergom 1 6 Fodor Ern? Taksony 1 7 Gyorgyovich J?nos Hossz?het?ny 1 10 Kereszt?ny M?ria Csan?dap?ca 3 11 Kiss Andr?s Mocsa 1 13 Kov?cs?gnes?jdomb?v?r 1 14 Laki B?la?jdomb?v?r 1 15 Mezey Imre Csan?dap?ca 1 16 Nagy Gy?z? Csan?dap?ca 1 17 Nagy Irma Esztergom 1 18 Nagy J?lia Esztergom 1 1 Oltv?nyi G?bor Csan?dap?ca 1 21 Pal?gyi J?zsef Hossz?het?ny 1 24 Sajg? Anik? Mocsa 1 25 Sim? Luca Mocsa 1 26 Szab? J?nos Taksony 1 27 Szab? Katalin?jdomb?v?r 1 28 Szalay Szilvia?jdomb?v?r 1 29 Sz?ke G?bor Csan?dap?ca 1 30 Sz?ke Le? Mocsa 2 30 Sz?ke Le? Csan?dap?ca 1 31 Sz?ke M?nika Esztergom 1 32 T?bori Fanni Esztergom 1 34 T?th Adorj?n Csan?dap?ca 1 35 T?th B?lint Hossz?het?ny 1 38 T?th Nat?lia Taksony 1 39 T?th Tam?s Csan?dap?ca 2 40 Vandlik M?ria Taksony 1 30 sor kijelolve. CAMPTYPE TAKESPLACE ------------ ------------ gyerekt?bor Csan?dap?ca gyerekt?bor Taksony gyerekt?bor Mocsa gyerekt?bor Hossz?het?ny gyerekt?bor?jdomb?v?r ifit?bor Hajd?dorog kamaszt?bor Esztergom szeniort?bor Miskolc 8 sor kijelolve. People applicated to Children's, Adolescents' or Juniors' Camp: BID NAME TAKESPLACE/PRIORITY --- ------------------- ---------------- 2 B?rcs?k Anik? Csan?dap?ca 1 2 B?rcs?k Anik? Taksony 2 3 B?rcs?k Csaba Esztergom 1 3 B?rcs?k Csaba Hossz?het?ny 2 4 Csillik Zs?fia Hajd?dorog 1 4 Csillik Zs?fia Taksony 2 4 Csillik Zs?fia Esztergom 1 5 Csonka Katalin Hajd?dorog 1 6 Fodor Ern? Csan?dap?ca 2 6 Fodor Ern? Taksony 1 6 Fodor Ern? Hajd?dorog 1 7 Gyorgyovich J?nos Hajd?dorog 1 7 Gyorgyovich J?nos?jdomb?v?r 2 7 Gyorgyovich J?nos Hossz?het?ny 1 7 Gyorgyovich J?nos Csan?dap?ca 3 10 Kereszt?ny M?ria Mocsa 1 10 Kereszt?ny M?ria Taksony 2 10 Kereszt?ny M?ria Csan?dap?ca 3 11 Kiss Andr?s Mocsa 1 11 Kiss Andr?s?jdomb?v?r 2 12 Kiss Em?ke Taksony 1 12 Kiss Em?ke Csan?dap?ca 2 12 Kiss Em?ke Hossz?het?ny 3 13 Kov?cs?gnes?jdomb?v?r 1 13 Kov?cs?gnes Taksony 2 14 Laki B?la Csan?dap?ca 2 14 Laki B?la Taksony 3 14 Laki B?la?jdomb?v?r 1 15 Mezey Imre Esztergom 2 15 Mezey Imre Csan?dap?ca 1 16 Nagy Gy?z? Hossz?het?ny 2 16 Nagy Gy?z? Csan?dap?ca 1 17 Nagy Irma Esztergom 1 17 Nagy Irma Csan?dap?ca 1 17 Nagy Irma Taksony 2 17 Nagy Irma Mocsa 3 17 Nagy Irma?jdomb?v?r 2 18 Nagy J?lia Esztergom 1 18 Nagy J?lia Hossz?het?ny 2 19 Nagy Kinga Hajd?dorog 1 1 Oltv?nyi G?bor Csan?dap?ca 1 1 Oltv?nyi G?bor Taksony 2 1 Oltv?nyi G?bor Hajd?dorog 1 20 Oltv?nyi M?rton Hajd?dorog 1 21 Pal?gyi J?zsef Hajd?dorog 1 21 Pal?gyi J?zsef Mocsa 2 21 Pal?gyi J?zsef Hossz?het?ny 1 21 Pal?gyi J?zsef Csan?dap?ca 3 24 Sajg? Anik? Hossz?het?ny 2 24 Sajg? Anik? Mocsa 1 25 Sim? Luca?jdomb?v?r 2 25 Sim? Luca Mocsa 1 26 Szab? J?nos Csan?dap?ca 2 26 Szab? J?nos Hossz?het?ny 3 26 Szab? J?nos Taksony 1 27 Szab? Katalin?jdomb?v?r 1 27 Szab? Katalin Hossz?het?ny 3 27 Szab? Katalin Mocsa 2 28 Szalay Szilvia?jdomb?v?r 1 28 Szalay Szilvia Hossz?het?ny 2 29 Sz?ke G?bor Csan?dap?ca 1 29 Sz?ke G?bor?jdomb?v?r 3 29 Sz?ke G?bor Hossz?het?ny 2 30 Sz?ke Le? Taksony 3 30 Sz?ke Le? Csan?dap?ca 1 30 Sz?ke Le? Mocsa 2 31 Sz?ke M?nika Hossz?het?ny 2 31 Sz?ke M?nika Esztergom 1 32 T?bori Fanni?jdomb?v?r 2 32 T?bori Fanni Esztergom 1 33 Tornai Kinga Hajd?dorog 1 34 T?th Adorj?n Hajd?dorog 1 34 T?th Adorj?n Csan?dap?ca 1 34 T?th Adorj?n?jdomb?v?r 2 35 T?th B?lint Hossz?het?ny 1 35 T?th B?lint Taksony 2 35 T?th B?lint?jdomb?v?r 3 38 T?th Nat?lia Mocsa 1 38 T?th Nat?lia?jdomb?v?r 3 38 T?th Nat?lia Taksony 2 39 T?th Tam?s Csan?dap?ca 2 39 T?th Tam?s Hossz?het?ny 3 39 T?th Tam?s Mocsa 1 40 Vandlik M?ria Csan?dap?ca 2 40 Vandlik M?ria Taksony 1 85 sor kijelolve.

Gábor Oltványi Szentjánosbogár Camp Applications Database project 2006 p14/18 Who has applicated to more than two camps? List them into descending order! Don t care the Seniors Camp!) SELECT name, COUNT*) FROM szentjanosbogar b, application_jun a WHERE a.bid=b.bid HAVING count*) > 2 GROUP BY name ORDER BY count*) desc ; NAME COUNT*) --------------------- Nagy Irma 5 Gyorgyovich J?nos 4 Pal?gyi J?zsef 4 Sz?ke Le? 3 T?th B?lint 3 Fodor Ern? 3 Kiss Em?ke 3 Szab? Katalin 3 T?th Adorj?n 3 Laki B?la 3 Szab? J?nos 3 Sz?ke G?bor 3 Oltv?nyi G?bor 3 T?th Tam?s 3 Csillik Zs?fia 3 Kereszt?ny M?ria 3 16 sor kijelolve. To which Children's or Adolescent's Camp Nagy Irma did applicate? What is her priorities? SELECT a.takesplace, priority, camptype FROM application_jun A, szentjanosbogar B, CampThisYear C WHERE a.bid=b.bid AND LOWERb.name) LIKE 'nagy_irma' Esztergom Csan?dap?ca AND a.takesplace=c.takesplace Taksony Mocsa AND LOWERc.camptype) LIKE 'gyerek%'?jdomb?v?r OR LOWERc.camptype) LIKE 'kamasz%') 5 sor kijelolve. ORDER BY priority ; TAKESPLACE PRIORITY CAMPTYPE ------------------------------ 1 kamaszt?bor 2 gyerekt?bor 3 gyerekt?bor 4 gyerekt?bor 5 gyerekt?bor Who did applicate to Taksony? What are their statuses? Is this their first marked place? Will they go there? SELECT name ' ' a.status ')' nev_status, priority, DECODEisgoingthere, 1, 'igen', 'nem') oda FROM szentjanosbogar b, application_jun a where a.bid=b.bid and takesplace='taksony' order by status, oda, name ; NEV_STATUS PRIORITY ODA ------------------------------------- Csillik Zs?fia f?bog?r) 2 nem Oltv?nyi G?bor f?bog?r) 2 nem Fodor Ern? r?sztvev?) 1 igen Szab? J?nos r?sztvev?) 1 igen T?th Nat?lia r?sztvev?) 2 igen Vandlik M?ria r?sztvev?) 1 igen B?rcs?k Anik? r?sztvev?) 2 nem Kereszt?ny M?ria r?sztvev?) 2 nem Kiss Em?ke r?sztvev?) 1 nem Kov?cs?gnes r?sztvev?) 2 nem Laki B?la r?sztvev?) 3 nem Nagy Irma r?sztvev?) 2 nem Sz?ke Le? r?sztvev?) 3 nem T?th B?lint r?sztvev?) 2 nem 14 sor kijelolve. Who will sleep in the same room during the Seniors Camp? Where are they from? SELECT roomno, name, addrcity ROOMNO NAME FROM szentjanosbogar b, sleepin s WHERE b.bid = s.bid ORDER BY roomno, name ; List the groups in the camps this summer! Where, GroupName, Name, Age) SELECT c.takesplace gyerektabor, groupname csoportnev, name ' ' to_number 2006 - to_char BornDate, 'YYYY')) ')' neve_eletkora FROM szentjanosbogar b, groupmember gm, campthisyear c WHERE b.bid=gm.bid AND c.takesplace=gm.takesplace AND c.camptype LIKE 'gyerek%' ORDER BY takesplace, groupname, neve_eletkora ; ADDRCITY ------ -------------------- ------------- 205 Kara M?ria Nick 205 Oltv?nyi G?bor Szeged 205 Proh?szka J?nos Kup 210 B?rcs?k Csaba Hidegs?g 210 Kereszt?ny Izabella Csorna 210 T?th B?lint Budakeszi 313 Pal?gyi Rita Bakonycsernye 313 Szalay Szilvia Tolm?cs 313 T?th J?lia Csert? 9 sor kijelolve. GYEREKTABOR CSOPORTNEV NEVE_ELETKORA ------------- ------------ ---------------------- Csan?dap?ca figyelmes B?rcs?k Anik? 19) Csan?dap?ca figyelmes Nagy Gy?z? 21) Csan?dap?ca figyelmes Sz?ke Le? 18) Csan?dap?ca figyelmes T?th Adorj?n 19) Csan?dap?ca messzirel?t? Mezey Imre 10) Csan?dap?ca messzirel?t? Nagy Irma 12) Csan?dap?ca messzirel?t? Oltv?nyi G?bor 21) Csan?dap?ca messzirel?t? Sz?ke G?bor 11) Hossz?het?ny t?relmes Gyorgyovich J?nos 20) Hossz?het?ny t?relmes Pal?gyi J?zsef 19) Hossz?het?ny t?relmes T?th B?lint 10)?jdomb?v?r figyelmes Kov?cs?gnes 19)?jdomb?v?r figyelmes Szab? Katalin 17)?jdomb?v?r t?relmes Laki B?la 18)?jdomb?v?r t?relmes Szalay Szilvia 21) Mocsa figyelmes Kereszt?ny M?ria 16) Mocsa figyelmes Sajg? Anik? 10) Mocsa figyelmes T?th Nat?lia 13) Mocsa t?relmes Kiss Andr?s 17) Mocsa t?relmes Sim? Luca 18) Mocsa t?relmes T?th Tam?s 17) Taksony messzirel?t? Fodor Ern? 17) Taksony messzirel?t? Kiss Em?ke 12) Taksony messzirel?t? Szab? J?nos 13) Taksony messzirel?t? Vandlik M?ria 16) 25 sor kijelolve.

Gábor Oltványi Szentjánosbogár Camp Applications Database project 2006 p15/18 FUNCTIONAL DEPENDENCIES Here are the Functional Dependencies in my tables. I haven t written the FDs of some tables Accomodated, Appeared, Application_Sen, ChildAdolJunior, ClaimToBeIn1Group, ClaimToBeIn1Home, ClaimToHave1Leader, GivesHome, Grop, GroupMember, Room, RoomIn, Senior, SleepIn, TripTogether), because their FDs are like this: F + = { keys) "; trivials }. EVENT ExPlace, EventStarted, EventEnded, EventType F Event + = { ExPlace, EventStarted "; EventType, EventStarted EventEnded; EventType, EventEnded EventStarted; trivials }. SZENTJANOSBOGAR BID, Name, AddrCity, AddrZip, AddrStreet, MobPhone, HomePhone, Email, BornPlace, BornDate, Class, ParsonName, ParishAddress, ParishPhone, ReligLeader, ParentName, ParentNotification, IllName, Medicine, WillHaveMedicine F Szentjanosbogar + = { BID "; Name, AddrCity, AddrStreet "; AddrCity, AddrStreet AddrZip; AddrStreet, AddrZip AddrCity; ParsonName ParishAddress, ParishPhone; ParishAddress ParsonName, ParishPhone; ParishPhone ParsonName, ParishPhone ; trivials }. INHABITANT IID, Name, AddrCity, AddrZip, AddrStreet, MobPhone, HomePhone, WorkPhone, Email, DistanceFrom, Vehicle F Inhabitant + = { IID "; Name, AddrCity, AddrStreet "; AddrCity, AddrStreet AddrZip; AddrStreet, AddrZip AddrCity; trivials }. CAMPTHISYEAR CampType, TakesPlace, Starts, Ends, Costs, NumberLimit, Topic, HomeWork F CampThisYear + = { TakesPlace "; CampType Start, Ends, Costs, Topic, HomeWork; trivials }. Comment: the "TakesPlace CampType" dependency is the most important!

Gábor Oltványi Szentjánosbogár Camp Applications Database project 2006 p16/18 NORMALIZATION TO BCNF Here are the results of decomposition to Boyce-Codd Normal Form. I will use short names for my attributes. E := Event, P = explace, S := eventstarted, E := eventended, T := eventtype. E P, S, E, T F E = { PS ET, TS E, TE S } E 11 = T), E 12 = E), E 13 S F E11 = F E12 = F E13 = { }. E 2 = TEP F E2 = { }. C := CampThisYear; T := camptype; P := takesplace; N := NumberLimit; := others { Starts, Ends, Costs, Topic, HomeWork }. CT, P, N, F C = { P T,N, ; T } C 1 = T, ), F C1 = { T }. C 2 = P, T, N F C2 = { P TN }. B := Szentjanosbogar; B := BID; N := Name; C := AddrCity; Z := AddrZip; S := AddrStreet; P := ParsonName, A := ParishAddress, F := ParishPhone; := others { MobPhone, HomePhone, Email, BornPlace, BornDate, Class, ReligLeader, ParentName, ParentNotification, IllName, Medicine, WillHaveMedicine }. BB, N, C, S, Z, P, A, F, F B = { B NCSZPAF ; NCS BZPAF ; CS Z; SZ C; P AF; A PF; F AP }. B 11 = P), B 12 = A), B 13 F F B11 = F B12 = F B13 = { }. B 2111 = S, C), B 2112 = S, Z F B2111 = F B2112 = { }. B 212 = N, S, C. P, F B212 = { NSC P }. B 221 = B), B 222 = N, C, S F B221 = F B222 = { }. I := Inhabitant; I := IID; N := Name; C := AddrCity; Z := AddrZip; S := AddrStreet; := others { MobPhone, HomePhone, WorkPhone, Email, DistanceFrom, Vehicle }. II, N, C, S, Z, F I = { I NCSZ ; NCS IZ ; CS Z; SZ C; }. I 111 = S, C), I 112 = S, Z F I_111 = F I_112 = { }. I 12 = N, S, C. F I_12 = { NSC }. I 21 = I), I 22 = N, C, S F I_21 = F I_22 = { }.

Gábor Oltványi Szentjánosbogár Camp Applications Database project 2006 p17/18 TRIGGERS Here s only two elementary triggers. In this project we have to have many triggers, but it is only two yet ) CREATE TABLE Log Action VARCHAR6), ActionTime DATE, Source VARCHAR25), Description VARCHAR1000) CREATE OR REPLACE TRIGGER LogApplJun BEFORE DELETE OR UPDATE OR INSERT ON Application_JUN FOR EACH ROW DECLARE BEGIN IF DELETING THEN INSERT INTO LogAction, ActionTime, Source, Description) VALUES'Delete', sysdate, 'Application_JUN', 'bid: ' :OLD.BID ' takesplace: ' :OLD.takesplace ' priority: ' :OLD.priority END IF; IF INSERTING THEN INSERT INTO LogAction, ActionTime, Source, Description) VALUES'Insert', sysdate, 'Application_JUN', 'bid: ' :NEW.BID ' takesplace: ' :NEW.takesplace ' priority: ' :NEW.priority END IF; IF UPDATING THEN INSERT INTO LogAction, ActionTime, Source, Description) VALUES'Update', sysdate, 'Application_JUN', 'bid: ' :OLD.BID ' takesplace: ' :OLD.takesplace ' priority: ' :OLD.priority ' -> ' 'bid: ' :NEW.BID ' takesplace: ' :NEW.takesplace ' priority: ' :NEW.priority END IF; END; / CREATE OR REPLACE TRIGGER LogApplSen BEFORE DELETE OR UPDATE OR INSERT ON Application_SEN FOR EACH ROW DECLARE BEGIN IF DELETING THEN INSERT INTO LogAction, ActionTime, Source, Description) VALUES'Delete', sysdate, 'Application_SEN', 'bid: ' :OLD.BID ' takesplace: ' :OLD.takesplace END IF; IF INSERTING THEN INSERT INTO LogAction, ActionTime, Source, Description) VALUES'Insert', sysdate, 'Application_SEN', 'bid: ' :NEW.BID ' takesplace: ' :NEW.takesplace END IF; IF UPDATING THEN INSERT INTO LogAction, ActionTime, Source, Description) VALUES'Update', sysdate, 'Application_SEN', 'bid: ' :OLD.BID ' takesplace: ' :OLD.takesplace ' -> ' 'bid: ' :NEW.BID ' takesplace: ' :NEW.takesplace END IF; END; / And here s a trigger with translation errors: create or replace trigger DEFAULTPAYING after insert on APPLICATION_JUN for each row declare begin if CANPAY = null then :CANPAY := 6600; end if; end; / -- show errors trigger defaultpaying; -- 4/8 PLS-00049: bad bind variable 'CANPAY'

Gábor Oltványi Szentjánosbogár Camp Applications Database project 2006 p18/18 SPECIFIKÁCIÓ MAGYARUL Gyerekek Szentjanosbogar) jelentkeznek idei nyári táborokba CampThisYear), amiket az ország különböző helységein TakesPlace) szerveznek. Ezekben a szeniortábor CampThisYear/Senior) kivételével tehát a gyerek-, kamasz- és ifitáborokban CampThisYear/ChildAdolJunior)) helybéli lakosok Inhabitant) szállásolják el Accomodating + GivesHome) a tábor résztvevőit. Szeniortáborban egy intézményben alszik SleepIn) mindenki, szobákban RoomIn) Room: Number, Max létszám). Mindegyik tábor csoportokban Grop) zajlik, a szenior kivételével vannak csoportvezetők. Öt gyerektábor, egy kamasztábor zajlik egy időben, a következő héten egy ifitábor, és később egy szeniortábor. Így a gyerektáborba jelentkezőknek meg kell adni egy sorrendet Priority), hogy melyik helyszínen lévő táborba szeretnének inkább menni, ha betellne az első helyen megjelölt táborhelyszín, ugyanis korlátozott a helyi befogadók száma. Ezért a később jelentkezők ApplDate alapján) a másodikként, harmadik, stb. bejelölt táborba tudnak csak menni véglegesen az IsGoingThere logikai érték igaz, ha tényleg oda megy). Egy archívum is csatolva van az adatbázishoz, az egyes korábbi szentjánosbogár-rendezvényekről Event), és arról, hogy ki hol volt Appeared) eddig. RÉSZLETEK: Egy jelentkező lehet résztvevő, szervező, tábori pap, szeniortáboron kívül csoportvezető, táborvezető és egyéb más posztú is Status). A gyerek jelentkezési lapon a következő mezők vannak: név Name), lakcím AddrCity, AddrZip, AddrStreet), telefonszámok MobPhone, HomePhone), e-mail EMail), születés hely BornPlace), idő BornDate), osztály Class), plébános neve ParsonName), plébánia címe ParishAddress), telefonszáma ParishPhone), hittanár vagy bogárklub-vezető ReligLeader), betegség IllName), gyógyszer, ha szed Medicine), visz-e magával a táborba WillHaveMedicine), szülő/gondviselő neve ParentName), elérhetősége ParentNotification), mennyit tudnak befizetni CanPay) a tábori költségbe lehet többet is, kevesebbet is, mód szerint), és hogy mivel érkezik a táborba GettingTo, ált. lehet: kocsival, Budapestről a többiekkel, környéki városból a többiekkel). A jelentkezőknek lehet igényük, hogy kivel vagy kivel ne: H_ToBeOrNot, G_ToBeOrNot) kerüljenek egy szállásra ClaimToBeIn1Home), vagy egy csoportba ClaimToBeIn1Group) {, ill. ki vagy ki ne: L_ToBeOrNot) legyen a csoportvezetőjük ClaimToHave1Leader) }. A szállásadótól a néven, címen, telefonszámokon + WorkPhone) kívül megkérdezzük, hogy hány gyereket fogadnának be CanAccChild), hányat végső esetben CanAccMax), hogy milyen fiú-lány igényük van GirlBoyRate), hány percre laknak a reggeli találkozóhelytől DistanceFrom), és milyen járművel közelíthető meg ez Vehicle: gyalog, bicikli, kocsi, busz). Egy korábbi eseményről eltároljuk a típusát EventType: gyerektábor, kamasztábor, ifitábor, szeniortábor, ősbogártábor, bál, rajzás, métabajnokság, lelkigyakorlat, vezetőképző, táborelőkészítő nap, konditábor, játékklub, bogármise), helyszínét ExPlace), kezdetét EventStarted) és végét EventEnded), az egyes megjelenteknél Appeared) azt is, hogy milyen státuszban voltak ExStatus: szevező, főbogár, résztvevő, stb.), ill. ha volt, akkor az akkori csoportnevüket is ExGroup). Az idei táborok különböző helyszíneken TakesPlace) szerveződnek egy évben nincs két tábor egy helyen), fontos a kezdete Starts), vége Ends), van egy költsége Costs), témája Topic), amihez egy jelképes házifeladatot kapnak a résztvevők HomeWork). A létszámkorlát number_limit) a szállásadók által nyújtott helyekből áll össze. Noha négy korosztály van megkülönböztetve, két jelentkezési sablon különül el: a gyerek-, kamasz- és ifitáboroké Application_BOG) ill. a szeniortáboré Application_SEN). A csoportoknak Grop) neve van GroupName), a csoportnevek azonosak az összes gyerektáborban. A csoportvezetők a jelentkezők státuszából jön ki, a létszám a csoportbeosztásból. A tábor során egy kirándulás is zajlik, aminek 3-4 busszal, buszonként 3-4 csoport TripTogether) megy. Fontos még elkülöníteni az idősíkokat. A jelentkezéseknél kitöltődnek az állandó személyes adatok is, és olyan adatok is, amelyek csak a jelentkezésre vonatkoznak. Így nem szabad összeegyeztetnünk pl. a leendő táborosokat a már elszállásoltaktól. Akkor lesz tábori résztvevő valaki, ha az IsGoingThere attribútuma 1 vagyis igaz, hogy oda megy