This repository contains various SQL query examples used in the modules. The goal is to help students understand different SQL concepts through practical examples.
alter.sql
- Examples of ALTER statementsconceptual.sql
- Conceptual query designcross.sql
- CROSS JOIN examplesdate.sql
- Working with date and timeforeignKey.sql
- Foreign key usagefunctionsProcedures.sql
- User-defined functions and stored proceduresgroupBy.sql
- GROUP BY and aggregationindex.sql
- Index creation and usagejoin.sql
- INNER, LEFT, RIGHT JOINspractice.sql
- Mixed practice problemsselect.sql
- Basic SELECT queriessub.sql
- Subquery examplestrigger.sql
- Trigger definitionsviews.sql
- Creating and using views
These files were created for learning purposes and serve as hands-on material for understanding SQL using PostgreSQL.
Feel free to fork or clone the repo and practice with the queries.