Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

Topic: SQL*Plus and PL/SQL >> difference b/w where and having

Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property. You may review the entire Oracle Certification Program Candidate Agreement online Here.



  


 Title: difference b/w where and having
 sunil  Posted: Nov 09, 2006 09:53:36 AM

 Total Post: 19
 Joined: Nov, 2006






 hi this is sunil
there is a question in test king regarding differnce b/w having n where
if any one knows th ans pls xplain me
regards,
sunil

 Vigyan
Posted: Nov 09, 2006 01:31:24 PM  

 Total Post: 386
 Joined: May, 2001






 
Can you post the question to understand it better?

- Vigyan

 sunil
Posted: Nov 09, 2006 11:08:28 PM  

 Total Post: 19
 Joined: Nov, 2006






 
Which two statements are true about WHERE and HAVING clauses? (Choose two)

A)A WHERE clause can be used to restrict both rows and groups.
B)A WHERE clause can be used to restrict rows only.
C)A HAVING clause can be used to restrict both rows and groups.
D)A HAVING clause can be used to restrict groups only.
E)A WHERE clause CANNOT be used in a query of the query uses a HAVING clause.
F)A HAVING clause CANNOT be used in subqueries.

ANSWER: B,C ...
wt do u think pls explain it
regards,
sunil kumar

 Jayanta
Posted: Nov 11, 2006 04:00:46 PM  

 Total Post: 479
 Joined: Feb, 2006






 
hi!
answers are b&d.
the reason:
where clause is used to filter out rows before they are grouped by a group by clause, where as groups are filtered out by having clause.
not only, a having clause can also be used in subqueries.
hope this will help.
bye

 Prakash
Posted: Nov 29, 2006 12:31:48 AM  

 Total Post: 112
 Joined: Aug, 2006






 
I think having can be used to restrict the rows also, After selecting the groups we can restrict tohse rows....isn't it..



 Jayanta
Posted: Dec 18, 2006 05:43:24 PM  

 Total Post: 479
 Joined: Feb, 2006






 
after selecting the groups there r groups data no rows. so having can only be used to filter out groups data .

 Time Zone: EDT

  




Forum Rules & Description


Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user




 








Get FREE Magazines

Top 10 Forum User

  Murtuja Khokhar843
  Mohammed Taj746
  positive fanatic483
  Jayanta Sur479
  Vigyan Kaushik386
  Gitesh Trivedi322
  Gopu Gopi272
  neeraj sharma252
  Ramesh Jois245
  Bishal Khetan207






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software