KöMaL - Középiskolai Matematikai és Fizikai Lapok
Sign In
Sign Up
 Magyar
Information
Contest
Journal
Articles

 

Problem I. 132. (April 2006)

I. 132. An SQL database is used to maintain data of a secondary school contest of informatics. The results are also published on the Internet, where answers to the following questions are available.

  1. Display for each problem its number, text and the maximal number points that can be earned.

  2. Compute the average number of points earned by the contestants.

  3. List the distribution of points for Problem 4, similarly to the statistics of KöMaL problems.

  4. List the points earned by ``John Smith'' for each problem.

  5. Determine the number of contestants from each school.

  6. List contestants from a particular secondary school.

  7. Make the final table of results containing the name of contestants, their schools, classes, total number of points awarded. They should be ranked in descending order according to awarded points. (If two numbers are equal, list alphabetically.)

Tables of the database are to be constructed in such a way that one SQL query should be enough in each case. You should also give these queries.

The definition of the database tables and the seven SQL queries should be submitted in plain text (i132.sql, i132.txt).

(10 pont)

Deadline expired on May 15, 2006.


Statistics:

11 students sent a solution.
10 points:Gilián Zoltán, Kiss Dániel Miklós.
9 points:Czigler András, Gombos Gergely, Györök Péter, Kovács 129 Péter, Véges Márton.
8 points:3 students.
7 points:1 student.

Our web pages are supported by:   Ericsson   Cognex   Emberi Erőforrás Támogatáskezelő   Emberi Erőforrások Minisztériuma   Nemzeti Tehetség Program    
MTA Energiatudományi Kutatóközpont   MTA Wigner Fizikai Kutatóközpont     Nemzeti
Kulturális Alap   ELTE   Morgan Stanley