PDA

View Full Version : SQL JOINS


DCP
09-30-2004, 09:54 AM
I HAVE FOLLOWING CODE
I COUDN'T FIND WHAT'S WRONG WITH IT?

select a.name, b.name
from EMP a full outer join EMP2 b
on a.eno=b.eno


gives error at line 3

SQL command not properly ended FULL
*

IF ANY BODY CAN GIVE ME A SOLUTION, I WILL APPRECIATE.

tHANKS
DCP

Bricklen
09-30-2004, 09:59 AM
DCP wrote: I HAVE FOLLOWING CODE I COUDN'T FIND WHAT'S WRONG WITH IT? select a.name, b.name from EMP a full outer join EMP2 b on a.eno=b.eno gives error at line 3 SQL command not properly ended FULL * IF ANY BODY CAN GIVE ME A SOLUTION, I WILL APPRECIATE. tHANKS DCP
QUIT SHOUTING

What version of Oracle are you running?

DCP
09-30-2004, 12:03 PM
Oracle8i Enterprise Edition Release 8.1.7.3.0 - Production

DCP
09-30-2004, 12:03 PM
Oracle8i Enterprise Edition Release 8.1.7.3.0 - Production

Bricklen
09-30-2004, 12:12 PM
DCP wrote: Oracle8i Enterprise Edition Release 8.1.7.3.0 - Production
I don't think that 8i supported the outer join syntax, IIRC.
Try using the (+) syntax

see docs.oracle.com for more details
or
http://download-west.oracle.com/docs/cd/A87860_01/doc/server.817/a85397/expressi.htm#1023213

Mark C. Stock
09-30-2004, 12:31 PM
"Bricklen" <bricklen@zyahoo.zcomz> wrote in message
news:7NZ6d.85$MV5.60@clgrps13...
| DCP wrote:
| > Oracle8i Enterprise Edition Release 8.1.7.3.0 - Production
| >
| I don't think that 8i supported the outer join syntax, IIRC.
| Try using the (+) syntax
|
| see docs.oracle.com for more details
| or
|
http://download-west.oracle.com/docs/cd/A87860_01/doc/server.817/a85397/expressi.htm#1023213

you recall correctly

++ mcs

DCP
09-30-2004, 12:41 PM
Its working with (+), but i want full outer join for tables. so how i have
to do that in 8i, we can't put (+) on both sides, that gives an error

Mark C. Stock
09-30-2004, 12:52 PM
"DCP" <vaagh@hotmail.com> wrote in message
news:694b8886a926f0e9e0fdc2a7cbf03c8c@localhost.talkaboutdatabases.com...
| Its working with (+), but i want full outer join for tables. so how i have
| to do that in 8i, we can't put (+) on both sides, that gives an error
|

you've got to do a UNION of the left outer join and the right outer join :-(

++ mcs

Arangaperumal
10-06-2004, 08:09 PM
Since 8i does not support this,
Use the following style

left join UNION right join



"DCP" <vaagh@hotmail.com> wrote in message news:<68597cadc5d2e5af2975b61abb8098b1@localhost.talkaboutdatabases.com>... I HAVE FOLLOWING CODE I COUDN'T FIND WHAT'S WRONG WITH IT? select a.name, b.name from EMP a full outer join EMP2 b on a.eno=b.eno gives error at line 3 SQL command not properly ended FULL * IF ANY BODY CAN GIVE ME A SOLUTION, I WILL APPRECIATE. tHANKS DCP

DCP
10-22-2004, 06:36 AM
thanks very much

DCP
10-22-2004, 06:37 AM
Sorry to be late to thank you


MyLounge.com Site Map
Forum: Cars, Cell Phone, Database, Games, Home Improvement, IT, Music, School, Sports, Web Design, Web Server, Weight Loss

The MyLounge.com forum is intended for informational use only and should not be relied upon and is not a substitute for any advice. The information contained on MyLounge.com are opinions and suggestions of members and is not a representation of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for the accuracy, completeness or usefulness of any postings or the qualifications of any person responding. Please consult a expert or seek the services of an attorney in your area for more accuracy on your specific situation. Please note that our forums also serve as mirrors to Usenet newsgroups. Many posts you see on our forums are made by newsgroup users who may not be members of MyLounge.com Term of Service