Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: select qry - need an alternate way

Re: select qry - need an alternate way

From: DA Morgan <damorgan_at_psoug.org>
Date: Fri, 13 Jan 2006 10:33:41 -0800
Message-ID: <1137177217.763344@jetspin.drizzle.com>


Sreelal wrote:
> Thanks.
> My requirement is to select the data from the EMP table itself. But
> through the way i mentioned. Like "select * from _______ where table
> name ='EMP'.

That this discussion is about the EMP table pretty clearly indicates that you are a student or engaged in some form of Oracle education.

Very simply ... you must use the correct syntax to achieve results. What you have written above indicates that you do not understand the point of the WHERE clause. You should have your instructor or mentor explain it to you in detail.

But, in the limited space available here, and ignoring joins, the WHERE clause is NOT where you identify the resource from which you are selecting the record(s) but rather where you filter which records from the source are to be selected. I hope that helps.

-- 
Daniel A. Morgan
http://www.psoug.org
damorgan_at_x.washington.edu
(replace x with u to respond)
Received on Fri Jan 13 2006 - 12:33:41 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US