Your approach to SQL is fundamentally wrong. This nameless narrative is not a table at all! This is a deck of punch cards. A table has a key, not a sequential position in a deck of punch cards. This narrative has no key; a key is never a physical hardware counter on one machine. The rest of this is also full of errors.
1. You use VARCHAR(1) but show integer data in the narrative.
2. You do not seem to know that fields and columns are totally different concepts. Where are any constraints? Etc?
3. You do not seem to know what First Normal Form (1NF) means and what a “repeated group violation” is.
4. You do not know ISO-11179 naming rules. Okay, that is a little advanced, but you will need it.
Here is a start:
CREATE TABLE Foobar
(field1 INTEGER NOT NULL, -- better names needed!
field2 INTEGER NOT NULL,
field3 INTEGER NOT NULL,
field4 INTEGER NOT NULL,
PRIMARY KEY (field1, field2, field3, field4));
Get a copy of MANGA GUIDE TO DATABASE to get you started. At this point, you are the “Flat Earth kid” in a Geography class.
