Learn how the type of a value resulting from multiple values of different types will depend on the rules used by your system.
- [Instructor] Most database systems…allow expressions on values of different types.…The type of the resulting value will depend…on the rules the system uses for converting…the values used in the expression.…In some cases you may need to know the type of the result.…And for this we have the TYPEOF function.…The TYPEOF function is used…to find the type of an expression.…We're gonna leave the memory database going here…and we're just going to select TYPEOF…and something simple like one plus one.…
So here we have an expression, one plus one.…Both of the values are integers and when we select TYPEOF,…the result is a string that says integer.…So now we know that the result…of this expression is an integer.…And if I change the second one to a real number,…a floating point number, 1.0, and I press go,…now the result is real, because it's converted…the integer to real so that it can evaluate…this expression with the two different types.…
For another example, if we have a string,…I like pandas, and I press go.…The type of this string is text.…
- Understanding SQL terminology and syntax
- Creating new tables
- Inserting and updating data
- Writing basic SQL queries
- Sorting and filtering
- Accessing related tables with JOIN
- Working with strings
- Understanding numeric types
- Using aggregate functions and transactions
- Automating data with triggers
- Creating views
- Defining functions in PHP
Skill Level Beginner
2. SQL Overview
3. Fundamental Concepts
7. Dates and Times
Dates and times1m 52s
11. Views and Subselects
12. Defined Functions
13. A Simple CRUD Application
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.