Introduction to Relational Databases in SQL
Timo Grossenbacher
Data Journalist
SELECT *
FROM university_professors
LIMIT 3;
-[ RECORD 1 ]--------+-------------------------------------------------
firstname | Karl
lastname | Aberer
university | ETH Lausanne
university_shortname | EPF
university_city | Lausanne
function | Chairman of L3S Advisory Board
organization | L3S Advisory Board
organization_sector | Education & research
-[ RECORD 2 ]--------+-------------------------------------------------
firstname | Karl
lastname | Aberer
university | ETH Lausanne
university_shortname | EPF
university_city | Lausanne
function | Member Conseil of Zeno-Karl Schindler Foundation
organization | Zeno-Karl Schindler Foundation
organization_sector | Education & research
-[ RECORD 3 ]--------+-------------------------------------------------
firstname | Karl
lastname | Aberer
(truncated)
function | Member of Conseil Fondation IDIAP
organization | Fondation IDIAP
(truncated)
Old:
New:
CREATE TABLE table_name (
column_a data_type,
column_b data_type,
column_c data_type
);
CREATE TABLE weather (
clouds text,
temperature numeric,
weather_station char(5)
);
Introduction to Relational Databases in SQL