suhas-mahajan
3rd February 2003, 07:58
Dear All,
I have two different problems related to Double data type, i.e. comparing doubles and grouping doubles, my requirement is some what specific so I want to make it. When I group <see first query> pric field, it will not give error but in the output it shows duplicate values. In the second query, it shows "No data within selection", I tried greater than and less than funda as well as double.comp function but problem not yet solved, any help appreciable. Might be it is related to my tcpric properties problem. I have BaaN IV C4 with SP10.
1.> select tdpur041.suno, tdpur041.item, tdpur041.pric,
tdpur041.cuqp, tdpur041.orno, tdpur041.oqua
from tdpur041
where tdpur041.suno between :suno.f and :suno.t
and tdpur041.ddtb between :date.f and :date.t
group by tdpur041.suno, tdpur041.item, tdpur041.pric,
tdpur041.cuqp, tdpur041.orno, tdpur041.oqua
order by tdpur041.suno, tdpur041.item,tdpur041.pric,
tdpur041.cuqp, tdpur041.orno, tdpur041.oqua
selectdo
....
....
endselect
2.> select tdsls045.*
from tdsls045
where tdsls045.cuno = :cuno.f
and tdsls045.item = :item.f
and tdsls045.invd between :date.f and :date.t
and tdsls045.ttyp = "EXC"
and tdsls045.pric = :pric
order by tdsls045.invn
selectdo
....
....
endselect
Waiting for immediate reply.
-Suhas
I have two different problems related to Double data type, i.e. comparing doubles and grouping doubles, my requirement is some what specific so I want to make it. When I group <see first query> pric field, it will not give error but in the output it shows duplicate values. In the second query, it shows "No data within selection", I tried greater than and less than funda as well as double.comp function but problem not yet solved, any help appreciable. Might be it is related to my tcpric properties problem. I have BaaN IV C4 with SP10.
1.> select tdpur041.suno, tdpur041.item, tdpur041.pric,
tdpur041.cuqp, tdpur041.orno, tdpur041.oqua
from tdpur041
where tdpur041.suno between :suno.f and :suno.t
and tdpur041.ddtb between :date.f and :date.t
group by tdpur041.suno, tdpur041.item, tdpur041.pric,
tdpur041.cuqp, tdpur041.orno, tdpur041.oqua
order by tdpur041.suno, tdpur041.item,tdpur041.pric,
tdpur041.cuqp, tdpur041.orno, tdpur041.oqua
selectdo
....
....
endselect
2.> select tdsls045.*
from tdsls045
where tdsls045.cuno = :cuno.f
and tdsls045.item = :item.f
and tdsls045.invd between :date.f and :date.t
and tdsls045.ttyp = "EXC"
and tdsls045.pric = :pric
order by tdsls045.invn
selectdo
....
....
endselect
Waiting for immediate reply.
-Suhas