Mathematical and Physical Journal
for High Schools
Issued by the MATFUND Foundation
Already signed up?
New to KöMaL?

Problem I. 263. (March 2011)

I. 263. In Hungary the highest state award is the Kossuth prize. This was the topic of the database management task of the Hungarian matriculation exam in informatics in English in May 2010.

The files szemely.txt, foglalkozas.txt and mikor.txt contain data of the recipients of this prize between 1948 and 2010. (Here the words ``szemely'', ``foglalkozas'' and ``mikor'' refer to the person, the profession and the date, respectively.)

1. Create a new database named i263. Import the data tables into the database with names szemely, foglalkozas and mikor. The .txt files are UTF-8 encoded tabulator separated files and the field names are contained in the first lines.

2. After importing, the appropriate data formats and keys should be set:

Tables:

You should solve the following tasks. When a query is answered, no other data only the requested results should appear. Queries should be saved as indicated in the parentheses.

3. List the names and the year of reception of actors and performers. (The list should be sorted into descending order according to the year.) (3szin)

4. By using a query, list in alphabetical order the names having at least 4 professions. (4fogl)

5. By using a query, list the names and the year of receiving the prize of people having the same profession as Kozma László. Kozma László himself should not appear in this list. (5kozma)

6. What is the profession of those having received the Kossuth prize at least 3 times? Each profession should appear only once in this list. (6tobbszor)

7. By using a query, determine the professions receiving the most prizes in the year when the most prizes were awarded. (7legtobb)

8. List those professions existing in 1950 or before among the recipients, but not after this year. Each profession should appear only once in this list. (8nincs)

9. List each person whose profession names (more than one) contain the word ``szín''. Each person should appear only once in the result. (9szintobb)

Your database (i263.odb, i263.mdb, ...) together with a short documentation (i263.txt, i263.pdf) - also describing the name and version number of the database application - should be submitted in a compressed file i263.zip.

(10 pont)

Deadline expired on April 11, 2011.


Sorry, the solution is available only in Hungarian. Google translation

Megoldásokról

A 2010. májusi idegen nyelvű informatika érettségi gyakorlati vizsgán szerepelt Kossuth-díj adatbázis tábláit használta ez a feladat. Érettségi típusú feladat, amely meglepő módon sok problémát jelentett a versenyzőknek. Egyetlen egy 100 %-os megoldás érkezett. A megoldók nagy része az Access lekérdező-rácsát alkalmazta a lekérdezések elkészítéséhez. Ez megoldási sebességben hatékony, de logikailag összetettebb feladatokat már könnyebb az SQL-nyelv segítségével megoldani.

Típushibának tekinthetjük, hogy többen a 4fogl lekérdezésben a díjazottakat nevükkel azonosították. A szemely.nev mező nem tekinthető kulcsnak, hiszen sok névrokon szerepel az adatbázisban. A táblák és a mezők leírása, valamint a táblák kapcsolati ábrája pontosan megadja a kulcsmezőket. A mintamegoldás mellett a feladat értékelési útmutatóját is közöljük, amelyből az SQL-nyelvű megoldások tovább elemezhetők.

A táblák és a lekérdezések eredményeinek vizsgálata történelmi szempontból is sok érdekességeket mutatnak.


Statistics:

9 students sent a solution.
10 points:Szabó 928 Attila.
9 points:Barkaszi Richárd Miklós, Debreceni Bálint, Kalló Kristóf.
8 points:1 student.
7 points:2 students.
6 points:2 students.

Problems in Information Technology of KöMaL, March 2011