Mark's slides for this week's Code for Life workshop are now available as a PDF from our website.
SQL code within the presentation is provided separately in db_basics.sql
Facebook event | Schedule: uombio.info/schedule
-
Creating tables with the diagram designer and with SQL
-
Field types and nulls
-
Create
-
Retrieve
-
Update
-
Delete
-
Primary
-
Natural vs arbitrary
-
Foreign
-
Create another table
-
Populate from CSV file with import/export
-
Link it
-
-
Inner join
-
Left outer join
-
Other join types
More advanced stuff
-
Primary keys are clustered indexes by default
-
Foreign key fields should have indexes so joins are fast
-
Fields that are part of queries should also have indexes
-
Motivation
-
Examples
-
Motivation
-
Examples