need explanation !!!!
3 posters
Unix C++ :: UNIX CPP :: RDBMS & ORACLE
Page 1 of 1
need explanation !!!!
can someone tell the difference between having and where clause in dbms???
Abhiramy- Posts : 9
Points : 21
Join date : 2010-02-26
Re: need explanation !!!!
WHERE clause is used to specify condition for individual rows.
HAVING clause is used to specify condition for groups.
- Code:
SELECT ROLLNO,NAME,AGE FROM STUDENT WHERE AGE > 20
HAVING clause is used to specify condition for groups.
- Code:
SELECT AGE, AVG(MARKS) FROM STUDENT GROUP BY AGE HAVING AVG(MARKS)>50
Re: need explanation !!!!
Having clause can be used to restrict groups whereas where clause cannot be used to restrict...
Vineet_More- Posts : 27
Points : 31
Join date : 2010-02-26
Unix C++ :: UNIX CPP :: RDBMS & ORACLE
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|