I am trying to implement a code where i am trying to pass token as parameter For e.g.
Select *
from user U
where tokenid=?
Left outer join User U1 ON U.Id=U1.Id
Left outer Join Employee E
where Dept_Id In (
Select Dept_id
from Department
where token_id = ?
) ON empoyee.id = user.id
Here i am trying to implement this in dataframe where i am using the code
df=pd.read_sql_query(query,con,params="value")
But i am getting the error that 'The SQL contains 2 parameter markers, but 36 parameters were supplied' Cab you please help me in implementing this code