Click here to Skip to main content
15,891,726 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have 2 tables, TABLE1 for parts and TABLE2 for vehicle application.

TABLE1
 part_no  |  description  |  brand  |  price
 1234_AB  |  OIL SEAL     |  BRANDx |  97.50
 5678_CD  | AIRCON FILTER |  BRANDy |  400.00

TABLE2
 part_no  |  make_name    |  name   |  year_model
 1234_AB  |  HONDA        | LEGEND  |  1991
 5678_CD  |  HONDA        | PRELUDE |  1982
 1234_AB  |  HONDA        | CIVIC   |  1978
 5678_CD  |  HONDA        | ACCORD  |  1979


then I want to search this in 1 textbox:
OIL FILTER HONDA CIVIC 1978
or CIVIC HONDA 1978 OIL FILTER
or 1978 HONDA CIVIC OIL FILTER

then it will show this result:
part_no  |  description  |  brand  |  price
1234_AB  |  OIL SEAL     |  BRANDx |  97.50


What I have tried:

I don't have any idea to start this problem. I'm just looking for help. Thank you
Posted
Updated 4-Feb-18 21:22pm
v3

1 solution

if you want to join these two table then you can you the keys like foreign key, primary key, etc
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900