Skip to content
Loading
  • 0
    Hi,
     
    Please try below query
     
     SELECT  Revision_ID,CountParts INTO #temprev (
     SELECT Revision_ID,COUNT(*) OVER(PARTITION BY ZPartID ORDER BY CountParts DESC) AS "CountParts" FROM Parts,

     )
      AS INC
     WHERE INC.CountParts < 10000
    0