I have 3 tables as - TASK, TASK_EFFORT and TASk_ROLE as follows in ORACLE database.: TASK TASK_EFFORT TASk_ROLE TASK_ID TASK_ID TASK_EFFORT_ID TASK_ID TASK_ROLE-ID t1 t1 e1 t1 r1 t1 e2 t1 r2 t2 t2 e3 t2 r3 t2 e4 t2 r4 I need the ouput Result set as : r1 t1 e1 r2 t1 e2 r3 t2 e3 r4 t2 e4 When I tried doing the same using inner join - I got the following ouput . Please let me know the query to get the above correct result. r1 t1 e1 r1 t1 e2 r2 t1 e1 r2 t1 e2 r3 t2 e3 r3 t2 e4 r4 t2 e3 r4 t2 e4

Asked by Last Modified  

Follow 0
Answer

Please enter your answer

Trainer

Can you please probvide the table data clearly, I have taken it once column value is missing. Please share the question in better way. You can refer the below query and try: Select tr.TASK_ROLE-ID, ta.TASK_ID, te.TASK_EFFORT_ID from TASK ta inner join TASK_EFFORT_ID te on te.TASK_ID=ta.TASK_ID inner...
read more
Can you please probvide the table data clearly, I have taken it once column value is missing. Please share the question in better way. You can refer the below query and try: Select tr.TASK_ROLE-ID, ta.TASK_ID, te.TASK_EFFORT_ID from TASK ta inner join TASK_EFFORT_ID te on te.TASK_ID=ta.TASK_ID inner join TASK_ROLE tr on trTASK_ID=ta.TASK_ID read less
Comments

Educate! Being smart is great!!!

You can try the below query. sorry for delayed response SELECT DISTINCT RO.TASK_ROLE_ID, TA.TASK_ID, EF.TASK_EFFORT_ID FROM TASK TA INNER JOIN TASK_EFFORT_ID EF ON EF.TASK_ID = TA.TASK_ID INNER JOIN TASK_ROLE RO ON RO.TASK_ID=TA.TASK_ID ORDER BY RO.TASK_ROLE_ID
Comments

Trainer

Select tr.TASK_ROLE-ID, ta.TASK_ID, te.TASK_EFFORT_ID from TASK ta inner join TASK_EFFORT_ID te on te.TASK_ID=ta.TASK_ID inner join TASK_ROLE tr on trTASK_ID=ta.TASK_ID
Comments

Selenium WebDriver

The Query which you given won't work like that ... What you are mentioned is just a inner query .. for that you will get the out put which I had mentioned in the last section of my question...! But I need the output only I need the ouput Result set as : r1 t1 e1 r2 t1 e2 r3 t2 e3 r4 t2 e4 -
Comments

Jitendra, can you please share your query which is giving you wrong result?... you can get somehelp here to reach to solution.. not the readymade solution.
Comments

Experienced tutor for school kids till class 10 all subjects

Can you give your table and its corresponding values a bit more clear?
Comments

Oracle, Hindi, C++, C, MS Office, VBScript,JavaScript,Spoken English etc with 32 years of experience

Select tr.TASK_ROLE-ID, ta.TASK_ID, te.TASK_EFFORT_ID from TASK ta inner join TASK_EFFORT_ID te on te.TASK_ID=ta.TASK_ID inner join TASK_ROLE tr on trTASK_ID=ta.TASK_ID;
Comments

bcom and diploma incomputer hardware networking

r4 t2 e4
Comments

View 6 more Answers

Related Questions

Sir, which is the best software course to be learned for higher salary package and to settle well? As I am B.Tech in EEE branch I have no IT back ground. Please suggestion will be welcomed.
It would be great if you go for SAP in many courses of SAP u did not need to have IT background. And yes its a costlier course. But it will give you higher salary packages once you will clear the course....
Niranjan
interested in personal coaching either in classes or home
we are providing class room training with flexible timing...
Dipti
why arrey is used?
In computer science an array is a data structure consisting of a group of elements that are accessed by indexing. Arrays are used to implement mathematical vectors and matrices, as well as other kinds...
Naval
I m B.E CS graduate confusion in to do job or study and what to study
Join any startup and work few maximum two years and then go for further study. Which will be helpful for your career.
Veena
which course do u suggest me to do to get placed in IT. Im a 2008 graduate.
Definitely any of the programming languages. To the most of it, learn generic skills most common to all of those in the market.. Whether Java, DotNet whatever. Master the frameworks in it.
David

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Software Development Training In Jaipur
Satyam Web Solution provides website designing &development and software designing &development training in Jaipur for various stream’s students. MCA 6 month Industrial Training/Internship B....

Merge Multiple PST Files into One Using PST Merge Tool
Overview of PST Merge Software The PST Merge is a software which merge multiple PST files into a single PST file. It makes sure that when PST files are merged into a new file, the original PST files should...

History of SQL server
In 1988, Microsoft released its first version of SQL Server. It was designed for the OS/2 platform and was developed jointly by Microsoft and Sybase. During the early 1990s, Microsoft began to develop...

10 Study Tips to Achieve your Goals
This is particularly true of students that are looking to make the most of their study time and get better grades at Organization. 1. Set Study Goals: There is lots of credible research suggesting that...

GIT
In software engineering, software configuration management (SCM) is the task of tracking and controlling changes in the software, part of the larger cross-disciplinary field of configuration management....
R

Recommended Articles

Decades back, when computers were being introduced in office premises, PPT was a new terminology that all employees tried to learn. Now PPT has made its way far away from offices and is an integral part of schools, colleges, and several other official proceedings. This is because PPT is an user-friendly computerized method...

Read full article >

Software Development has been one of the most popular career trends since years. The reason behind this is the fact that software are being used almost everywhere today.  In all of our lives, from the morning’s alarm clock to the coffee maker, car, mobile phone, computer, ATM and in almost everything we use in our daily...

Read full article >

Whether you are using a laptop or a desktop, the mouse surely takes up time. Imagine if you could alone manage with the keys and not have to move your hands around the mouse? That would have been faster and so much time-saving. For example, Control + Z for undo or Control + Y for redo, definitely saves time when we are...

Read full article >

MCTS Certification in India The Microsoft Certified Technology Specialist or MCTS certification is suited for professionals who want to get into profession of implementing, building, troubleshooting, and debugging a particular Microsoft technology. The MCTS certification can give you a clear edge over others to showcase...

Read full article >

Looking for Computer Software Classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you