I have multiple tables I need to join horizontally based on a common entry. For the first sets of tables, I need to join tables that look like:
Table 1 dimension = 1093367x18 and It looks like
ROW # | ID | TEMPERATURE | DESCR | ... | NUMB |
---|---|---|---|---|---|
1 | 32 | 23 | Y | ... | 23 |
2 | 47 | 54 | N | ... | 24 |
... | ... | ... | ... | ... | ... |
1,093367 | 78 | 12 | Y | ... | 45 |
Table 2 dimension = 1093367x648
ROW # | ID | COLOR 1 | COLOR 2 | ... | COLOR 648 |
---|---|---|---|---|---|
1 | 32 | RED | BLUE | ... | GREEN |
2 | 47 | BLUE | PURPLE | ... | RED |
... | ... | ... | ... | ... | ... |
1,093367 | 78 | YELLOW | RED | ... | BLUE |
And I need [Table 1 |Table 2]:
ROW # | ID | TEMPERATURE | DESCR | ... | NUMB | COLOR 1 | COLOR 2 | ... | COLOR 648 |
---|---|---|---|---|---|---|---|---|---|
1 | 32 | 23 | Y | ... | 23 | RED | BLUE | ... | GREEN |
2 | 47 | 54 | N | ... | 24 | BLUE | PURPLE | ... | RED |
... | ... | ... | ... | ... | ... | ... | ... | ... | ... |
1,093367 | 78 | 12 | Y | ... | 45 | YELLOW | RED | ... | BLUE |
Is this possible to do in SQLITE? I have only found solutions in which I would have to type out all 648 columns for table 2. Is this the only way to do this in SQLITE?