gnu sqltutor - fig · gnu sqltutor a web based interactive tutorial of structured query language...

24
GNU Sqltutor a web based interactive tutorial of Structured Query Language (SQL) Aleš ˇ Cepek and Jan Pytel Faculty of Civil Engineering, Czech Technical University in Prague Department of Mapping and Cartography 26–28 February, 2009 The FIG Commission 2 and the Austrian Society for Surveying and Geoinformation (OVG) Workshop Navigating the Future of Surveying Education at Federal Office of Metrology and Surveying (BEV), Vienna, Austria Aleš ˇ Cepek and Jan Pytel ( Faculty of Civil Engineering, Czech Technical University in Prague Department of Mapping and Cartography ) GNU Sqltutor 26–28 February, 2009 1 / 24

Upload: trinhkien

Post on 19-Jun-2019

237 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: GNU Sqltutor - FIG · GNU Sqltutor a web based interactive tutorial of Structured Query Language (SQL) Aleš Cepek and Jan Pytelˇ Faculty of Civil Engineering, Czech Technical University

GNU Sqltutora web based interactive tutorial of Structured Query Language (SQL)

Aleš Cepek and Jan Pytel

Faculty of Civil Engineering, Czech Technical University in PragueDepartment of Mapping and Cartography

26–28 February, 2009

The FIG Commission 2 and the Austrian Society for Surveying and Geoinformation (OVG) Workshop Navigating the Future of Surveying Educationat Federal Office of Metrology and Surveying (BEV), Vienna, Austria

Aleš Cepek and Jan Pytel ( Faculty of Civil Engineering, Czech Technical University in Prague Department of Mapping and Cartography )GNU Sqltutor 26–28 February, 2009 1 / 24

Page 2: GNU Sqltutor - FIG · GNU Sqltutor a web based interactive tutorial of Structured Query Language (SQL) Aleš Cepek and Jan Pytelˇ Faculty of Civil Engineering, Czech Technical University

Contents

1 Introduction

2 Examples

3 Evaluation

4 Strategy for random question selection

5 TODO List

Aleš Cepek and Jan Pytel ( Faculty of Civil Engineering, Czech Technical University in Prague Department of Mapping and Cartography )GNU Sqltutor 26–28 February, 2009 2 / 24

Page 3: GNU Sqltutor - FIG · GNU Sqltutor a web based interactive tutorial of Structured Query Language (SQL) Aleš Cepek and Jan Pytelˇ Faculty of Civil Engineering, Czech Technical University

Introduction

SQLtutor is an interactive online web based tool for teaching and examiningstudents’ knowledge of SQL

introduction of new study branch geoinformaticsintroduction to relational databases and SQL languagebackground for spatial queries in GIS and other subjectsPostgreSQL selected as a main RDBMS in our curricula

Structured Query Language (SQL)relatively simple language (at least on the basic level)no need of previous background and knowledge of DBideal candidate for computer based learning

SQLtutor — an web based interactive tutorialproject started in August 2007presented on a faculty seminarfirst experimental course with master degree. studentsofficial status of GNU software in January 2009

Aleš Cepek and Jan Pytel ( Faculty of Civil Engineering, Czech Technical University in Prague Department of Mapping and Cartography )GNU Sqltutor 26–28 February, 2009 3 / 24

Page 4: GNU Sqltutor - FIG · GNU Sqltutor a web based interactive tutorial of Structured Query Language (SQL) Aleš Cepek and Jan Pytelˇ Faculty of Civil Engineering, Czech Technical University

GNU Sqltutor

home page http://www.gnu.org/software/sqltutorCVS repository http://savannah.gnu.org/projects/sqltutorSqltutor online http://sqltutor.fsv.cvut.cz

License GNU General Public License v3 or laterSqltutor manual available online in several formats (HTML, ASCII, Info, dvi,

PostScript, PDF)

Aleš Cepek and Jan Pytel ( Faculty of Civil Engineering, Czech Technical University in Prague Department of Mapping and Cartography )GNU Sqltutor 26–28 February, 2009 4 / 24

Page 5: GNU Sqltutor - FIG · GNU Sqltutor a web based interactive tutorial of Structured Query Language (SQL) Aleš Cepek and Jan Pytelˇ Faculty of Civil Engineering, Czech Technical University

Opening Dialog Page

Aleš Cepek and Jan Pytel ( Faculty of Civil Engineering, Czech Technical University in Prague Department of Mapping and Cartography )GNU Sqltutor 26–28 February, 2009 5 / 24

