RelationalDBDesign
RedhatLinuxSys Seomining
prev prev
Course navigation
Syntax of a function
What's a function?
The primary advantage of a function is to let you, as the designer or developer, create an encapsulated set of code that might otherwise be impossible to accomplish within an SQL command. For example, you might use a function to handle a calculation that varies depending on some related information (such as calculating a long distance phone call charge based on the appropriate daytime, weekend, or evening rate). Try doing that with an SQL query!
Course navigation