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

What are the 3 components in sas programming?

1194


Describe the ways in which you can create macro variables? : sas-macro

1067


What is a macro routine?

2724


Mention few capabilities of sas framework.

1183


how are numeric and character missing values represented internally? : Sas programming

1146


How to create a permanent sas data set?

1239


I have 3 years of work experience at a startup and recently got certified in Data Science with SAS. I need to know how to get into the analytics industry

1758


Explain how merging helps to combine data sets.

1054


explain the use of % includes a statement in sas? : Sas-administrator

1005


How necessary is it to be creative in your work?

2476


For clinical entire study how many tables will create approx?

1970


How does proc sql work?

1089


What is the difference between order and group variable in proc report?

1436


What is a put statement?

1200


What do you know about sas data set?

1117