Uploaded by daniel42le

DISCUSSION POST WEEK 9

advertisement
In this video, we review functions, meaning a function is a section of code that serves a specific purpose.
In MySQL, it is easy to insert column to product the function. It is not necessary to know Coding to use
MySQL.
The Floor Function will round a decimal number down. This function can be used for age.
The Ceiling Function will round a decimal number up. This function can be used to round grades up.
The Now Function will give back the current date the query is ran. This function can be ran for date of
hire.
DateDiff Function, will get the difference between one date to another date. This function can be ran to
determine employee’s age or employee tenure with the company.
The Locate Function will find a specific character and defined the end position.
The Replace Function replaces a character with another character. In this video example, removing
comas can be replaced with a space.
The video demonstrates how each function is entered to get the desired outcome. It is by creating table
expression and layering to achieve the desired outcome. Semi-colons are absolutely necessary.
Download