Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Can we use where and having clauses in a single SAS program.

ex: proc sql;
    select a,b,c from test
     where state in 'KA'
     and having <some condition>.

Is the above program run correctly, if not why ?
    

Answer Posted / a.k.naidu

Having clause can be used only with 'group by'. Difference between 'where' and 'having' is that former works on variable level and latter works on observation level. 'having' works like second where condition on "grouped data"

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name types of category in which SAS Informats are placed?

1133


Which are the statements whose placement in the data step is critical?

1244


What are the table names in oracle database...?

2734


What are the default statistics for means procedure?

1223


Mention the validation tools used in SAS?

1147


explain the main difference between the nodup and nodupkey options? : Sas-administrator

1149


What are all the problems you faced while validating tables and reports?

3449


What is the use of function Proc summary?

1265


What are the parameters of scan function?

1160


Will it bother you if the guy at the next desk times the frequency and duration of your bathroom or coffee breaks on the grounds that ?you are getting paid twice as much as he is??

2598


What is data _null_?

1120


Have you used macros? For what purpose you have used? : sas-macro

1030


name some data transformation used in sas di? : Sas-di

957


what are the component of range? : Sas-bi

1065


What are the limitations for memory allocation for SAS variables

1465