Open Excel spreadsheet. Fill in a couple of columns.
Open SQLite Manager, if it is not already open.
Database Control
- There are many ways to add and modify data in a database management system.
- Enter the data into another program (e.g., a spreadsheet) and import it to SQLite.
- Get the data from somewhere and import it.
- Though, data isn’t always ready to import into a database
- Enter the data directly.
Enter the data into another program
- Quality Assurance in Excel
- Select column.
- On the
Datamenu tab, selectData Validation. SettingstabAllow:selects type of data.Data:selects condition of value inputsValue:Minimum:Maximum:
Input Messagetab- Show input message when cell is selected for entry.
Error AlerttabStyle:controls response to invalid input valueStopWarningInformation
Import existing data
Walk through Exercise 2 - Importing Data, Tasks 1-10.
Do Exercise 2 - Importing Data, Task 11.
Enter the data directly
- Create a new table by clicking on
Create Tablein theTabledropdown menu. - Fill in
Table Name: - Complete the
Define Columnssection.- Fill in
Column Names. - Choose
Data Type. - Choose toggle options.
Primary Key?andAutoinc?Allow Null?Unique?
- Fill in
- Click
OK. - Click
Yes.
Show students the SQLite Manager
Browse & Searchtab.
- Add new records by clicking on the
Addbutton from theBrowse & Searchpanel. - Check
Table Name:. Enter Field Values.- Click
OK. - Click
OK. - Add another entry or click
Cancel.
Modifying existing records
- Select record on
Browse & Searchpanel. - Click on the
Editbutton. - Modify record in
Enter Field Values. - Click
OK. - Click
OK. - Click
Cancel.
Deleting records
- Select record on
Browse & Searchpanel. - Click on the
Deletebutton. - Click
Yes.
Deleting a table
- Click on
Drop Tablein theTabledropdown menu. - Click
Yes.
SQL - structured query language
- The language of databases
- Even graphical tools like Microsoft Access write SQL for you behind the scenes
Show students the SQLite Manager
Execute SQLtab.
SELECT * FROM Experiment;
Assign remaining exercises.