From the course: Database Foundations: Data Structures
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Additional common types
From the course: Database Foundations: Data Structures
Additional common types
- [Instructor] There are many additional types of data that can be stored in a relational database, and they can get quite specialized. Support for these types will vary among different RDBMS platforms, though. So not every platform will have built-in support for every type. One common type is called a Boolean. This is used to store values such as true/false or on/off. This kind of data is often represented in user interfaces as a checkbox or a radio button where the value is either selected or not selected. In PostgreSQL, you would use the Boolean data type for this. But in SQL Server, it's called a bit data type. When you want to store currency values, you'll add a money column to your tables. This type is interesting because it has different behaviors between SQL Server and PostgreSQL. On SQL Server, money values are stored as decimals and they're accurate to 1/10000 of the monetary unit that they represent. However…
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
-
-
-
-
-
-
-
-