1. Using SQL¶
1.1. Surfer Notes¶
The Surf Federation has the following data: surfer’s number, name, country, average grade, style, age.
How to use this information?
For example, I want to know all surfers over 25.
Using a database! In this case, SQL.
Previously, a database was created with a table called
surfers.This table has the information of the surf tournament participants organized in the following columns:
id,name,country,average,style,age.idis an integer that identifies the contestant.nameis a string with his/her name and nickname (if any).countryshows the country he/she is representing in the tournament.averageis the average score obtained in the tournament.styleis the style of his/her surfboard.ageis an integer that shows the contestant’s age.
In this exercise we will read the data from the table surfers and display
only those over 25 with an SQL statement (known as a query).
Currently, the query returns all the data in the surfers table.
