Home » SQL & PL/SQL » SQL & PL/SQL » Autocomplete (11g Release 2 Windows)
Autocomplete [message #618076] Mon, 07 July 2014 09:47 Go to next message
Duane
Messages: 557
Registered: December 2002
Senior Member
Can anyone point me in the right direction for implementing a fast table structure for a web autocomplete?

User types in Dentistry Courses

Returned Results
SP2014 Dentistry 101
SP2014 Dentistry 102
SP2014 Dentistry 103
SS2014 Dentistry 101
SP2014 Dentistry 102
.
.


Oracle Text?
TRIE Structure?
Re: Autocomplete [message #618081 is a reply to message #618076] Mon, 07 July 2014 10:18 Go to previous messageGo to next message
Lalit Kumar B
Messages: 3174
Registered: May 2013
Location: World Wide on the Web
Senior Member
Sorry I didn't understand your requirement. Since you posted in SQL and PL/SQL forum, do you want a query to get a desired output from DB? If yes, then please post a test case. Else, please elaborate your requirement, perhaps someone might help you.

In either case a test case is always required, so please have a look at http://www.orafaq.com/wiki/Test_case

[Updated on: Mon, 07 July 2014 10:21]

Report message to a moderator

Re: Autocomplete [message #618084 is a reply to message #618081] Mon, 07 July 2014 10:26 Go to previous message
Duane
Messages: 557
Registered: December 2002
Senior Member
Not so much the query but design. Would you use multiple tables with keywords that pointed back to the actual table result or a flattened indexed table that used "where course like 'input_value%'"?

I'm looking for something along the lines of:

I would put your major keywords in a table that joined to.... OR This is a case for using Oracle Text with 5 tables that have the keywords and then... OR I've done this before and I used XYZ to implement what I wanted to do and it was super fast and here is what I did.....

[Updated on: Mon, 07 July 2014 10:29]

Report message to a moderator

Previous Topic: Oracle SQL - break up sequential records with the same value
Next Topic: Add records in collection
Goto Forum:
  


Current Time: Wed Apr 24 21:18:08 CDT 2024