Similar Threads:
1.searching across multiple fields
I have a query designed to search multiple fields for any word that
starts with the characters entered in a search. Each field will
typically contain more than one word. The query takes the form:
SELECT
field1, field2
FROM table1 WHERE ((field1 LIKE "a%") OR (field1 LIKE "% a%") OR (
field2 LIKE "a%") OR (field2 LIKE "% a%"))
Is there a more efficient way to search than this?
Michael
2.Best way to search across multiple tables
I have a horizontally-partitioned database which contains multiple tables of
the same schema which contain messages. Each table has a FULLTEXT index on
(subject, body). Currently, the search script only allows searching one
table at a time, but I'd like to allow searching of all tables at once, or
at least more than one at once. Is there a good way to allow for this? Would
it involve using a view and/or union?
3.Search Multiple keywords across multiple fields
Hi,
I'm about halfway through building a search engine using ASP, SQL and
Access.
As part of that search engine I need to search multiple keywords across
multiple fields
So far I've figured out how to split a string into words. From here I could:
Construct an SQL statement of varying length that, using the LIKE and AND
operators. This seems damn hard!
Alternately I could concatenate the multiple fields into a variable or array
then search.
What is best - can anyone provide examples ?
Darren
4.Multiple Inserts across multiple tables
On 3 June, 15:34, David < XXXX@XXXXX.COM > wrote:
> Hi Guys,
>
> After a bit of advice really.
>
> We have a number of tables in our database, that when a new account is
> created it should insert into all of them (different information) get
> the insert ids from all and the update the first table with all the
> ids (probably not the best way to do it, so if anyone can point me in
> the right direction, feel free).
I would insert into 1 table and then use the ID from that one as the
primary key to use on inserting to all the rest.
And yes, if you want Commit/Syncpoint/Rollback functionality you need
to use InnoDB.
5.Full-text search across multiple tables
Hello,
We are developing an application against an MS SQL Server 2000 database
which requires that we implement full-text searching across columns in
multiple tables. The research that we have conducted seems to indicate
that this is not directly possible within SQL Server 2000. And we can
find no way to implement this as the catalogs that are generated are
table specific.
As a work-around, we are planning to create a secondary table used
strictly for searching which is going to denormalize and combine the
searchable data into one catalog. We just want to confirm that this is
the recommended approach or if there is an alternate solution anyone
has used. Please note that upgrading to SQL Server 2005 is not an
option.
Thanks.
John Fleming
XXXX@XXXXX.COM
6. Full Text Search across multiple tabels in SQL 2005/2008
7. Full Text Search across multiple tables (Parent-Child)
8. Search across multiple columns