Welcome Guest, Not a member yet? Register   Sign In
Complex db query using active record
#1

[eluser]blasto333[/eluser]
Is it possible to do the following using active record?
Select * from table where zyx=DDT and (acx like ESA or fks like csi)

I can't seem to figure out how to group the two likes together.

I am using or_like, but that doesn't seem to work
#2

[eluser]imn.codeartist[/eluser]
I love active records but I don't prefer answering people whenever they come up with writing complex queries. Better stick up with standard sql...




Theme © iAndrew 2016 - Forum software by © MyBB