I have multiple tables like make, model and year etc and using joins. I would like to search from one text field. Like user will type "Audi A1 2015 Red Variant", and he will get results on behalf of this "Audi A1 2015 Red Variant" so what is the correct sql should i implement, your suggestions will be appreciated?
SELECT
make.make_name,
model.model_name
FROM cars
INNER JOIN make
ON make.make_id = cars.fk_make_id
INNER JOIN model
ON model.model_id = cars.fk_model_id
WHERE cars.fk_make_id = 6
AND (make.make_name LIKE '%Audi A1%'
OR model.model_name LIKE '%Audi A1%')
Above sql returning 0 results.
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)