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 class statement and by statement in proc means?

1277


Have you used macros? For what purpose you have used? : sas-macro

1037


What is the basic structure of a sas program?

1108


What are the implications?

1700


What are the scrubbing procedures in sas?

995


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

1024


Explain how you can debug and test your SAS program?

1005


What are the features of SAS?

1020


Is the physical structure of the data set in the same orientation as the report? Do you need to reshape the data sets? What method should you use to reshape the data–DATA steps,PROC TRANSPOSE,output data set from a procedure?

2237


What is SAS?

1043


how would you create multiple observations from a single observation? : Sas programming

993


Tell e how how dealt with..

2242


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

1082


For clinical entire study how many tables will create approx?

1960


what is the difference between: x=a+b+c+d; and x=sum (of a, b, c ,d);? : Sas programming

1130