Hello guys, I have a question.
I have a database (ex. Cars). I would like to display 4 tables, separated by brand (eg Ford, GM, Tesla, Porshe).
Tab Ford
id, name, model ...
GM Tab
id, name, model ...
Tesla Tab
id, name, model ...
Tab Porshe
id, name, model ...
I would like to create a button where I could choose which of the tables to display according to the selected brand.
I believe there is a better way to do it, like a single table and make this select, but I don't know how to do it.
I have a database (ex. Cars). I would like to display 4 tables, separated by brand (eg Ford, GM, Tesla, Porshe).
Tab Ford
id, name, model ...
GM Tab
id, name, model ...
Tesla Tab
id, name, model ...
Tab Porshe
id, name, model ...
I would like to create a button where I could choose which of the tables to display according to the selected brand.
I believe there is a better way to do it, like a single table and make this select, but I don't know how to do it.