Hi, I should make search engine for psql environment. I works so that user sets search criterias (multiple words) and gets answers (like goooooogle does). Let say that I have one common key (primary) which is used as foreign key in rest of the tables. So I have many one_to_many relations. In this case what is the best way to implement SQL-query. Performance of the query is the most important thing. Should I use temporary table and collect the keys into it one by one whit INSERT INTO statements. Single SQL query will be quite complex and slow. After all, what kind of SQL-query philosophy is suitable? ---------------------------(end of broadcast)--------------------------- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly