LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (October 1996, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 2 Oct 1996 10:06:25 -0400
Reply-To:     "Zuckier, Gerald" <Zuckier@CHIME.ORG>
Sender:       "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:         "Zuckier, Gerald" <Zuckier@CHIME.ORG>
Subject:      Re: Can SQL do this?

You need to run a subquery, which selects the id #s of whoever has an Acura; then select for any row with an id # in that subquery and also a Porsche. something like

proc SQL; create table myquery as select id from customer where id in ( select id from autos where id in ( select id from autos where car='Acura' ) and car='Porsche' ) You're on your own as to getting this into a user definable AF query.


Back to: Top of message | Previous page | Main SAS-L page