Solved

Produce output based on Join between View and Table

Posted on 2011-09-19
12
219 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
[X]
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
12 Comments
 
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;
0
 
LVL 74

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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
LVL 74

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

Expert Comment

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

Expert Comment

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

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 74

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

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 DB Slows After Datapump Until Next Reboot 27 173
Excess Redo 3 49
SQL Syntax Question 9 57
Sorting a SQL script 5 42
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
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

752 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