All pastes #627273 Raw Edit

Miscellany

public sql v1 · immutable
·published 2007-07-20 06:39 UTC
rendered paste body
create view "ProjectVW" ( "ProjectId", "ProjectName", "CustomerId", "CustomerName", "Status", "TotalWelds", "TotalDrawings", "TotalSpools") as 	select c1."ProjectId", c1."ProjectName", c1."CustomerId", c2."CustomerName", c1."Status", dbo.GetWeldCountOnProject(c1."ProjectId"), dbo.GetProjectDrawingCount(c1."ProjectId"), dbo.GetProjectSpoolCount(c1."ProjectId")  	from "Project" c1, "Customer" c2  	where c1."CustomerId" = c2."CustomerId"  with check option