This repository contains SQL scripts for managing a taxonomy database with a relational structure, stored functions, and procedures. The project demonstrates advanced SQL techniques, including schema design, data manipulation, stored procedures, and transaction management.
- Defines tables for hierarchical taxonomic classification:
- Kingdom
- Phylum
- Class
- Order
- Family
- Genus
- Species
- Enforces referential integrity using foreign keys.
- Populates the database with sample taxonomic records.
- Ensures data normalization and consistency.
- Fetches taxonomic classification for specific species.
- Uses SQL joins for hierarchical data relationships.
- Retrieves the kingdom for a given species based on its common name.
- Implements SQL scalar functions.
- Inserts new taxonomic entries while ensuring no duplicate records.
- Uses transaction management with
BEGIN TRANSACTIONandCOMMIT TRANSACTION. - Implements ACID principles for database consistency.
- Microsoft SQL Server
- SQL Server Management Studio (SSMS) (recommended for execution)
- Clone the repository:
git clone https://github.com/<your-username>/taxonomy-database-sql-complete.git cd taxonomy-database-sql-complete