Use db_select with multiple conditions of which one needs to apply
69613
How do I add a condition to a query?
52591
How do you "OR" criteria together when using a criteria query with hibernate?
108056
Returning a result set with multiple rows based on max date
49931
SQL Combine Two Columns in Select Statement
64709
select multiple options
125581
Re-use aliased field in SQL SELECT statement
96776
SQL: Get Products from a category but also must be in another set of categories
90580
Select record when third column matches certain criterion
155730
Create a function with optional arguments in MySQL
135857
Condition within JOIN or WHERE
32095
SQL syntax multiple joins?
26515
Using a WHERE ___ IN ___ statement
141193
combining results of two select statements
130531
SELECT DISTINCT on multiple columns
96662
Check that criteria are met in a before insert trigger
132438
How to select from MySQL where Table name is Variable
70637
Selecting items in a list based on multiple conditions