Board index » delphi » Re: Calculation within a Query/Cyril Damm
Shahzard
![]() Delphi Developer |
Re: Calculation within a Query/Cyril Damm2004-02-24 04:20:46 PM delphi110 "Cyril Damm \(charax\)" <XXXX@XXXXX.COM>writes: QuoteHi, Quote
|
Shahzard
![]() Delphi Developer |
Re: Calculation within a Query/Cyril Damm2004-02-24 04:20:46 PM delphi110 "Cyril Damm \(charax\)" <XXXX@XXXXX.COM>writes: QuoteHi, Quote
|
Cyril Damm (charax)
![]() Delphi Developer |
2004-02-24 06:07:57 PM
Re: Calculation within a Query/Cyril Damm
Hi,
ok then try this select qt2.Quantity - qt1.Quantity from tblShareBalance qt1, tblShareBalance qt2 where t1.Date = '01.01.2004' and t2.Date = '31.01.2004' and t1.CompID = xxxxxxx and t1.ShareHolderID = xxxxxxx and t1.CompID=t2.CompID and t1.ShareHolderID=t2.ShareHolderID dont forget to replace the "xxxxxxxxx" by whatever mfg-cd "Shahzard" <XXXX@XXXXX.COM>schrieb im Newsbeitrag Quote
|
Cyril Damm (charax)
![]() Delphi Developer |
2004-02-24 06:10:11 PM
Re: Calculation within a Query/Cyril Damm
Huuuu made a mistake.
Please replace all "t1" in where clause by "qt1" and all "t2" by "qt2" mfg-cd "Cyril Damm (charax)" <XXXX@XXXXX.COM>schrieb im Newsbeitrag QuoteHi, |