若在Oracle SQL中不能依靠子查询得到正确的结果,可以尝试以下解决方法:
SELECT t1.column1, t2.column2
FROM table1 t1
JOIN table2 t2 ON t1.key = t2.key
CREATE GLOBAL TEMPORARY TABLE temp_table
(
column1 datatype,
column2 datatype
);
INSERT INTO temp_table
SELECT column1, column2
FROM table1
WHERE condition;
SELECT t1.column1, t2.column2
FROM table1 t1
JOIN temp_table t2 ON t1.key = t2.key;
SELECT column1, column2, SUM(column3) OVER (PARTITION BY column1) AS total
FROM table1;
以上是一些常见的解决方法,具体应该根据具体情况选择合适的方法来解决问题。