Hello was wondering what the better approach is: the target database will only have about 100,000 rows
To have one table like below:
AllCars
ID | Car_Name | Car_Model | Car_Type | Car_Features | Car_Location
______________________________________________________________________
1 | Nissan | Ultima Explorer | 4D | Airbag Power | TX
SQL: Select 'X' from AllCards where Car_Model LIKE '%ultima%';
or to break it up into many tables
Car_Types
ID | Car_Model |
----------------
1 | Nissa Ultima |
and write joins:
SQL:
SELECT'X' from Car_Types c
JOIN AllCars a
ON a.ID = c.ID
WHERE Car_Model = 'Ultima';
LIKE '%ultima%'forces MySQL to check all records in the tableAllCars. But if you'll normalize database, possibleCar_Typeswill have far fewer records than 100,000.