Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Returning the first record of an inner join?

805577Oct 14 2010 — edited Oct 15 2010
I've been looking all over the internet for an answer for this but I've had no luck so far.

select a.*, b.Part_Name from BOXES_TABLE a
inner join PARTS_IN_THE_BOXES_TABLE b on b.BOX_id = a.BOX_id I can only modify this line
where a.BOX.id = 1234

Is there anyway to limit the inner join to return only one record? I can't use a where statement for it.

I want to return just one part name of the many in a box, but I can't seem to write a join that won't return everything in that box, since the only id I have is for the boxes, and many parts can have the same box id.

If some can show me this I will be the king of work tomorrow.
This post has been answered by John Spencer on Oct 15 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 12 2010
Added on Oct 14 2010
5 comments
8,470 views