From the course: Database Foundations: Data Structures
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Solution: Store data in a table
From the course: Database Foundations: Data Structures
Solution: Store data in a table
(upbeat music) - [Instructor] For this challenge, we need to create a table to store information about the shows that local bands are putting on in local venues around the city. We were given a table with some column names, but it was left to us to determine the correct data types for each one depending on the data that each one needs to store. So we can get started here by typing in our CREATE TABLE statement. And the name of the table that we were told to create is called EventSchedule. And I'll just open up a parentheses, and I'll move the closing parentheses down just a couple of lines to get it out of the way. And I might as well also type in the finishing semicolon here at the end, just so I don't forget. Okay, we'll come back up to line number four, and we'll start typing in the individual columns that we were asked to put in. So the first one was named EventID. And for this we're told that it needs to store a whole number, so that means an integer is probably the best choice…
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
-
-
-
Data integrity concepts4m 52s
-
(Locked)
The role of data types3m 55s
-
(Locked)
Numeric data types6m 21s
-
(Locked)
Character data types6m 33s
-
Date and time data types6m 24s
-
(Locked)
Additional common types5m 34s
-
(Locked)
Challenge: Choosing data types1m 16s
-
(Locked)
Solution: Choosing data types7m 21s
-
(Locked)
Solution: Store data in a table4m 52s
-
-
-
-
-
-
-
-