Functions(MIN,MAX,AVG,SUM,COUNT)
Max Syntax & Example:
Select max(sub1) from smarks;
Nested queries:
Select name from smarks where sub1=(select max sub1 from smarks);
Min Syntax & Example:
Select min(sub1) from smarks;
Count Syntax & Example:
Select count(sub1) from smarks;
Avg Syntax & Example:
Select avg(sub1) from smarks;
Sum Syntax & Example:
Select sum(sub1) from smarks;
Aliases:
Syntax with Example:
Select Rollno As P,
Name As Q,
From smarks;
No comments:
Post a Comment