On 11/16/2012 17:35, David Popiashvili
wrote:
did you try: with foo as ( select * from "Payments" as p inner join "PaymentOrders" as po on po."Id" = p."PaymentOrderId" inner join "Users" as u On u."Id" = po."UserId" INNER JOIN "Roles" as r on u."RoleId" = r."Id" Where r."Name" = 'Moses' ) select * from foo LIMIT 1000 ?
|