Click here to Skip to main content
15,921,622 members
Home / Discussions / Database
   

Database

 
GeneralData type Pin
Peter Mayhew25-Jul-04 4:42
Peter Mayhew25-Jul-04 4:42 
GeneralRe: Data type Pin
Peter Mayhew27-Jul-04 9:24
Peter Mayhew27-Jul-04 9:24 
GeneralDEADLOCK PROBLEMc (ASAP) Pin
Anonymous24-Jul-04 23:26
Anonymous24-Jul-04 23:26 
GeneralRe: DEADLOCK PROBLEMc (ASAP) Pin
Michael Potter26-Jul-04 11:17
Michael Potter26-Jul-04 11:17 
General@@IDENTITY detection with ADO Pin
darkbyte24-Jul-04 10:49
darkbyte24-Jul-04 10:49 
GeneralRe: @@IDENTITY detection with ADO Pin
mav.northwind24-Jul-04 23:49
mav.northwind24-Jul-04 23:49 
Generalweekly,monthly and yearly report Pin
placement24-Jul-04 0:59
placement24-Jul-04 0:59 
GeneralUrgent! Need Help with SQL Statement Pin
bunnymaniac23-Jul-04 15:40
bunnymaniac23-Jul-04 15:40 
Hello Smile | :)

Would be really grateful if someone can help me out. I'm no pro in SQL, but currently I have to build a search function. I'm using ASP and Access 2000 database.

Currently the search i've managed to built can search thru all the tables in the database. Unfortunately the search is not flexible enough.

Here is an example of one of my tables.

--------------------------------------
Product | Model |
------------|-------------------------|
BenQ | FP767 |
Samsung | SyncMaster LCD 192T |
Samsung | SyncMaster LCD 172B |
LG | L1710s |
---------------------------------------


strSearch = Request.form("strsearch")

& "SELECT Product, Model " _
& "FROM LCDMonitor " _
& "WHERE Product LIKE '%" & strSearch & "%' " _
& "OR Model LIKE '%" & strSearch & "%' " _
& "ORDER BY Product;"


Here's the situation. If my search term is samsung then 2 rows will be returned. If I search for syncmaster, 2 rows will also be returned. But if i search for samsung syncmaster, no records are returned. I want it to be able to search for samsung syncmaster as well. And i want it to work even if i search for syncmaster 192T. Currently no records are returned if search for syncmaster 192T.

Do I need to use arrays? If so, how do i do that? Need help with coding.

Quite new to all this stuff, so need all the help I can get. Urgent. If need more information or wat i've posted is not clear, let me know. Thanks Smile | :)
GeneralRe: Urgent! Need Help with SQL Statement Pin
Small Rat23-Jul-04 18:47
Small Rat23-Jul-04 18:47 
GeneralRe: Urgent! Need Help with SQL Statement Pin
bunnymaniac26-Jul-04 17:03
bunnymaniac26-Jul-04 17:03 
GeneralOLEDB question... Pin
CherezZaboro23-Jul-04 5:36
CherezZaboro23-Jul-04 5:36 
GeneralRe: OLEDB question... Pin
Mike Dimmick23-Jul-04 6:20
Mike Dimmick23-Jul-04 6:20 
GeneralRe: OLEDB question... Pin
CherezZaboro23-Jul-04 6:32
CherezZaboro23-Jul-04 6:32 
GeneralAnyone have any experience with FireBird Pin
partyganger22-Jul-04 17:45
partyganger22-Jul-04 17:45 
GeneralRe: Anyone have any experience with FireBird Pin
michanne124-Jul-04 6:51
michanne124-Jul-04 6:51 
QuestionHow to find number of student Pin
DotNet22-Jul-04 16:52
DotNet22-Jul-04 16:52 
AnswerRe: How to find number of student Pin
partyganger22-Jul-04 17:28
partyganger22-Jul-04 17:28 
GeneralRe: How to find number of student Pin
DotNet22-Jul-04 17:50
DotNet22-Jul-04 17:50 
GeneralRe: How to find number of student Pin
partyganger22-Jul-04 18:18
partyganger22-Jul-04 18:18 
AnswerRe: How to find number of student Pin
Bill Dean23-Jul-04 8:57
Bill Dean23-Jul-04 8:57 
GeneralRe: How to find number of student Pin
DotNet24-Jul-04 0:07
DotNet24-Jul-04 0:07 
Generalmutiple ODBC help!!! Pin
Member 123981322-Jul-04 16:34
Member 123981322-Jul-04 16:34 
GeneralRe: mutiple ODBC help!!! Pin
Small Rat23-Jul-04 18:52
Small Rat23-Jul-04 18:52 
QuestionCan't get value from DataSet into variable without explicit casting? Pin
ThomasH122-Jul-04 13:17
ThomasH122-Jul-04 13:17 
GeneralParsing, Processing, And Inserting Multiple Records Into a Database Design Question Pin
Member 66660722-Jul-04 10:47
Member 66660722-Jul-04 10:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.