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 (May 2011, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 23 May 2011 13:41:40 -0500
Reply-To:   Joe Matise <snoopy369@GMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Joe Matise <snoopy369@GMAIL.COM>
Subject:   Re: Regarding Multiple columns being returned from a Sub query
Comments:   To: vaibhav wadhera <vaibhavwadhera@gmail.com>
In-Reply-To:   <BANLkTi=Nn2C2c_fhceqGba5aR3OW1_jtDQ@mail.gmail.com>
Content-Type:   text/plain; charset=ISO-8859-1

I ask for an example, because the answer is different depending on what you're attempting to actually do.

It sounds like what you want to do is a join. Why won't a join work for you? Most inline SELECT queries can be rewritten as joins (and often perform better as joins).

Can you post an example of what you are _trying_ to do, in code that presumably doesn't work yet (or you wouldn't ask the question), and we can go from there in helping design a solution.

-Joe

On Mon, May 23, 2011 at 1:32 PM, vaibhav wadhera <vaibhavwadhera@gmail.com>wrote:

> I know we can return the single column as the result from > the in-line subquery. > > I am just trying to do return the Multiple columns from the inline Sub > query which i can use in the main where condition. > > Thanks > > On Mon, May 23, 2011 at 11:57 PM, Joe Matise <snoopy369@gmail.com> wrote: > >> Can you send the list an example of what you're trying to do? >> >> Thanks, >> >> -Joe >> >> >> On Mon, May 23, 2011 at 1:25 PM, vaibhav wadhera < >> vaibhavwadhera@gmail.com> wrote: >> >>> Hi >>> >>> I would like to know that whether we can returns multiple columns from >>> the inline sub query which we can use in our main select statement. >>> >>> -- >>> Thanks & Regards >>> >>> Vaibhav wadhera >>> >> >> > > > -- > Thanks & Regards > > Vaibhav wadhera >


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