Created
March 27, 2013 13:47
-
-
Save yodiz/5254273 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT COUNT(*) FROM Cdr | |
JOIN Contract ON Cdr.BillingClientNr = Contract.ClientNr And Cdr.BillingContractNr = Contract.ContractNr | |
WHERE BillingClientNr = 44404 And StartTime > '2013-02-01' And StartTime < '2013-03-01' And Cdr.CallType=1 | |
And NumberGroupCode = 'FIXED' | |
And Contract.ProductNr = 0 | |
And Cdr.BillingPriceListCode like 'T%' | |
25908 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment