I would like to do a SELECT that would repeat the first column, but when all the records were over, I would change the data in the first column and repeat all the records again.
I'll give you an example to illustrate better, as it's complicated to transcribe this.
I want to list for 3 people all the stadiums for example for each of them:
Tabela Pessoa:
Id - Identificação
1 - Fulano
2 - Ciclano
3 - Beltrano
Tabela Estadio
1 - Allianz Arena
2 - Santiago Bernabeu
3 - Camp Nou
SELECT desired:
Id - Pessoa - Estadio
1 - Fulano - Allianz Arena
1 - Fulano - Santiago Bernabeu
1 - Fulano - Camp Nou
2 - Ciclano - Allianz Arena
2 - Ciclano - Santiago Bernabeu
2 - Fulano - Camp Nou
3 - Beltrano - Allianz Arena
3 - Beltrano - Santiago Bernabeu
3 - Beltrano - Camp Nou
I do not have much practice with SQL, so I'm catching up a little to make this case. The example is just to illustrate the problem.