New to python and working on a query.
Looking to create a dynamic where conditions
What I have is:
"attributes": [{
"code": "grp1",
"values": ['D','E','F']
},
{
"code": "grp2",
"values": ['A','B','C']
}
]
Trying to create where condition looks like,
WHERE grp1 IN ('D','E','F') AND grp2 IN ('A','B','C')
Any suggestion on how to achieve this is greatly appreciated