A guide on how to get started with Relational Databases.
When working with data in relational databases there are some key concepts one must appreciate.
A primary key is a column that best identifies one unique row. It ensures that each record as unique. This column is usually given the title ID.
A foreign key is a column that matches a primary key in another table so we can join the data in each together.
SQL is short for Structured Query Language. It is a standard language for querying, manipulating and modifying relational databases (MSSQL, PostgreSQL, MySQL, etc.).
SQL statements are used to read and transform the data coming from pone or more tables. Four basic operation of data manipulations (CRUD) are:
insert into table (columns...) values (values...)
-- For Example
insert into students name, city, country values ('Trevoir Williams','123 My Street','Jamaica')
select * from table
-- For Example - this will return all rows and columns
select * from students
update table set column = value where {condition}
-- For Example - this will update the city address of the student with ID = 1
update students set city = '321 Portland Cottage' where ID = 1
delete from table where {condition}
-- For Example - this will delete students with ID = 1
delete from students where ID = 1
Learn the fundamentals of database design, development and querying using Microsoft SQL Server 2017. If you are looking to get acquainted with the concept of Databases and Queries then this is the right course for you.
Microsoft SQL Server 2017 for Everyone!
What you will learn: