If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Unanswered: Join on one column

ID is the same in Boats as the ID in Equipment (Foreign Key).There can be multiple Parts linked to ID.

I want to be able to return all the rows from Boats but only the Parts for each ID from Equipment. I dont want the other fields appearing more than once in the query. Would be grateful for any help, thank you.

if we are going to help you with your homework, we usually like to see some effort on your part first.

If one brings so much courage to this world the world has to kill them or break them, so of course it kills them. The world breaks every one and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry. Earnest Hemingway, A Farewell To Arms.

Please post DDL, so that people do not have to guess what the keys, constraints, Declarative Referential Integrity, data types, etc. in your schema are. Learn how to follow ISO-11179 data element naming conventions and formatting rules. Temporal data should use ISO-8601 formats. Code should be in Standard SQL as much as possible and not local dialect.

This is minimal polite behavior on SQL forums. Please learn why and how fields are not columns. Why do you believe in a magical generic “id” in RDBMS? Can the magical non-relational “id” be an automobile or a squid? It is a boat in one table and then an anchor in the next one!
Why don't you know any industry standards?

Hull Identification Number or HIN is how you must identify a boat by law! HIN consists of 12 characters as required by the Federal Boat Safety Act of 1972. The DUNS is used for companies. Again, another common industry standard. Why do you think that “area” is a clear, precise data element name? I will guess it is square meters.