REAL-TIME

VBA Projects

Full Access with Source Code
  • Designed and Developed by PNRao

  • Full Access with VBA Source Code

  • Well Commented Codes Lines

  • Creative and Professional Design

Effortlessly
Manage Your Projects

120+ Project Management Templates

Seamlessly manage your projects with our powerful & multi-purpose templates for project management.

120+ PM Templates Includes:
  • 50+ Excel Templates

  • 50+ PowerPoint Templates

  • 25+ Word Templates

Share Post

Functions are a very powerful feature of SQL and can be used to do the following:

  • Perform calculations on data
  • Modify individual data items
  • Manipulate output for groups of rows
  • Format dates and numbers for display
  • Convert column data types

–SQL functions sometimes take arguments and always return a value.

Types of SQL function for performing calculations on data are:

  • Arithmetic Functions
  • Aggregate Functions
  • Scalar Functions

SQL functions help to aggregate the data while extracting the data from Data base. There are many functions available in SQL to aggregate the data to analyse it.

Arithmetic Functions

Arithmetic Functions are used to perform calculations in SQL, the valid symbols are +-*/() .

Example:

[code lanuage=”sql”] SELECT EID, (SALARY/12) GROSS_SALARY FROM EMPLOYEE WHERE Department= ‘HR’ ;

Scalar Functions

SQL scalar functions return a single value, based on the input value. Various Scalar functions include: CHAR, DATE, DAY(S), DECIMAL, DIGITS, FLOAT, HEX, HOUR, INTEGER, LENGTH, MICROSECOND, MINUTE, MONTH, SECOND, SUBSTR, TIME.

Example:

[code lanuage=”sql”] SELECT Name, SUBSTRING(Name, 1, 1) AS Initial FROM Employee;

AGGREGATE FUNCTION

SQL aggregate functions return a single value, calculated from values in a column. Various aggregate functions are:AVG,COUNT,MAX,MIN,SUM.

Example:

[code lanuage=”sql”] SELECT AVG(SALARY) AVG-SAL FROM Employee WHERE Department= ‘Research’;

Frequently Used Functions

SQL has many built-in functions for performing processing on string or numeric data. Following is the list of all useful SQL built-in functions:

  • COUNT Function – The SQL COUNT aggregate function is used to count the number of rows in a database table.
  • MAX Function – The SQL MAX aggregate function allows us to select the highest (maximum) value for a certain column.
  • MIN Function – The SQL MIN aggregate function allows us to select the lowest (minimum) value for a certain column.
  • AVG Function – The SQL AVG aggregate function selects the average value for certain table column.
  • SUM Function – The SQL SUM aggregate function allows selecting the total for a numeric column.
  • SQRT Functions – This is used to generate a square root of a given number.
  • RAND Function – This is used to generate a random number using SQL command.
  • SQL CONCAT Function – This is used to concatenate any string inside any SQL command.
Effortlessly Manage Your Projects and Resources
120+ Professional Project Management Templates!

A Powerful & Multi-purpose Templates for project management. Now seamlessly manage your projects, tasks, meetings, presentations, teams, customers, stakeholders and time. This page describes all the amazing new features and options that come with our premium templates.

Save Up to 85% LIMITED TIME OFFER
Project Management Templates

All-in-One Pack
120+ Project Management Templates

Essential Pack
50+ PM Templates

Excel Pack
50+ Excel PM Templates

PowerPoint Pack
50+ Excel PM Templates

MS Word Pack
25+ Word PM Templates

Ultimate Project
Management Template
Ultimate Resource
Management Template
Project Portfolio
Management Templates
Categories: SQLTags: Last Updated: June 15, 2013

Leave A Comment