What am I doing wrong with the SQL query?
I want to add a foreign key from auto (autoid) to sales contract
I want to add a foreign key from auto (autoid) to sales contract
Hello, I have a question for my game designers out there. When games are made with the Unreal Engine, it is often said that Unreal makes the game look so good. There are various programs for 3D modeling, from which you can copy objects into the engine. And I always thought it was always done…
I've created several checkboxes (4) in HTML. Now I want to program with JavaScript so that there's essentially only one option, meaning only one checkbox can be checked. It's probably not that difficult. Problem: I only worked with Java during my training, and now I have to do it for a colleague who's sick. Since…
When can I say that I am a good programmer?
Can you create 3D games in Scratch and control them with your phone?
With special reference to IT security and hacking/malware (I'm interested in this)
We have at least 300 links on our website to the website of a partner organization, which has now changed its URL. The site is still accessible via the old URL, but I would like to know if I have a function in WordPress that allows me to view all the links at once and,…
Your PrimaryKey “autoID” is not in the “sales contract” table. The foreign key must exist in both tables.
Your database (table) structure is quite bumpy.
In your position, I would look again at the relationships between your tables. keyword 1 to 1 / 1 too much / many too many…
If a sales contract (I find this name unhappy, think it is a purchase contract) can be assigned to one or more cars… then you only need to store the “sales contract ID” as FS in the “auto” table.
First of all, if you want to establish even more relationships with other tables, that ends… if you keep doing so… in a pretty mess;) (not mean evil)
Also look at the normal forms for databases… you should stick to the 3rd. (that is, also to the 1st and 2nd)
Thank you for your answer. My structure can be found in this good question
Oh, I was looking at the question. I didn’t want to do your work, but I didn’t want to 😉 (also not mean evil again, honestly)
All right, let’s take a look at this…
… etc.
I don’t want to be small, but you have to get it again.
P.S. I like to help, but I don’t do the work for you… at least not for free;)
Nevertheless, thanks to you, that is correct criticism and that is why I asked the question
A foreign key cannot be AUTOID. The value is not generated in this table, but is already specified in the table in which this value is the primary key.
If a primary key is created as a AUTOID in a table, this value is stored as a foreign key in the linked table as a INT.
ah okay, I try my luck
Is it okay?