UrbanPro

Learn Computer Software from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

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

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

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

bcom and diploma incomputer hardware networking

r4 t2 e4
Comments

Oracle, Hindi, C++, C, MS Office, VBScript,JavaScript,Spoken English etc with 29 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

Experienced tutor for school kids till class 10 all subjects

Can you give your table and its corresponding values a bit more clear?
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

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

View 6 more Answers

Related Questions

what are the languages used to develop an android application?
Java Programming language is used by more than 95% of the developers. Tools: 1. Eclipse + Android SDK 2. Android Studio (by Google)
Raghi
How does memory allocation is occurred during executing a simple C program .??
Memory allocation is of types: Static Memory Allocation and Dynamic Memory allocation. Static is a fixed one and is allocated once during compile time, whereas dynamic memory is allocated during run time.
Arnab
How to create dynamic charts in Excel?
If the source table can grow automatically to include the data in the Chart automatically, then that is called a DYNAMIC CHART. Say, if you have included Jan to Apr month values in Chart and later try...
Vijayalakshmi G M

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

Ask a Question

Related Lessons

Java and C trainer
Always think any conspect with real-time example like Object -- object must have states and behaviour then only we will call that thing is Object like fan is Object (rotating,color)

Easy way to remember Java keyword.
ACCESS MODIFIER ACCESS SPECIFIER abstract, assert, const, final, native, static, strictfp, super, synchronized, this, transient, void, volatile public, private, protected, default DATA...

Rohit Deshbhratar

1 0
0

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...

For All The New Developers
Language to use: Any language that you are learning. Interface: Web or Desktop Function: Simple calculator (9 digits + symbol) with 1 Memory storage with possible function of + - * / Error Handling...
R

Programming Practice Technique
Any Programming Language required an Algorithm. Algorithm - It is the finite set of instructions in which each and every instruction has the meaning, instructions are not ambiguous and all the instructions...

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
X

Looking for Computer Software Classes?

The best tutors for Computer Software Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Computer Software with the Best Tutors

The best Tutors for Computer Software Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more