Produce output based on Join between View and Table

Posted on 2011-09-19
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...
Question by:XxtremePro
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
  • 3
LVL 77

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;
LVL 74

Expert Comment

ID: 36561997
are you trying to build a join


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

Author Comment

ID: 36562016
Yes I am supposed to use a join

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 74

Expert Comment

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

Author Comment

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
LVL 77

Expert Comment

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

Expert Comment

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

Accepted Solution

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

Author Comment

ID: 36562670

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

You are simply the best man..

Author Closing Comment

ID: 36588774
Thank you very much

as said

LVL 74

Expert Comment

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.

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
oracle- set role and grant privileges 6 50
Sybase and replication server 13 56
oracle collections 2 27
Help with Oracle IF statment 5 35
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…
Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

740 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