2
Greetings! This is my first post, I hope I can be helped and also help a lot in this journey with you! So any formatting error ask only patience until the patterns here are adequate!
Well, my first problem is creating a select that returns several values that are not in a single column of a table.
I need to do this to return research suggestions.. For example: If the employee type: "tec" is loaded by the database the possible phrases with it: for example: common keyboard, gamer keyboard, tec_fabricant, etc...
Maybe I have to use a nested select, but I’m still not sure:
Below is a scope of my need: Select * from tableEspecifica Where column_name like '%tec%';
Disregard primary key.
Sincerely yours.
Publish the template of your tables, the BD you are using (version etc.), which environment you use for front-end etc., something else this question is recurring and a simple search will return you much material that will help you.
– Motta
There is no model in the tables, there are only two, Customer and Products, no DER diagram was made, it is just a job for the College!
– Falco404
In this case a type like (coluna1 like '%tec%' or coluna2 like '%tec%' ...) would solve.
– Motta
yes, but select? how would you have all data channeled into a single Aliase?
– Falco404
I do not know if I understood your question but let’s say , if you search product , manufacturer, category etc if one or more of the columns "hit" you list , would be this ?
– Motta
For example I have a table with Coluans A, B and C respectively, I want to independent of the column, back ALL values starting with the word 'tec%' with an ORDER BY DESC at the end! so the person when type in the search comes in Databind All possible searches of that name, so if the employee does not know the name of the distributor but knows the name of the product, it may fall as a suggestion!
– Falco404
the key word would be "collection and ordering...." independent of the column, capitura and plays in the output...is the same thing that google does when Voce starts typing in his search and it brings suggestions... the idea is this!
– Falco404