Join Bill Weinman for an in-depth discussion in this video Numeric functions, part of MySQL Essential Training.
…MySQL provides a very complete set…of numeric and arithmetic functions and operators.…Here's are a few of the most common.…For this lesson we'll be using the world database.…We're just going to start with some arithmetic operators.…So, if I say SELECT 7 plus 3.…Then I'll get a result of 10.…And if I SELECT 7 minus 3, I get 4.…So these are just as you would expect, here's 7 times 3, and 7 divided by 3.…
You notice that seven divided by three gets you a…floating point number even though both of the operands are integers.…If you want integer division, you use the DIV keyword as an operator and you get.…A 2 and there is of course a reminder and you can use MOD for the…reminder which stands for modulus or you can use a modulus symbol the…percent sign, for the reminder and you get exactly the same result.…There is no power operator so the.…
Carrot does not do what you expect.…So that is not 7 cubed.…Rather, there's a function for power.…And so you type POWER and put the operands…in parenthesis, 7 to the 3rd power, like that.…
- Writing queries
- Creating and updating databases and tables
- Using MySQL built-in functions
- Sorting and filtering data
- Updating tables with triggers
- Working with subselects and views
- Creating and using a stored function
Skill Level Beginner
1. Installing and Configuring the Test Environment
2. Basic Syntax
3. Creating a Database
4. MySQL Data Types
5. MySQL Functions
8. Subselects and Views
9. Stored Routines
10. PHP's PDO Interface with MySQL
- 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.