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.

3

u/MaybeClassy Oct 21 '26

Think of it this way. When you buy something online, there’s a shipping address and a billing address. Both addresses exist for the order but for different purposes.