From the course: Database Foundations: Intro to Databases
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Table columns
From the course: Database Foundations: Intro to Databases
Table columns
- Before you can store data in a database, you need to build a home for the data to live in. So let's talk for a few minutes about constructing tables. Tables are made up of columns and each column stores a single piece of information. In our libraries books table, we might have a column that stores the unique book identifier number, it's title, publication date and the identifiers that link to the author and publisher tables. Each of these columns, stores one piece of information about each book. And together, they make up the full set of details that we want to store in the database. In order to create this table using SQL commands, we need to identify a couple of details. The first one is easy. We need a unique name for each column. The name should be descriptive and not contain any confusing acronyms. And it's best if the column name doesn't include spaces. When you do, things get a little bit more complicated when…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
Structured Query Language4m 9s
-
(Locked)
Organize a database with schemas6m 4s
-
(Locked)
Table columns3m 41s
-
(Locked)
Create tables8m 43s
-
(Locked)
Alter tables4m 16s
-
(Locked)
Reserved keywords3m 1s
-
(Locked)
Challenge: Create a table43s
-
(Locked)
Solution: Create a table4m 35s
-
(Locked)
Solution: Tables and data types2m 48s
-
(Locked)
-
-
-
-