Divide one figure from another

Jaharul

New Member
Joined
Jul 14, 2004
Messages
34
This is the SQL from a Access project. What i am trying to do is divide the AMOUNT by the RATE as an expression but it don't seem to be working. Please help me. :rolleyes: :rolleyes: :rolleyes: :biggrin:

FROM dbo.SALFLDGALL INNER JOIN
dbo.SSRFACC ON dbo.SALFLDGALL.ACCNT_CODE = dbo.SSRFACC.ACCNT_CODE INNER JOIN
dbo.SSRFCNV ON dbo.SALFLDGALL.PERIOD = dbo.SSRFCNV.PERIOD
WHERE (dbo.SSRFACC.SUN_DB = 'ALL') AND (dbo.SSRFCNV.CODE = 'GBP')
GROUP BY dbo.SALFLDGALL.ACCNT_CODE, dbo.SALFLDGALL.PERIOD, dbo.SALFLDGALL.JRNAL_NO, dbo.SALFLDGALL.AMOUNT, dbo.SALFLDGALL.DESCRIPTN,
dbo.SALFLDGALL.OTHER_AMT, dbo.SALFLDGALL.ANAL_T1, dbo.SALFLDGALL.ANAL_T2, dbo.SALFLDGALL.ANAL_T0, dbo.SSRFACC.ACCNT_NAME,
dbo.SALFLDGALL.TREFERENCE, dbo.SALFLDGALL.ANAL_T4, dbo.SALFLDGALL.ALLOCATION, dbo.SSRFCNV.RATE
HAVING (dbo.SALFLDGALL.ACCNT_CODE BETWEEN '60000' AND '69999') AND (dbo.SALFLDGALL.ANAL_T4 = 'COMSEN') AND
(dbo.SALFLDGALL.ALLOCATION <> 'C')
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Hi Jaharul,

where's the SELECT statement? That's where I'd expect to see the division happening -- can't comment without that info...

Denis
 
Upvote 0

Forum statistics

Threads
1,221,813
Messages
6,162,126
Members
451,743
Latest member
matt3388

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top