dbms_practical_adivya_08 (1)
dbms_practical_adivya_08 (1)
SUBMITTED BY
08
Mrs. DEEPIKA
Department of BCA
SQL (STRUCTURED QUERY LANGUAGE)
• Create
• Renane
• Alter
• Drop
• Truncate
Create Database
Use Database
Create Table
Renaming a Table
Syntax: RENAME TABLE <old_table_name> TO <new_table_name>
Example: RENAME TABLE students TO scholar;
Dropping a Column
Renaming a Column
Renaming a Table
Dropping a Table
• Insert
• Update
• Delete
AGGREGATE FUNCTION
• Count
• Sum
• Avg
• Min
• Max
KEYS CONSTRAINTS
• PRIMARY KEY
• FOREIGN KEY
Like Operator: In SQL, the LIKE operator is used to filter data based
on a pattern. It's commonly used with the WHERE clause to find
values in a column that match a specific pattern.
STRING FUNCTIONS
• Length
• Upper
• Lower
• Ltrim
• Rtrim
• Lpad
• Rpad
• Instr
• Reverse
Ltrim: Used to trim the white space in string from left side.
Rtrim: Used to trim the white space in string from right side.
Rpad: Used to make given string of the given size by adding the given
character from right.