Bingo !!!! the diference is only because i'm forgot [yawn] to put in the first SQL one modification that i do after....[banghead]
, Sum(IIf(RD="D",valor_real,0)) AS salario
that's works GREAT now!!!
One Coffee to me and one Star to you...
I write this SQL, but i think it's very ugly (but very functional)....
it make a sum of 3 diferents fields of BD and show then.
SELECT user_id, month, year, Sum(A808_real) AS T808_real, Sum(Airrf_real) AS Tirrf_real, Sum(sal_liq) as salario from
(SELECT GG_OSS_captura_real.user_id...
Thank's Paul, but i'm forget to say: The table have near 12000 lines (1156 ID x 12 month x 12 year), and i dont know when the person was included in the table.[ponder]
I will try:
01) My users after each transaction, send a report.
02) I need to know which reports was not been sent to me
03) the first 2 digits of Num_doc is the branch office code("11" in example)
04) with this information in hands I will call to ask where the report???"
I explained correctly?
To show the registers of a table: Select * from table. It´s OK.
But i need to show which documents had not been sent still....
Example of table:
Num_doc city owner day_month
110001 Fpolis John 01/05
110002 Palhoça Peter 02/05
110003 Fpolis...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.