Topic: Oracle Certified Professional Exams (OCP & OCA) >> Set operator - doubt (intersect all, except, except all)
|
Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property.
You may review the entire Oracle Certification Program Candidate Agreement online Here.
|
|
|
|
| Title: Set operator - doubt (intersect all, except, except all) |
| meena |
Posted: Jun 06, 2007 12:07:59 AM |
Total Post: 7
Joined: Mar, 2007
|
Hi ,
I have few doubts reagrding set operators.
When i trying to run the following query ... its resulting in ORA-00928: missing SELECT keyword . i searched for the in google....its explaining about views and other stuff which is going above my head.
SELECT EMPNO FROM EMPCOMP WHERE ROWNUM < 10
INTERSECT ALL
SELECT EMPNO FROM ALLEMPS WHERE ROWNUM < 10
Simialrly i am getting errors ORA-00933 while running such queries with Except and except all.
i dont have access to create tables, so whatever table are present, i am using the same to understand set operators ..alos imp : when i ran the same queries using union, union all, interest , its working as intented.
Can anyone help.
thanks,
Meenal.
|
|
|
theo |
| Posted: Jun 17, 2007 01:00:31 AM | |
|
Total Post: 11
Joined: Apr, 2007
|
remove the key word 'all' just use intersect
hope tat helps :-)
|
|
|
|
|
| Time Zone: EDT |
Send this thread to your friend |
|
|
|
|
Forum Rules & Description
Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user
|
| |
Get FREE Magazines
|
Top 10 Forum User
|
| Murtuja Khokhar | 814 |
| Mohammed Taj | 694 |
| Jayanta Sur | 479 |
| Vigyan Kaushik | 386 |
| positive fanatic | 361 |
| Gitesh Trivedi | 322 |
| Gopu Gopi | 239 |
| neeraj sharma | 228 |
| Ramesh Jois | 226 |
| snehalatha p | 169 |
|
|