N
Nmidia
Hi,
I have a need to group a set of 4 queries into a single query. They
are all very simple, short queries, being combined into a single
select query. Each of the 4 returns a value against a dataset name.
Dataset Value1
a 15
Dataset Value2
a 20
Dataset Value3
a 7
Dataset Value 4
a 8
So, when I combine the queries, I get the following:
Dataset Value1 Value2 Value3 Value4
a 15 20 7 8
Thats great, unless one of the first 4 queries returns nothing. If
thats the case, I don't get any values returned. Are there any neat
tricks to force a "0" (zero) into a query where it returns nothing?
I have a need to group a set of 4 queries into a single query. They
are all very simple, short queries, being combined into a single
select query. Each of the 4 returns a value against a dataset name.
Dataset Value1
a 15
Dataset Value2
a 20
Dataset Value3
a 7
Dataset Value 4
a 8
So, when I combine the queries, I get the following:
Dataset Value1 Value2 Value3 Value4
a 15 20 7 8
Thats great, unless one of the first 4 queries returns nothing. If
thats the case, I don't get any values returned. Are there any neat
tricks to force a "0" (zero) into a query where it returns nothing?