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

Home -> Community -> Usenet -> c.d.o.server -> Re: Help..join on two table , Selecting records from two tables

Re: Help..join on two table , Selecting records from two tables

From: Rene Nyffenegger <rene.nyffenegger_at_gmx.ch>
Date: 15 Jul 2002 20:37:41 GMT
Message-ID: <Xns924CE653C5C4Agnuegischgnueg@130.133.1.4>


> I am new to Oracle and I am trying to figure out a way to do a select
> on two tables.
>
> Table A
> --------
> Col 1A, Col 2A
>
> Table B
> --------
> Col 1B, Col 2B
>
> Here is my query:
>
> Select * from TableB where TableA.Col1A=TableB.Col1B and TableA.Col2A
> <> 1

This SQL Statement is invalid. If you want to join TableA and TableB, you must include both in the from part of your query:

Select * from TableA, TableB where....

Hth

Rene

-- 
Latest article on my HP (as of 14.07.2002):
  Transforming each character in a string with perl
  http://www.adp-gmbh.ch/perl/each_char.html
Received on Mon Jul 15 2002 - 15:37:41 CDT

Original text of this message

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