Working with combined expressions in WHERE clauses in Laravel 4
When retrieving records from tables in our database, you often have to write combined expressions in WHERE clauses like [sourcecode language=”sql”] SELECT * FROM users WHERE status=1 AND (fname = ‘John’ OR lname=’Doe’) [/sourcecode] The query above is pulling out all users who’s status is set to 1, and fname is equal to ‘John’ or …
Working with combined expressions in WHERE clauses in Laravel 4 Read More »