Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2756

Re: Get Sql And Set Sql

$
0
0

Thanks for the reply

Select case when yearsales= year(ar_prdatefrom)  then Qty Else 0 End as previousyearsales,

Select case when yearsales = year(ar_crdatefrom) then Qty Else 0 end as currentyearsales

from sales

Where  expense = 0 and internal = 0

 

In the above example ar_prdatefrom,ar_datefrom is datawindow argument. I want to add two more condition dynalically

 

int li_depots[]

string lsbrandcode[]

 

if  li_depots >0 then

    And depots in(li_depots)

end if

 

if  len(ls_brandcode) >0 then

   And brand in(lsbrandcode)

end if

 

 

 

Please can u give an idea how  to add one more condition  in the where clause in the above sqls  using  dw_1.modify(datawindow.table.select)

I want to add two more condition

 

 

 

It would be very appreciate

Pol


Viewing all articles
Browse latest Browse all 2756

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>