[SQL] Organization of tables

2007-06-14 Thread Salman Tahir
n how best to structure such data would be mostly appreciated. - Salman Tahir ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

[SQL] cartesian product

2007-02-19 Thread Salman Tahir
Hi, I have a query regarding an SQL statement I'm trying to execute. I have the following table: sequence -+ AK AKCMK CMKA I execute the following statement (Cartesian product): SELECT p1.sequence as sequence1, p2.sequence as sequence2 FROM potential_pairs p1, potential_pairs p2 w