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 is the maximum length of the macro variable?

1226


What commands are used in the case of including or excluding any specific variables in the data set?

1148


How you are maintaining sas programmes in your company...any specific version control software you are using? If so, tell me the name?

2178


How many ways to overcome a missing values???

2866


What do the sas log messages “numeric values have been converted to character” mean? What are the implications?

1254


What would be the result of the following SAS function (given that 31 Dec, 2000 is Sunday)?

1203


what is sas data set?

1151


Have you ever used the SAS Debugger?

1823


if you were told to create many records from one record, show how you would do this using array and with proc transpose? : Sas programming

1121


How to limit decimal places for variable using proc means?

1160


how do the in= variables improve the capability of a merge? : Sas programming

1484


explain about sas business intelligence? : Sas-bi

1199


Give e an example of..

2138


what is PhaseIII, ODS, TLG, Macro and Proc in SAS

4596


What is the basic structure of a sas program?

1174