CREATE OR REPLACE VIEW dbo."Sas_H_OrderItem_ByTenantId" AS SELECT oi."Id", o."TenantId", oi."ProductId", oi."ProductName", oi."BillingCycle", oi."Period", oi."Quantity", oi."Price", oi."VatRate", oi."VatAmount", oi."TotalPrice", oi."OrderId", o."IsActive" FROM dbo."Sas_H_Order" o INNER JOIN dbo."Sas_H_OrderItem" oi ON o."Id" = oi."OrderId";