A friend suggested that a good way to manage a database is to not define any relationships in the Relationships window, but instead to create queries using SQL code and define relationships there. Is there any merit in this?
My SQL is not strong and I'm not fully aware of what it's capable of. One thing that comes to mind is referential integrity. Surely this wouldn't prevent someone from deleting a parent record, and this would leave orphans? But if all deletions were done through an SQL query then surely it could be controlled in a way that keeps ref integrity?
In another thread, jflachman wrote: "As far as I can tell, the relationships in the relationships window are only there as a default when creating queries. You can modify those relationships in the query window all you want. You can have no fixed relationships and define them manually every time you create a query. Once your query is designed, changes in the relationships window have no effect. Therefore, since your queries all function, removing the relationships in the relationships window has no effect."
Surely this backs up the case that relationships in the Relationships windows are really unnecessary?
If this is correct then the only benefit of creating relationships would appear to be some ease-of-use and documentation?
Any thoughts?
Thanks,
May
My SQL is not strong and I'm not fully aware of what it's capable of. One thing that comes to mind is referential integrity. Surely this wouldn't prevent someone from deleting a parent record, and this would leave orphans? But if all deletions were done through an SQL query then surely it could be controlled in a way that keeps ref integrity?
In another thread, jflachman wrote: "As far as I can tell, the relationships in the relationships window are only there as a default when creating queries. You can modify those relationships in the query window all you want. You can have no fixed relationships and define them manually every time you create a query. Once your query is designed, changes in the relationships window have no effect. Therefore, since your queries all function, removing the relationships in the relationships window has no effect."
Surely this backs up the case that relationships in the Relationships windows are really unnecessary?
If this is correct then the only benefit of creating relationships would appear to be some ease-of-use and documentation?
Any thoughts?
Thanks,
May