SQLite_Lab_Activities.pptxvc vcvccvcvccvvcvcvc

solomonrajuprimedtal 7 views 15 slides Oct 17, 2025
Slide 1
Slide 1 of 15
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15

About This Presentation

vcvccvvc


Slide Content

Getting Started with SQLite Guided Installation, Schema Creation & VS Code Integration Duration: 150 Minutes

Activity 1: Guided Installation and First Database (60 mins) Objective: ✅ Ensure every student has a working SQLite environment. Outcome: 💡 Students will install SQLite and create their first database file.

Step-by-Step Installation Guide 1. Visit https://www.sqlite.org/download.html 2. Download the precompiled binaries for your OS 3. Add SQLite to your system PATH (if required) 4. Verify installation using: sqlite3 --version

Setting Up in VS Code Recommended Extension: SQLite (by alexcvzz) Features: - Graphical table explorer - Query editor with syntax highlighting - Data grid view for results

Creating the First Database Commands in Terminal: cd <your project folder> sqlite3 my_first_database.db Explanation: - Creates a new database file - Opens the SQLite command-line shell - Prompt appears as: sqlite>

Exploring the SQLite Shell Try these dot commands: .help -- view available commands .tables -- list all tables .quit -- exit the shell Note: Commands beginning with '.' are specific to SQLite, not SQL.

Activity 2: Interactive Schema Creation (60 mins) Objective: ✏️ Practice DDL commands in SQLite Outcome: 📋 Students will create and inspect a table schema

Creating a Table CREATE TABLE Contacts ( ContactID INTEGER PRIMARY KEY, FirstName TEXT, LastName TEXT, Email TEXT UNIQUE ); Key Points: - INTEGER PRIMARY KEY = auto-increment field - UNIQUE = prevents duplicate entries

Inspecting the Schema Commands: .schema Contacts Result: Shows table creation SQL Insert Sample Data: INSERT INTO Contacts (FirstName, LastName, Email) VALUES ('Alice', 'Jones', ' [email protected] ');

Common Tips for Students 💡 End every SQL command with a semicolon (;) ⬆ Use the up arrow to recall previous commands 🧩 Share your screen if you face installation issues

Activity 3: Using the VS Code Extension (30 mins) Objective: 🎨 Learn to manage SQLite databases visually in VS Code Outcome: 👀 Browse schema and data using GUI tools

Explore the Database in VS Code Steps: 1. Open VS Code and your project folder 2. Press Ctrl + Shift + P → choose “SQLite: Open Database” 3. Locate my_first_database.db 4. Use the SQLITE EXPLORER sidebar to view tables 5. Right-click → Show Table to see data

Run Queries from VS Code Right-click database → “New Query” Example: SELECT * FROM Contacts; Displays results in a grid view.

Summary ✅ Installed SQLite successfully ✅ Created and viewed a database ✅ Practiced table creation and data insertion ✅ Explored the database with a VS Code extension

Next Steps 🚀 Upcoming topics: - DML Commands (INSERT, UPDATE, DELETE) - Querying data using SELECT - Constraints and Relationships
Tags