Requirment is we have 10 column in table and in frontend presented as grid of 10 column and a search box with each.
Upon user enter a search in any one column, that column name and value should be passed into where clause.
sample Table
number agency brand product ad_product indication
1234 salesforce BMW sxx suv E-class
5678 apple iphone i-14 accessories B-class
When user search in 'brand' as 'BMW' and ENTER values should be passed like
select *,'Primary' "type" from dev.sales where %brand% = %'BMW'%
and When user search in 'agency' as 'apple' and ENTER values should be passed like
select *,'Primary' "type" from dev.sales where %agency% = %'apple'%