How would I create a search box for an SQL database that could list or predict what I am searching for in much the same way google or other search engines list previous searches?

So if I'm searching names and type 'te' a list of all the names that start 'te' eg technician technique etc shown below. Note that I have not submitted the form and I'm continuing to type the name.