What are the benefits of User-Defined Functions?

What are the benefits of User-Defined Functions?

a. Can be used in a number of places without restrictions as compared to stored procedures.
b. Code can be made less complex and easier to write.
c. Parameters can be passed to the function.
d. They can be used to create joins and also be sued in a select, where or case statement.
e. Simpler to invoke.

What is user-defined function? Explain its types i.e. scalar and Inline table value user-defined function.

User defined functions are created and defined by the user. They are created as per users needs. They may or may not accept parameters. They can be used to create joins and simple to invoke as compared to stored procedures

Types:
Scalar user defined: returns values as one of the scalar data types. Text, timestamp, image data types are not supported. It may or may not accept parameters.

Inline table value user defined: it returns a table data type. These functions can pass parameters to the sql’s SELECT command. They are similar to views except, they can accept parameters.
Sql server - What is an index?
Indexes help us to find data faster. It can be created on a single column or a combination of columns........
Sql server - Disadvantages of the Indexes
Use of intexes slow down Data modification operations (such as INSERT, UPDATE, DELETE).........
Sql server - Define Clustered and Non-Clustered Index
A clustered index reorders the way records are stored. A non clustered index is in which the logical order of the index does not match the physical stored order of the rows on disk......
Post your comment
Discussion Board
stop this non sence
ok
kavya 10-30-2017