Class XII (As Per CBSE Board) : Informatics Practices
Class XII (As Per CBSE Board) : Informatics Practices
syllabus
2020-21
Chapter 3
Database
query
using sql –
functions
Informatics Practices
Class XII ( As per CBSE Board)
Visit : python.mykvs.in for regular updates
SQL functions
Basically, it is a set of SQL statements that accept only input parameters, perform
actions and return the result. A function can return an only a single value or a
table. Functions are not alternate to sql commands but are used as a part of sql
command(generally select command).
Types of Function(System defined)
A scalar function is a function that operates on scalar values -- that is, it takes one
(or more) input values as arguments directly and returns a value.Maths,text, date
functions etc. These functions can be applied over column(s) of a table to
perform relevant operation on value of each record.
For e.g. select left(name,4) from student;
Will display 4 left side letters of each row of name field from student table.