Hi there,
i made a small database where i can assign unloading stations to trucks. It works well, but i am now in a dead end.
I rarly tried to normalize my tables and didn’t bother caring for the referential integrity. I somehow managed all the functionality with vba and sql.
I have below grouped query:
If a unloading station has multiple trucks assigned, i get them with a subquery. Thats all working fine.
So, an unloading station can have multiple trucks. And also, a truck can have multiple unloading stations. What if i want to number the order of unloading. Do i need a „number_order“ column in the shipment table? Or where can i save this data. What happens if i remove a unloading station from a truck and assign it to another one. This is the point where i don’t know how to handle this.
One solution which came in my mind is to create a temporary table by selecting all the unloading stations for one truck where i can input the order. But again what happens if i move unloading stations between trucks. I don’t want to have dead data entries in the db. Or do i need an extra column named „unloading order number“ which i update on all actions via sql?
I hope this is the right forum to ask. Please excuse my english. It is not my native language.
Thank you
i made a small database where i can assign unloading stations to trucks. It works well, but i am now in a dead end.
I rarly tried to normalize my tables and didn’t bother caring for the referential integrity. I somehow managed all the functionality with vba and sql.
I have below grouped query:
If a unloading station has multiple trucks assigned, i get them with a subquery. Thats all working fine.
So, an unloading station can have multiple trucks. And also, a truck can have multiple unloading stations. What if i want to number the order of unloading. Do i need a „number_order“ column in the shipment table? Or where can i save this data. What happens if i remove a unloading station from a truck and assign it to another one. This is the point where i don’t know how to handle this.
One solution which came in my mind is to create a temporary table by selecting all the unloading stations for one truck where i can input the order. But again what happens if i move unloading stations between trucks. I don’t want to have dead data entries in the db. Or do i need an extra column named „unloading order number“ which i update on all actions via sql?
I hope this is the right forum to ask. Please excuse my english. It is not my native language.
Thank you