 |
| Oracle General Oracle database discussions. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Oracle section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

February 21st, 2011, 03:10 AM
|
|
Authorized User
|
|
Join Date: Sep 2008
Posts: 54
Thanks: 8
Thanked 1 Time in 1 Post
|
|
How can I transform this IMPLICIT query into EXPLICIT query?
Transforming the following IMPLICIT query into EXPLICIT query?
Select A1.Account_type,A1.Title, A2.Channel_id,A2.Account_type
from Tblaccount A1, Tblcustchannelacct A2
where A1.Account_type = A2.Account_type;
How can I transform the above IMPLICIT query into EXPLICIT query? The above query is working fine; I transformed the above query into EXPLICIT query as
Select A1.Account_type,A1.Title, A2.Channel_id,A2.Account_type
from Tblaccount A1, Tblcustchannelacct A2
INNER JOIN Account_type
on A1.Account_type = A2.Account_type;
this query is giving error of âTable or View does not existâ. Can you guide me with this?
Thanks in advance
__________________
How to do programming?
|
|

February 21st, 2011, 09:52 AM
|
|
Friend of Wrox
|
|
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
|
|
Code:
Select
A1.Account_type,
A1.Title, A2.Channel_id,
A2.Account_type
from Tblaccount A1
INNER JOIN Tblcustchannelacct A2 on A1.Account_type = A2.Account_type;
__________________
Om Prakash Pant
Click the "Thanks" button if this post helped you.
|
|
The Following User Says Thank You to om_prakash For This Useful Post:
|
arbab (February 22nd, 2011)
|
|

April 8th, 2011, 06:43 AM
|
|
Authorized User
|
|
Join Date: Nov 2006
Posts: 31
Thanks: 0
Thanked 3 Times in 3 Posts
|
|
Officially there is no term called IMPLICIT query or EXPLICIT query.
These terms are used for cursors not for query.
I think what you are trying to do is convert a query written in conventional SQL into ANSI SQL.
__________________
Regards
Debasis
|
|

April 11th, 2011, 05:21 AM
|
|
Authorized User
|
|
Join Date: Sep 2008
Posts: 54
Thanks: 8
Thanked 1 Time in 1 Post
|
|
Thanks with a question
@debasisdas: Thanks for your correction: I was expressing the query which uses keyword of INNER JOIN or something as IMPLICIT and those which do not as EXPLICIT, what can be the proper name for them?
&
Transforming the following query in a query which has INNER JOIN mentioned in it?
Select A1.Account_type,A1.Title, A2.Channel_id,A2.Account_type
from Tblaccount A1, Tblcustchannelacct A2
where A1.Account_type = A2.Account_type;
The above query is working fine; I transformed the above query into this query as, now using KEYWORD of INNER JOIN
Select A1.Account_type,A1.Title, A2.Channel_id,A2.Account_type
from Tblaccount A1, Tblcustchannelacct A2
INNER JOIN Account_type
on A1.Account_type = A2.Account_type;
this query is giving error of âTable or View does not existâ. Can you guide me with this?
Thanks in advance
__________________
How to do programming?
|
|

April 11th, 2011, 05:45 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
|
|
I haven't worked with Oracle for a few years but with SQL Server the syntax would be:
Code:
SELECT
A1.Account_type,
A1.Title,
A2.Channel_id,
A2.Account_type
FROM
Tblaccount A1 INNER JOIN Tblcustchannelacct A2
ON A1.Account_type = A2.Account_type;
|
|
The Following User Says Thank You to joefawcett For This Useful Post:
|
|
|

April 12th, 2011, 12:33 AM
|
|
Authorized User
|
|
Join Date: Nov 2006
Posts: 31
Thanks: 0
Thanked 3 Times in 3 Posts
|
|
The error is because you are trying to join 3 tables and the 3rd table is not joined to anything.
Post the table structures to get proper query.
__________________
Regards
Debasis
|
|
 |