The document describes tables and queries for a company database including tables for employees, departments, dependents, projects, and employee assignments to projects. It lists columns for each table and specifies primary keys. It provides sample data insertion and integrity constraint checks. It then lists several queries to retrieve data from the tables such as employee details, dependent names and dates of birth, employee names by criteria, project names by location, and more. It also describes altering tables to add foreign keys and constraints and modifying data. Finally, it lists queries using SQL functions to calculate ages, years, months of births, format output, and manipulate strings.
The document describes tables and queries for a company database including tables for employees, departments, dependents, projects, and employee assignments to projects. It lists columns for each table and specifies primary keys. It provides sample data insertion and integrity constraint checks. It then lists several queries to retrieve data from the tables such as employee details, dependent names and dates of birth, employee names by criteria, project names by location, and more. It also describes altering tables to add foreign keys and constraints and modifying data. Finally, it lists queries using SQL functions to calculate ages, years, months of births, format output, and manipulate strings.
The document describes tables and queries for a company database including tables for employees, departments, dependents, projects, and employee assignments to projects. It lists columns for each table and specifies primary keys. It provides sample data insertion and integrity constraint checks. It then lists several queries to retrieve data from the tables such as employee details, dependent names and dates of birth, employee names by criteria, project names by location, and more. It also describes altering tables to add foreign keys and constraints and modifying data. Finally, it lists queries using SQL functions to calculate ages, years, months of births, format output, and manipulate strings.
The document describes tables and queries for a company database including tables for employees, departments, dependents, projects, and employee assignments to projects. It lists columns for each table and specifies primary keys. It provides sample data insertion and integrity constraint checks. It then lists several queries to retrieve data from the tables such as employee details, dependent names and dates of birth, employee names by criteria, project names by location, and more. It also describes altering tables to add foreign keys and constraints and modifying data. Finally, it lists queries using SQL functions to calculate ages, years, months of births, format output, and manipulate strings.