search multiple tables with sql

Hi I'm trying to search multiple tables with sql, being used in a asp web page.

I need to connect to about 5 tables and search all of them on our search page. Here is the code that I have used but it dose not work.

FROM creek_aboutus AS ca, creek_dealers AS cd, creek_distributors AS cds, creek_events AS ce, creek_news AS cn, creek_products AS cp
WHERE ca.my_aboutus_name + cd.my_area + cds.my_country + ce.my_event_text + cn.my_news_text + cp.my_pro_text = 'MMColParam';

Can anyone help

Posted On: Tuesday 20th of November 2012 12:27:16 AM Total Views:  168
View Complete with Replies

Related Messages:

FULLTEXT or indexed search?   (162 Views)
I'm, trying to figure out which search technique would be better to use for a search engine I'm creating for a site I'm working on. The type of data I'm working with is a database of movies and music. I have to deal with names, titles, bios, etc. The problem I have is that I'm not sure how using MySQL's FULLTEXT functionality would impact the server. So how would I determine which method is better for the type of data that I'm dealing with Max
How to search for multiple keywords properly?   (185 Views)
I know I need to do a full text search to return exact keyword matches but I am unsure how to structure the query for multiple kewords (all keywords are optional). Basically my form has checkboxes for option 1 option 2 option 3 and if the user checks more than one option it should return all results that contain at least one of those options. Can someone give me an example query please This doesn't seem to work very well :-( PHP Code: SELECT*,MATCH(Headline,Blurb)AGAINST('members,chamber,the')ASScoreFROMArticlesWHEREMATCH(Headline,Blurb)AGAINST('members,chamber,the') Edit: actually it does work but I need to be able to search for keywords down to two letters. Maybe I should stick to a LIKE search
Sql statement to search 'owner_first_name' AND 'owner_last_name'   (181 Views)
I have a search field for finding an applicant by the name of the owner of the company. I want the user to be able to type in ONE field: just the first name, just the last name, or both first and last name. Is there an sql statement to accomplish this or am I better off having seperate fields for first and last name
Case-Insensitive search   (265 Views)
Hi . Does MySQL support case-insensitive search for UTF-8 (cyrillic characters). If yes, then how to do that
Full text search   (263 Views)
; Could anyone give me a idea how to do the full text search in the following case, please Example. Say I search for 'print', I would get results returned when words such as 'printers, printing, prints etc' are found.
Fulltext search with utf-8 data   (214 Views)
Does a fulltext search work if the data is stored in utf-8 Specifically, I have some vietnamese stored in the field I'm searching on and I'm having trouble. Is there anything I need to change to make it work
Regarding Advanced searching   (167 Views)
hello, I want to search the complete tables i am having.The searching should be like the following....Say if i give the word 'caring' as the keyword for search the i should get the result from the fields which is similar to caring.. ie it should display all the fields having data,caring,very caring..etc hope u all got it..I used the fulltext function and also match() But i am not getting the deed result. regards rechu
Complex join/search query...   (249 Views)
I'm stumped... hoping someone can help here... I have 4 tables, simplified for the sake of this question: bands - bandid - bandname venues - venueid - venuename shows - showid - venueid - date / time showbands - showid - bandid - bandorder so, showbands has a many-to-one relationship with shows - there may be 5 bands playing a show... we store each bandid and what order it's playing in... I can handle this just fine with a query to list all shows, or all shows within a given date. Just join shows, showbands, bands, venues on their respective ids... I can also handle this just fine with multiple queries to list all shows where bandid=5 is playing (select my showids where bandid is present, then do the query on just those showids)... How, in one query, can I display only shows where bandid is playing, but display all n bands Is it even possible
Mysql full text search   (251 Views)
how i can use "Full-Text Search Functions (in mysql)" i can useing this function in world's english but i can not useing this function for world's farsi (or persian) please help me (with sample) i useing utf-8 char mysql version : 4.0.25-nt
How to search in a database   (289 Views)
Originally posted by : HP (,I just have a access database connected with ODBC and IIS 4.0.My Query comes from access:SELECT im.IM, im.Betreft, ("secretariaten/im/" & [IM] & ".doc") AS [Bekijk IM]FROM imWHERE (((im.IM)=[IM nummer]) AND ((im.Betreft) Like "*"+[Name your looking for is:]+"*"));Why do i get a error Please help me!
2 tables one search   (248 Views)
Hi I have a problem, that effects my navigation system, I have three tables: 1 which lists all my product info product_tbl product_id product_title product_description product_sport 1 that is a contents map of all my navigation links navigation_tbl sub_id_1 sub_name_1 sub_id_2 sub_name_2 sub_id_3 sub_name_3 And one that sort of links the two category_tbl product_id (this is the same product_id the in the product_tbl) product_link_id (this relates to one of the sub_id(number) in the navigation_tbl) what i want to do is create a sql statement that when I have selected all the products I have, it will get all the links i need. So i have a sql statement to get the products select * from product_tbl which sport='football' which will get all my products but then I need to get the navigation ids relating to the products within that search from the category_tbl and then use that to get all the links from the navigation_tbl Background is I have set it up like this as I need to add more than one category to each product and the old system I had was very processor heavy, so i am looking for a better way, and think this to be it. Any advice would be appriciated, I am programming in asp and the DB is mysql.
SQL Statement searching 1 table for a lot of diff fields :\ need help   (349 Views)
SELECT * FROM Results_Public WHERE Animal_Identifier LIKE 'varanimalid%' AND Breed LIKE 'varbreed%'AND Gender LIKE 'vargender1' AND ' checkbox if selected show male Gender LIKE 'vargender2' AND ' checkbox if selected show female BUT if both are selected show all records for both male & female right now it shows all if none selected & none if both selected ShortName LIKE 'varshortname%' AND RegName LIKE '%varregname%' AND RegNumber LIKE 'varregnumber%' AND
Help!!On how to code A-Z title search, PLEEEAASE!   (227 Views)
Originally posted by : Trinity ( anyone out there, I really need some help for my school project, on how to code an A-Z title link search.For example: if the user clicks on C, it will take he/she to a page with all the movies startingwith the letter C.I need to see what the SQL query would look like for this type of search.My html file will have something like this...View showtimes for movie titles that begin with: A B C . . . ZI got this little code of some web site. I've just started learning ASP on the side, therefore I'm not very familiar with it.I do not understand why they're using the '#' in the HREF.I have successfully built in a little ASP prototype that selects all the movie title from my database. But the question is now, how to do this particular feature A-Z Thank you for taking your time to ready my humble help message.I would reaaaally appreciate if anybody could help on this ASAP.Thaks again Trinity )
How to search a set of result from database   (179 Views)
Originally posted by : carlos ( anyone know how to serach a optimal route from the database (like dynamic programming in mathematics). That mean the user can enter the start and end point then, the page can display the route between start and end.
SQL statement to search and sort by month?   (229 Views)
I have a field in my table on my MSSQL server with dates, formatted like: 09/09/2004 Is there a way I can just pull the items for the current month Something like Select * FROM table Where date_field LIKE "today" I will be using asp to query the DB if that helps
Different search results between desktop and palmtop   (218 Views)
Originally posted by : Paulo ('s the deal:Im executing a query with several parameters based on a database. When I view the results on a regular desktop, everything goes just fine: I can change one or all of the parameters and still it works just fine. So far so great. The problem is that when I try to do the same thing in a mobile device (HP jornada 720), I don't get the same results as in the desktop !!! The only way I have to get the same results is if I don't change any of the parameters, in which case the results are the same both in the desktop and in the palmtop. Can anyone PLEASE help me with this It's driving me crazy and I don't know what can possibly be happening!
How to search a Access Database - Data Type "Yes/No"   (196 Views)
Originally posted by : Harley (,Is it possible to search a access database if the data type is defined as a yes no field I know how to search for a string of text in a field. I am looking to create 'n' number of yes or no fields, each on serving a specific labeling feature within the database. A user would enter a word(s) to search if it matched the field name in the table and if the field was selected 'yes' it would add that record to the recordset. Is this possible If not what are some alternate suggestions
how to put the images on database and retreive them using the search   (330 Views)
Originally posted by : VIMAL BISHT ( am developing a web site and I want to put a search engine. In my web site I haveto make a database where I have to store the 5000 images and then retreive them usingthe search engine. Please tell me from the begning how to do it. I want to use the Sql and ASP.
multi value search   (302 Views)
HI, I have a three drop-down menus for City, Area, Zip. I am using 'like' in my search query which is: select col_nam from table where city like %txtcity% AND area like %txtarea% AND zip like %txtzip% But, since AND is being used, if any of the parameter is NOT given, the result is Zero and If I use OR instead, it still not work if only two values are selected. For example, If a user has selected city: A, area: X , then query using OR will return city matching A, area matching X BUT it will also return the area which should NOT be included. So, what should be done here. Do you think that 'like' should be used here Or any other suggestion
multiple table search   (160 Views)
im in need of some help, im new at sql and am trying to seach multiple tables. i am doing a football database with a table for each of the teams and each table has the following "First Name" "Last Name" "Age" "Date of Birth" etc what i am trying to do is search for either the "first name" or "last name" in every table if anyone can help me it would be apreciated , tks for your help.. like i said im new and im only following what my teacher has told me to do lol im doing this for a school assignment.. i will have a look at the tutorials and try and fix the database