Skip to content
Advertisement

Join repeats rows too many times

List the employees (first and last name in same column), that work in retail or food and drink. Include the building they work in and shop type.

This is what I have. Whenever I run it everything repeats so there’s over a hundred rows now. Can anybody help me?

EDIT

I’ve tried various joins for this to make this work and give me the output I desire but whenever I do it, for example, FULL OUTER Join returns a Shop Type and Building Name as NULL and Inner Join and Join only return the names of the columns. Everything else just returns as NULL. Is there any way anyone can help me with problem?

Advertisement

Answer

You have to use JOIN syntax for the required output.

Standard Example

Try to join your tables as the above, you will get the output.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement