I have a decode statement that makes the table's columns have matching values. The problem is, I have 2 queries that run in about 30 seconds each. However, when I join the tables and create a single SQL statement the query takes over 10 minutes before I cancel it! Could a non- primary key / foreign key join make the query take so much longer, or is the join creating some sort of cartesian product?
Thanks,
-SB