LAB 1

Member Table

Today’s lab will focus on two ways of creating a new database; through the terminal and Python IDLE.

Software tools needed: the terminal and Python IDLE programming environment.

These are the UML representation of Team class and Member class.

Team Table Member Table

Terminal

Lets make the output readable, making the column names aligned and formats query results for readability only.

.headers on
.mode column

We can verify that the data is inserted by typing

SELECT * FROM Team;

Terminal Team Table

Terminal Member Table

You can double check the tables in the database

.tables

Verify the schemas of both tables

.schema Team
.schema Member

Python IDLE

We will be using the IDLE programming environment for Python, since it is very simple and comes with all distributions of Python.

You will see the following output:

IDLE Display