Closed AbtaheeAli closed 4 years ago
Your homework 03 - 01 - INSERT INTO Student (knowledge) VALUES ('SQL') - was marked: Meets Expectations
“Well done!”
Really nice work!
Only one thing: Your query for Select only the full names and phone extensions for only full-time employees.
is not entirely correct. I'm marking the assignment complete based on the strength of the rest, but do try to update it.
https://github.com/AbtaheeAli/sql-intro Added filter for full-time employees.
Every application uses data in some way. In many of our applications we will be storing information in a database. In this assignment we will be practicing using SQL databases.
Objectives
Setup
git clone https://github.com/YOUR_NAME_HERE/sql-intro
cd sql-intro
code .
queries.sql
file.Explorer Mode
[ ] Create a database:
CompanyDatabase
.[x] Create a table:
Employees
with the following columns. Use your best judgment for data types. Copy the query you used to create this table and paste it intoqueries.sql
.FullName
Salary
JobPosition
PhoneExtension
IsPartTime
[x] Create a few employees. Review the requirements below to see some examples of the values you may need. For instance, you may need employees of certain job positions, employees with certain names, etc. Add enough data (maybe 10 rows) such that you can validate your queries. Copy the queries you used to create your data into
queries.sql
[x] Create queries that can do the following. Each query should be attempted in your database. When it works, copy the query to
queries.sql
. You may optionally copy and paste the query output to your queries.sql if you wish.ParkingSpot
as textual information that can store up to 10 characters.Adventure Mode
queries.sql
that show how to:NOT NULL
for columns you feel are required.Id
to your table.Epic Mode
queries.sql
that show how to:Departments
that has these columns:Name
BuildingNumber
Employees
table namedDepartmentId
to relate to theDepartments
table. Make it a foreign key.Additional Resources