Cool database products line Empress and Informix let me make database forms that do QBE (Query By Example) without so much as breaking a sweat. I'm looking for some source code somewhere that will give me some idea of how to do this with something like PostgreSQL in C/C++. If anyone has any ideas let me know.