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 is the difference between reading data from an external file and reading data from an existing data set?

1232


what other sas products have you used and consider yourself proficient in using? : Sas programming

1164


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

1064


do you need to know if there are any missing values? : Sas programming

1123


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

1190


what do you mean by data staging area? : Sas-di

1193


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

1031


How does the internal authentication work in sas? : sas-grid-administration

1168


What are the difference between ceil and floor functions in sas?

1400


how does sas handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, procs? : Sas programming

1072


what is scheduling and how will u implement it. In scheduling 5 jobs r running if there is an error occured at 3rd job and how will u check and waht necessary steps will u take not to repeat the same mistake

2419


Difference between informat and format?

1142


How do you delete duplicate observations in sas?

1113


What are the functions used for character handling?

1303


What function CATX syntax does?

1258