Problem with joins

I am having a problem while executing the following query in JDBC . The result should return 13 rows with join operators in place.. But I am getting 10 records,as if I havent placed joins....

How to convert this query so that it can be executed under JDBC................

SELECT PROFILE_TOPICS.TOPIC_ID, PROFILE_TOPICS.TOPIC_TYPE TOPIC_TYPE, PROFILE_TOPICS.TOPIC_NAME AS QUESTIONS, PROFILE_TOPICS.TOPIC_TYPE_VALUE AS OPTIONS, client_PROFILE.TOPIC_VALUE AS ANSWERS, client_PROFILE.DISPLAY_OTHERS AS MAKE_VISIBLE, NVL(client_PROFILE.DATE_CREATED,'') AS DATE_CREATED

FROM PROFILE_TOPICS,client_PROFILE

WHERE client_PROFILE.client_ID(+)= 32 AND PROFILE_TOPICS.SOURCE_SKILLBAY=0 AND PROFILE_TOPICS.TOPIC_SOURCE_CLI_MEM IN (0,2)

AND PROFILE_TOPICS.TOPIC_ID=client_PROFILE.TOPIC_ID(+)

ORDER BY PROFILE_TOPICS.SEQUENCE_NO

[864 byte] By [SGFa] at [2007-10-2 20:17:29]
# 1
JDBC has nothing to do with your problem. First double check that exactly the same query returns a different result when executed with your databases sql query tool. Then check your JDBC driver for possible problmes, e.g. try another JDBC driver.
MartinHilperta at 2007-7-13 22:59:57 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 2
What Martin said...People who get unexpected results from complex SQL often are constructing it dynamically and have a small bug in the construction of the SQL. They usually need to print the constructed SQL string and compare it to what they want to be executing.
StuDerbya at 2007-7-13 22:59:57 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...