Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --------------- no sales -------------------
- select * from "BillingRegister"."BillingRegisterDetails" brd
- left outer join "BillingRegister"."SalesRegisters" sr
- on sr."BRDetId" = brd."Id"
- aand brd."BillingRegisterTypeId" = 1
- and sr."Id" is null
- select * from "BillingRegister"."BillingRegisterDetails" brd
- where brd."BillingRegisterTypeId" = 1
- and "StatusId" = 4
- and "Id" not in (select "BillingRegisterId" from "BillingRegister"."SalesRegisters" sr)
- select coalesce(replace('2,000', ',', '')::numeric, 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement