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

How do dates work in sas?

1185


Explain what is data step?

1240


how does sas handle missing values in functions? : Sas programming

1276


What is a macro routine?

2782


Mention the validation tools used in SAS?

1228


what type of graphs we will create(for 2+years candidates)?

2356


What is the basic structure of a sas program?

1166


Mention what is PROC in SAS?

1110


Differentiate between format and informat? : sas-grid-administration

1118


What is the maximum and minimum length of macro variable

1334


what is the difference between floor and ceil functions in sas? : Sas-administrator

1310


What do you code to create a macro? : sas-macro

1181


Explain proc sort?

1171


how many types of prompts are there? : Sas-bi

1123


What is the purpose of _character_ and _numeric_?

1105