Page 6: GNU Sqltutor - FIG · GNU Sqltutor a web based interactive tutorial of Structured Query Language (SQL) Aleš Cepek and Jan Pytelˇ Faculty of Civil Engineering, Czech Technical University

Online Manual

Aleš Cepek and Jan Pytel ( Faculty of Civil Engineering, Czech Technical University in Prague Department of Mapping and Cartography )GNU Sqltutor 26–28 February, 2009 6 / 24

Page 7: GNU Sqltutor - FIG · GNU Sqltutor a web based interactive tutorial of Structured Query Language (SQL) Aleš Cepek and Jan Pytelˇ Faculty of Civil Engineering, Czech Technical University

Tutorial Datasets

Aleš Cepek and Jan Pytel ( Faculty of Civil Engineering, Czech Technical University in Prague Department of Mapping and Cartography )GNU Sqltutor 26–28 February, 2009 7 / 24

Page 8: GNU Sqltutor - FIG · GNU Sqltutor a web based interactive tutorial of Structured Query Language (SQL) Aleš Cepek and Jan Pytelˇ Faculty of Civil Engineering, Czech Technical University

Running a Tutorial

Aleš Cepek and Jan Pytel ( Faculty of Civil Engineering, Czech Technical University in Prague Department of Mapping and Cartography )GNU Sqltutor 26–28 February, 2009 8 / 24

Page 9: GNU Sqltutor - FIG · GNU Sqltutor a web based interactive tutorial of Structured Query Language (SQL) Aleš Cepek and Jan Pytelˇ Faculty of Civil Engineering, Czech Technical University

Table Data (part 1)

Aleš Cepek and Jan Pytel ( Faculty of Civil Engineering, Czech Technical University in Prague Department of Mapping and Cartography )GNU Sqltutor 26–28 February, 2009 9 / 24

Page 10: GNU Sqltutor - FIG · GNU Sqltutor a web based interactive tutorial of Structured Query Language (SQL) Aleš Cepek and Jan Pytelˇ Faculty of Civil Engineering, Czech Technical University

Table Data (part 2)

Aleš Cepek and Jan Pytel ( Faculty of Civil Engineering, Czech Technical University in Prague Department of Mapping and Cartography )GNU Sqltutor 26–28 February, 2009 10 / 24

Page 11: GNU Sqltutor - FIG · GNU Sqltutor a web based interactive tutorial of Structured Query Language (SQL) Aleš Cepek and Jan Pytelˇ Faculty of Civil Engineering, Czech Technical University

A First Try

Aleš Cepek and Jan Pytel ( Faculty of Civil Engineering, Czech Technical University in Prague Department of Mapping and Cartography )GNU Sqltutor 26–28 February, 2009 11 / 24

Page 12: GNU Sqltutor - FIG · GNU Sqltutor a web based interactive tutorial of Structured Query Language (SQL) Aleš Cepek and Jan Pytelˇ Faculty of Civil Engineering, Czech Technical University

A Better Guess

Aleš Cepek and Jan Pytel ( Faculty of Civil Engineering, Czech Technical University in Prague Department of Mapping and Cartography )GNU Sqltutor 26–28 February, 2009 12 / 24

Page 13: GNU Sqltutor - FIG · GNU Sqltutor a web based interactive tutorial of Structured Query Language (SQL) Aleš Cepek and Jan Pytelˇ Faculty of Civil Engineering, Czech Technical University

A Correct Answer

Aleš Cepek and Jan Pytel ( Faculty of Civil Engineering, Czech Technical University in Prague Department of Mapping and Cartography )GNU Sqltutor 26–28 February, 2009 13 / 24

Page 14: GNU Sqltutor - FIG · GNU Sqltutor a web based interactive tutorial of Structured Query Language (SQL) Aleš Cepek and Jan Pytelˇ Faculty of Civil Engineering, Czech Technical University

Setting Help in Opening Page

Aleš Cepek and Jan Pytel ( Faculty of Civil Engineering, Czech Technical University in Prague Department of Mapping and Cartography )GNU Sqltutor 26–28 February, 2009 14 / 24

Page 15: GNU Sqltutor - FIG · GNU Sqltutor a web based interactive tutorial of Structured Query Language (SQL) Aleš Cepek and Jan Pytelˇ Faculty of Civil Engineering, Czech Technical University

Help Button

Aleš Cepek and Jan Pytel ( Faculty of Civil Engineering, Czech Technical University in Prague Department of Mapping and Cartography )GNU Sqltutor 26–28 February, 2009 15 / 24

