Need Sql Query Help
I Need Sql Query For Search Keyword From all columns multiple tables
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Nikunj SatasiyaPosted Dec 25, 2017, 5:48 AM
Pinakee DasPosted Jan 4, 2018, 2:24 AM
Mohit KalaPosted Dec 25, 2017, 6:56 AM
Nikunj SatasiyaPosted Dec 25, 2017, 6:05 AM
As you can see in given Example there is LIKE Operator are used to search specified pattern withn in column.
Actually, The LIKE operator is used in a WHERE clause to search for a specified pattern in a column.
There are two wildcards used in conjunction with the LIKE operator:
If you using MS Access database they there is need to be use a question mark (?) instead of the underscore (_).
Now Talking about Union Oprator
So, Generally Union operator is used to combine the result-set of two or more SELECT statements.
There are several conditions for use of Union in Sql Server which you need to follow as like
Each SELECT statement within UNION must have the same number of columns, The columns must also have similar data types and The columns in each SELECT statement must also be in the same order and etc.
Generally by default the UNION operator will selects only distinct values If you want duplicate records then you need to use UNION ALL
For brief example you should go with google search.
I hope this explanation will helpful to you.
Amit KumarPosted Dec 25, 2017, 5:48 AM