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

What are the functions used for character handling?

1198


what are sas bi dashboard components? : Sas-bi

1124


How do dates work in sas?

1086


How long can a macro variable be? A token? : sas-macro

1170


What do the mod and int function do? : Sas programming

1149


Are you sensitive to code walk-throughs peer review or QC review?

3108


What are the new features included in the new version of SAS Programming Language?

1166


To what type of programms have you used scratch macros?

2539


what is proc Index? and what is proc document?

2652


explain what is data set in sas? : Sas-administrator

935


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

927


I have a dataset concat having variable a b & c. How to rename a b to e & f?

982


what is the basic structure sas administrator? : Sas-administrator

964


What’s the difference between var b1 – b3 and var b1 — b3?

1293


which features do you use to check the data validations and errors? : Sas-administrator

1017