This document discusses SQL functions used in database management. It contains 4 paragraphs that describe the different sublanguages of SQL: DDL for data definition, DML for data manipulation, DCL for data control, and DRL for data retrieval. Each paragraph lists the main functions of the sublanguage such as CREATE, ALTER, DROP for DDL and INSERT, UPDATE, DELETE for DML. The document serves as an overview of the different categories of SQL functions and their basic usage for working with data in a database.
This document discusses SQL functions used in database management. It contains 4 paragraphs that describe the different sublanguages of SQL: DDL for data definition, DML for data manipulation, DCL for data control, and DRL for data retrieval. Each paragraph lists the main functions of the sublanguage such as CREATE, ALTER, DROP for DDL and INSERT, UPDATE, DELETE for DML. The document serves as an overview of the different categories of SQL functions and their basic usage for working with data in a database.
This document discusses SQL functions used in database management. It contains 4 paragraphs that describe the different sublanguages of SQL: DDL for data definition, DML for data manipulation, DCL for data control, and DRL for data retrieval. Each paragraph lists the main functions of the sublanguage such as CREATE, ALTER, DROP for DDL and INSERT, UPDATE, DELETE for DML. The document serves as an overview of the different categories of SQL functions and their basic usage for working with data in a database.
This document discusses SQL functions used in database management. It contains 4 paragraphs that describe the different sublanguages of SQL: DDL for data definition, DML for data manipulation, DCL for data control, and DRL for data retrieval. Each paragraph lists the main functions of the sublanguage such as CREATE, ALTER, DROP for DDL and INSERT, UPDATE, DELETE for DML. The document serves as an overview of the different categories of SQL functions and their basic usage for working with data in a database.
Download as DOCX, PDF, TXT or read online from Scribd
Download as docx, pdf, or txt
You are on page 1of 6
SINDH UNIVERSITY JAMSHORO.
HYDERABAD
NAME: MUHAMMAD AHSAN
F.NAME: MUHMMAD ISMAIL SUBJECT: DATA BASE ROLL NO: / YEAR: 2K19/SWE/61 DEPARTMENT: IICT(SOFTWARE ENGINEERING)(MORNING) ASSIGNMENT: SQL FUNCTIONS SUBMITTED TO: SQL FUNCTIONS IN DATA BASE
SQL (STRUCTURE QUERY LANGUGE):
Structure Query Language(SQL) is a database query language used for storing and managing data in Relational DBMS. SQL was the first commercial language introduced for E.F Codd's relational model of database. Today almost all RDBMS(My SQL, Oracle, Infomix, Sybase, MS Access) use SQL as the standard database query language. SQL is used to perform all types of data operations in RDBMS.There are some commads of sql language.
It is the sub language called Data definition language in the SQL commands which deals with schema, Its used DDL command to modify , to create ,to merge the data in data base table.
Functions Of DDL:
1. CREATE: It is used to create table ,index.
2. ALTER: It is used to add or remove the data type ,or any other changes. 3. TRUNCATE: It is used to remove the 4. DROP: To delete the objects in table. 5. RENAME: To rename the object in data base.
DML (Data Manipulation Language):
In the SQL, data manipulation language manipulate to delete , updating the table in data base language. It is the sublanguage in SQL .its insert the data ,update the data in rows and columns. There are some commands in DML.
DML Functions:
1. INSERT: Used the rows and columns.
2. UPDATE: Used to update the existing rows and columns. 3. DELETE: Used to delete the rows and columns. 4. MERGE / SELECT: Used to select or merge the data or rows and columns.
DCL (Data Control Language):
In the DCL ,its used to control the data ,to authorized the data to create ,select, modifying, the data in table. Actually we grant that who we will give the permission to create ,to modify ,to update the data in the data base table.Its the sublanguage in SQL. There are some commands in DCL. Functions ofDCL:
1. GRANT: It is used to grant or give the permission.
2. REVOKE: It is used to take the permission.
DRL (Data Retrievel Language):
DRL is a set of commands which is used to retrieve the data in database. This language also manipulates the data for display purpose.The manipulation to insert the data or to retrieve the existing data, to delete the existing the data in SQL. There are some clauses of DRL.
FUNCTIONS OF DRL:
1. FROM: Used to select the table name in data base.
2. WHERE: Used to specifies the rows to retrieve. 3. GROUP BY: Used to make the groups to arrange the data in database. 4. ORDER BY: Used to specifies an order to return in rows. 5. AS: Used to rename the rows and columns temporarily. THE END