mikeysql
04-21-2009, 06:57 PM
What I am trying to do is get results from two different filters yet have access to both sets of data in one sql statement.
EX.
Select Count(driverType) from driver where driverType <> 'large'
(returns say 10 records)
And
Select count(driverType) from driver where driverType = 'large'
(returns 2 records)
I'd like to be able combine them to gain access to both sets of records returned.
I want to display them in one column like:
column1
10 / 2
Is it possible? My query is much more complicated with subquerys and joins but this is the idea.
thanks
EX.
Select Count(driverType) from driver where driverType <> 'large'
(returns say 10 records)
And
Select count(driverType) from driver where driverType = 'large'
(returns 2 records)
I'd like to be able combine them to gain access to both sets of records returned.
I want to display them in one column like:
column1
10 / 2
Is it possible? My query is much more complicated with subquerys and joins but this is the idea.
thanks