Dms 12
Dms 12
performer
Represented by:-darekar Vaishnavi namdev.
kachole dropada sopan,
ghatul akanksha madhav.
• Sql stand for structure querry language.
1)Select
1)commit-
Syntax:- commit;
2)rollback-
Syntax;- rollback;
3)Savepoint
Syntax:- savepoint name;
Inbuilt function in sql:-
1) String function :-
*lower ():
Select lower(“Rahul”)from student;
*upper():
Select upper(“Rahul”) from student;
*initcap():
Select initcap(“Rahul”)from student;
*Ltrim():
Select ltrim(“Rahul”)from student;
*rtrim():
Select rtrim(“Rahul”)from student;
*length(string)
Select length(“Rahul”) from student;
Date and time function:-
*add month()
*last day()
*month between()
*next day()
2)Arithmetic function
*power();
*abs()
*greatest();
*least();
……………………………………
Aggrigate function:
• Max();
Ex:-Select max (salary) from std;
• Min():
Ex:- Select min (salary) from std;
• Avg:
Ex:- Select avg (salary) from std;
• Count():
Ex:- Select count (salary) from std;
• Sum():
Ex:-Select sum (salary) from std;
Operators:
1.Arithmatic operator:
Addition
Substraction
Multiplication
division
Set operators:
• Union
Ex: select union emp1 id from emp2;
• Union all
Ex: select union all emp1 id from emp2;
• Intersect
Ex: select intersect emp1 id from emp2;
• Minus
Ex: select minus emp1 id from emp2;
Range searching operator:
Between:-