Solved

Produce output based on Join between View and Table

Posted on 2011-09-19
12
209 Views
Last Modified: 2012-05-12
Have one view 'v' which gives results when said select * from v

Have one table with a field 'x' common/present in view 'v' and table 't'

join the table 't'  to view 'v' based on field 'x'

please help experts

did search on google but in vain...
0
Comment
Question by:XxtremePro
  • 4
  • 4
  • 3
12 Comments
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 36561995
I'm not understanding the question?

A simple join is:
select 1 from v, t where t.x=v.x;
0
 
LVL 73

Expert Comment

by:sdstuber
ID: 36561997
are you trying to build a join

like    

select *
from v inner join t on  v.x = t.x
0
 

Author Comment

by:XxtremePro
ID: 36562016
Yes I am supposed to use a join

0
 
LVL 73

Expert Comment

by:sdstuber
ID: 36562034
both of the above are join syntax
and equivalent join conditions

the only difference is what is being returned.

the first post returns 1 for every x found in both tables
the seond returns every column of both tables for every x found in both tables

if you want to adjust the output,  simply specify the columns


v.yourcol1, v.yourcol2, t.yourcol1, t.yourcol2
0
 

Author Comment

by:XxtremePro
ID: 36562160
The query worked thanks a lot experts

but the actual questions comes now where I need to output column A in view along with the columns B and C

Please do help experts.. thanks a lot
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 36562171
select v.a, t.b, t.c
from ...
0
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 36562175
Sorry.  sdstuber already answered that in http:#a36562034
0
 
LVL 73

Accepted Solution

by:
sdstuber earned 500 total points
ID: 36562614
why the B?

that's a penalty, since you didn't ask for any followup, what is missing
0
 

Author Comment

by:XxtremePro
ID: 36562670
Dude

I did not know that.. let me know how to change and shall do it...

You are simply the best man..
0
 

Author Closing Comment

by:XxtremePro
ID: 36588774
Thank you very much

as said

YOU ARE THE BEST
0
 
LVL 73

Expert Comment

by:sdstuber
ID: 36588851


I see you're still relatively new to EE - welcome aboard!

You should accept the post (or posts) that actually helped you


http:#36562614  isn't an answer.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Join SQL view with APEX item as the join condition 4 47
compre toata in where clue oracle 4 55
automatic email alert 1 41
Query Records that don't match 8 32
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now