You are on page 1of 1

First important query functions are

1. Select: used for selecting the particular column of the table being inserted
2. From: It is used to let know the data set from which we need to select the required column
3. Where: this is the filter option in which particular requirement is to be queried.

USING ALL THE 3 FUNCTIONS SELECT, FROM AND WHERE WILL MAKE THE REQUIREMENT OF A
PARTICULAR ENTITY USEFUL WHEN USING SQL functions.

4. INSERTINTO: This function is used to insert a row into a table


This can be done by using Insertinto function where we enter the data set used to insert a
particular row. Then we enter the column names in which the row order is maintained. Then
we enter VALUES to insert the required values as per the order of the column names
entered.
5. UPDATE: this is used to update any specific requirement of any row or column information in
the table.
UPDATE ‘DATASET’
SET “COLUMN IN WHICH THE CHANGE IS REQUIRED” = “…………”
WHERE “REFERENCE COLUMN TO CHECK PROPERLY”

THIS IS DONE TO UPDATE ANY SPECIFIC INFORMATION REQUIRED.

6. CREATE A TABLE IF NOT EXISTS: This function is used to create a new table for the data base
7. DROP TABLE IF EXISTS: To clean up when there is lots of data in it.
8. DISTINCT: Distinct is used to get the duplicates out of the table
9. LENGTH: used to find the textstrings total number in the selected column
10. SUBSTRING (COLUMN, STARTING POSITION, NUMBER OF TEXTS REQ) = “SPECIFIC CELL
DATA”.
11. TRIM(): Removing extra spaces for consistency in the column (USE TRIM IN WHERE
FUNCTION)

You might also like