Hello,
I have a problem and i will be vey happy if you share your comments and solutions with me.
I have a database that keeps telephone logs.I can get sum of all calls according to city codes.
I also have to take another report that calculates the price of these calls according to city codes.
So we created another table that consists city codes and price.
However this table was designed like that;
Code Price
for example //cellular 555 10$
//inside city 222 1$
//out of city 100 2$
//out of country 999 15$
here we have exact codes of cellular,inside city and out of country but we couldnt parse all city codes here.
i can succes this query like that i think.
if log.citycode 555 then time*price
if log.citycode 222 then time*price
if log.citycode 999 then time*price
else time*(select price from pricetable where citycode=100)
Off course i cannot do this from formula fields because of sql.
Thank You for your attention...
I have a problem and i will be vey happy if you share your comments and solutions with me.
I have a database that keeps telephone logs.I can get sum of all calls according to city codes.
I also have to take another report that calculates the price of these calls according to city codes.
So we created another table that consists city codes and price.
However this table was designed like that;
Code Price
for example //cellular 555 10$
//inside city 222 1$
//out of city 100 2$
//out of country 999 15$
here we have exact codes of cellular,inside city and out of country but we couldnt parse all city codes here.
i can succes this query like that i think.
if log.citycode 555 then time*price
if log.citycode 222 then time*price
if log.citycode 999 then time*price
else time*(select price from pricetable where citycode=100)
Off course i cannot do this from formula fields because of sql.
Thank You for your attention...