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

Name validation tools used in SAS

1102


Mention how to limit decimal places for the variable using proc means?

1057


Which are the statements whose placement in the data step is critical?

1188


what is sas olap server? : Sas-di

1192


What does proc print, and proc contents are used for?

1059


Can you suggest us materials for sdtm mapping?

4387


what is intially documentation in sas?

4955


What is the difference between reading data from an external file and reading data from an existing data set?

1122


how will you locate the sas platform applications? : Sas-bi

980


How would you invoke a macro? : sas-macro

1041


I need level 2 to 5 sas using companies in india

2327


what do the mod and int function do? What do the pad and dim functions do? : Sas programming

1098


What are the data types does SAS contain?

1051


What is the difference between the proc sql and data step?

1105


How would you determine the number of missing or nonmissing values in computations?

1009