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 / rajasekaran

having statement should mentioned after group by statement only

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

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How would you identify a macro variable? : sas-macro

975


Difference between informat and format?

1049


describe the interaction table in sas di? : Sas-di

976


How will you use the WHO Drug Dictionary for Reporting Clinical Trials?

2286


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

973


what do the sas log messages "numeric values have been converted to character" mean? What are the implications? : Sas programming

1204


What makes sas stand out to be the best over other data analytics tools?

1014


What are the best sas programming practices for handling very large datasets? : sas-grid-administration

976


Give some examples where proc report’s defaults are different than proc print’s defaults?

1019


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

1109


what is SAS OPTIMIZATION?

2246


What is the difference between SAS functions and procedures?

1103


How do dates work in SAS data?

1131


explain the proc in sas? : Sas-administrator

1039


how does sas handle missing values in assignment statements? : Sas programming

981