This repository provides educational materials and practical examples related to SQL and PostgreSQL. It also covers the usage of tools such as SQLite and pgAdmin 4. This repo is designed for those looking to gain knowledge about database management systems and SQL queries.
SQL Lessons: Basic SQL commands, querying methods, data manipulation, and Data Definition Language (DDL) topics.
PostgreSQL Lessons: Advanced features of PostgreSQL, data types, indexing, functions, and procedures.
SQLite Usage: Basic information and examples related to SQLite, a lightweight and portable database management system.
pgAdmin 4 Usage: A popular graphical interface tool for managing PostgreSQL databases.
JDBC Extension for VSCode: Integration of JDBC within Visual Studio Code for managing and interacting with databases.
SQLite: Download SQLite
PostgreSQL: Download PostgreSQL
JDBC Extension for VSCode: Install from the VSCode Marketplace.
- Download and install SQLite from here.
- To create a database with SQLite, use the sqlite3 command in your terminal or command prompt:
sqlite3 mydatabase.db
- Write and execute your SQL queries.
- Download and install pgAdmin from here.
- Launch pgAdmin 4 and connect to your PostgreSQL server.
- Create databases, manage tables, and execute your SQL queries.
- Install the JDBC extension for VSCode from the VSCode Marketplace.
- Configure the extension to connect to your database. Follow these steps:
- Open VSCode and go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side.
- Search for "JDBC Database Client" and click Install.
- Open the command palette (Ctrl+Shift+P or Cmd+Shift+P) and search for JDBC: Configure Connections.
- Follow the prompts to configure your database connection settings.
- Use the extension to manage your database, execute queries, and view results directly from within VSCode.
The repository includes example files and SQL queries covering the following topics:
Basic SQL Queries: SELECT, INSERT, UPDATE, DELETE
Data Definition: CREATE TABLE, ALTER TABLE, DROP TABLE
PostgreSQL Features: ARRAY, JSON, CTE (Common Table Expressions)
Data Management: Transaction management, backup, and restore
If you would like to contribute to this project, you can submit pull requests or report issues on this repository.
- Fork the repository.
- Make changes in your own fork.
- Review your changes and submit a pull request.
This project is licensed under the MIT License.
For inquiries, you can also reach out via my GitHub profile.