what is Difference between Having and Where clause?
Answers were Sorted based on User's Feedback
Answer / chandrakala
Having clause is used for filtering grouped data and where
clause is used for filtering rows.
Is This Answer Correct ? | 33 Yes | 0 No |
Answer / ganesh
where clause check a condition & having clause is use in
group by clause
Is This Answer Correct ? | 12 Yes | 2 No |
Answer / nrapendra
where clause filter the data before gruop by clause and
having clause clause filter the data after group by clause
Is This Answer Correct ? | 9 Yes | 0 No |
Answer / joe
When we used group by that time only we can use having. But without group by we can use having.
Only grouped column have used in having condition
Is This Answer Correct ? | 0 Yes | 1 No |
Answer / tanmoy
We can use arithmetic operator in having clause but it is
not possible for where clause..
Is This Answer Correct ? | 0 Yes | 5 No |
how to run 'mysql' commands from a batch file? : Sql dba
Create table emp (id number(9), name varchar2(20),salary number(9,2)); The table has 100 records after table created.Now i nee to change id's Datatype is to be Varchar2(15). now Alter table emp modify(id varchar2(15),name varchar2(20), salary number(9,2)); Whether it will work or returns error? post answer with explanation.
How do I run a sql query in pgadmin 4?
What do you understand by pl/sql records?
What is raw datatype in sql?
how to include comments in sql statements? : Sql dba
How to convert ms-excel file to oracle table?
what is the difference between binary_integer and pls_integer
State the difference between implict and explict cursor's?
How do I create an index in word?
Is primary key is clustered index?
What is the full form of sql?