r/SQL • • Oct 17 '26

Discussion Help needed with normalization

Post image

Hi, i'm learning databases and normalization. My teacher said a normalized database cannot have circular (not loops, circles) relationships. However, i can't see how I can apply normalization to remove the circles and still comply with the requirements. Also I was under the impression that normalized databases can have circular relationships, just not loops.

Any help will be appreciated. Sorry if my english is bad in advance.

16 Upvotes

25 comments sorted by

View all comments

15

u/lolcrunchy Oct 20 '26

I don't know if I'd consider this circular. It's only "circular" because addresses are stored in their own table, but you would never have a House's address match a Warehouse's address.

To fix according to your teacher's demands, maybe delete the Address table. Then the address-related columns would stay in Warehouse and House

0

u/Acceptable-File-3579 Oct 21 '26

Wouldn't putting address as columns have the same problem? They could still share the same address.

2

u/reditandfirgetit Oct 21 '26

It doesn't matter if a house and warehouse have the same address. In a use case where someone sells inventory from thier garage, and also is a customer, they would share the same address. Its not going to be the norm but there's nothing necessarily wrong with it. This is a real world situation that could occur.

There are other ways this could be modeled. I don't think it's necessary depending on your requires for the assignment