I am trying to import one of view table o python by executing the following code. But the problem is by running the same code on oracle SQl developer i am getting the data but while executing the same line of code i am getting zero rows of data (No Data). The code is successfully getting executed and the connection is also well established with Oracle DB. Kindly help me how to get the data loaded on python
I have tried to use To_Date function for getting the results
import cx_Oracle
cx_Oracle.clientversion()
conn = cx_Oracle.connect('##########')
c = conn.cursor()
querystring1 = "(select * from CP_FALLOUT_VIEW where SCOPE_DT = TO_DATE(sysdate-90))"
df1 = pd.read_sql_query(querystring1, con=conn)
Expected : Dataframe with all the data rows
Actual: Dataframe with all the headers but no rows of data