Page 16: GNU Sqltutor - FIG · GNU Sqltutor a web based interactive tutorial of Structured Query Language (SQL) Aleš Cepek and Jan Pytelˇ Faculty of Civil Engineering, Czech Technical University

More Examples

Aleš Cepek and Jan Pytel ( Faculty of Civil Engineering, Czech Technical University in Prague Department of Mapping and Cartography )GNU Sqltutor 26–28 February, 2009 16 / 24

Page 17: GNU Sqltutor - FIG · GNU Sqltutor a web based interactive tutorial of Structured Query Language (SQL) Aleš Cepek and Jan Pytelˇ Faculty of Civil Engineering, Czech Technical University

More Examples

Aleš Cepek and Jan Pytel ( Faculty of Civil Engineering, Czech Technical University in Prague Department of Mapping and Cartography )GNU Sqltutor 26–28 February, 2009 17 / 24

Page 18: GNU Sqltutor - FIG · GNU Sqltutor a web based interactive tutorial of Structured Query Language (SQL) Aleš Cepek and Jan Pytelˇ Faculty of Civil Engineering, Czech Technical University

More Examples

Aleš Cepek and Jan Pytel ( Faculty of Civil Engineering, Czech Technical University in Prague Department of Mapping and Cartography )GNU Sqltutor 26–28 February, 2009 18 / 24

Page 19: GNU Sqltutor - FIG · GNU Sqltutor a web based interactive tutorial of Structured Query Language (SQL) Aleš Cepek and Jan Pytelˇ Faculty of Civil Engineering, Czech Technical University

Closing the Test

Aleš Cepek and Jan Pytel ( Faculty of Civil Engineering, Czech Technical University in Prague Department of Mapping and Cartography )GNU Sqltutor 26–28 February, 2009 19 / 24

Page 20: GNU Sqltutor - FIG · GNU Sqltutor a web based interactive tutorial of Structured Query Language (SQL) Aleš Cepek and Jan Pytelˇ Faculty of Civil Engineering, Czech Technical University

Final Score

Aleš Cepek and Jan Pytel ( Faculty of Civil Engineering, Czech Technical University in Prague Department of Mapping and Cartography )GNU Sqltutor 26–28 February, 2009 20 / 24

Page 21: GNU Sqltutor - FIG · GNU Sqltutor a web based interactive tutorial of Structured Query Language (SQL) Aleš Cepek and Jan Pytelˇ Faculty of Civil Engineering, Czech Technical University

Evaluation

evaluation =

⌊( ∑correct ansvers

points

)× number of correct answers

number of all questions asked

evaluation grade90 A75 B60 C45 D30 E

less than 30 F

Aleš Cepek and Jan Pytel ( Faculty of Civil Engineering, Czech Technical University in Prague Department of Mapping and Cartography )GNU Sqltutor 26–28 February, 2009 21 / 24

Page 22: GNU Sqltutor - FIG · GNU Sqltutor a web based interactive tutorial of Structured Query Language (SQL) Aleš Cepek and Jan Pytelˇ Faculty of Civil Engineering, Czech Technical University

Distribution of Questions by Points

Aleš Cepek and Jan Pytel ( Faculty of Civil Engineering, Czech Technical University in Prague Department of Mapping and Cartography )GNU Sqltutor 26–28 February, 2009 22 / 24

Page 23: GNU Sqltutor - FIG · GNU Sqltutor a web based interactive tutorial of Structured Query Language (SQL) Aleš Cepek and Jan Pytelˇ Faculty of Civil Engineering, Czech Technical University

TO-DO list

some formal adjustments of source codes to be fully compliant with GNUcoding standardspossible redesign of the Sqltutor database schema to have better supportfor multilingual tutorialbuild a large and reliable English tutorial SQL with datasets that can begenerally understood even outside the English speaking countriesanalyze the new algorithm for random selection of questions, implementa better strategy if needed,possible new parameters for final evaluationa tutorial for PostGIS spatial enhancement of PostgreSQL database

Aleš Cepek and Jan Pytel ( Faculty of Civil Engineering, Czech Technical University in Prague Department of Mapping and Cartography )GNU Sqltutor 26–28 February, 2009 23 / 24

Page 24: GNU Sqltutor - FIG · GNU Sqltutor a web based interactive tutorial of Structured Query Language (SQL) Aleš Cepek and Jan Pytelˇ Faculty of Civil Engineering, Czech Technical University

Thank you for your attention

Aleš Cepek and Jan Pytel ( Faculty of Civil Engineering, Czech Technical University in Prague Department of Mapping and Cartography )GNU Sqltutor 26–28 February, 2009 24 / 24