SQL Database Final Project as part of the Code First Girls SQL Course
Project Requirements:
- Create relational DB of your choice with minimum 5 tables
- Set Primary and Foreign Key constraints to create relations between the tables
- Using any type of the joins create a view that combines multiple tables in a logical way
- In your database, create a stored function that can be applied to a query in your DB
- Prepare an example query with a subquery to demonstrate how to extract data from your DB for analysis
- Create DB diagram where all table relations are shown
- In your database, create a trigger and demonstrate how it runs
- Prepare and demonstrate a query that uses the view to produce a logically arranged result set for analysis.
- Prepare an example query with group by and having to demonstrate how to extract data from your DB for analysis
![Screenshot 2023-05-19 at 9 21 50 PM](https://private-user-images.githubusercontent.com/83115753/239629670-ca6d54d0-9ca1-4cee-ae69-29ac806c73c3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4ODQ1OTQsIm5iZiI6MTczODg4NDI5NCwicGF0aCI6Ii84MzExNTc1My8yMzk2Mjk2NzAtY2E2ZDU0ZDAtOWNhMS00Y2VlLWFlNjktMjlhYzgwNmM3M2MzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA2VDIzMjQ1NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg3ODljZWMzYjg1YzhlZGEwODM4MTM4N2E0NjM5MDk2YTZjNTNjMjVhZTk5ZTQ2ZjZlMmVkZTBiOGIzMjQ5ODEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.9Q9GAZeCRMqDK5ql5946qUQWuVQ285I18ZhxFZZcgwk)