I'm confused about something, time and again i've seen developers including team leaders tell me that using foreign key constraints on their DB is bad practice, that it adds "logic to the database" but that goes against everything i've ever learned about SQL so far...
I need someone to tell me if i'm wrong for thinking that foreign key constraints are a major benefit or if i'm totally wrong and if so why. It just makes sense to me that in order to ensure data integrity you'd refuse any data that doesn't make sense being there, i'm sorry if this is a duplicate question, but i'm not really finding any definitive answers i'm happy with.