i have a query which is the result of 4 queries being joined
query 1
reason count_of_reason
query 2
reason count_of_reason
query 3
reason count_of_reason
query 4
reason count_of_reason
the four queries are joined on reason
so i end up with
reason, count_of_reason _1, count_of_reason _2, count_of_reason _3,
count_of_reason _4,
i end up with reasons being duplicted
reason reason1 ,count_1, count_2, count_3, count_4,
test 1 8
try 5
test 6
i have tried using the distinct on the reason field but i end up with
dupliction because the count fields are grouped
how can i get unique reacored the returns
reason reason1 ,count_1, count_2, count_3, count_4,
test 1 8 6
try 5
can anyone tell me how to do this
thanks
kevin
query 1
reason count_of_reason
query 2
reason count_of_reason
query 3
reason count_of_reason
query 4
reason count_of_reason
the four queries are joined on reason
so i end up with
reason, count_of_reason _1, count_of_reason _2, count_of_reason _3,
count_of_reason _4,
i end up with reasons being duplicted
reason reason1 ,count_1, count_2, count_3, count_4,
test 1 8
try 5
test 6
i have tried using the distinct on the reason field but i end up with
dupliction because the count fields are grouped
how can i get unique reacored the returns
reason reason1 ,count_1, count_2, count_3, count_4,
test 1 8 6
try 5
can anyone tell me how to do this
thanks
kevin
Comment