JDatabaseQuery::unionDistinct
Add a query to UNION DISTINCT with the current query. Simply a proxy to Union with the Distinct clause.
Usage: $query->unionDistinct('SELECT name FROM #__foo')
Signature
public function unionDistinct(mixed
$query,
[string
$glue = ''] )
Parameters
-
$query
- The JDatabaseQuery object or string to union.
-
$glue
- The glue by which to join the conditions.
Returns
- mixed
- The JDatabaseQuery object on success or boolean false on failure.