This commit is contained in:
13
PROMS/SQL Data Tools/WideTables.sql
Normal file
13
PROMS/SQL Data Tools/WideTables.sql
Normal file
@@ -0,0 +1,13 @@
|
||||
select Contentid, Sum(Width)/72 WidthInches from (
|
||||
select contentid
|
||||
,xWidth.value('.','int') Width
|
||||
,xRows.value('.','int') Rows
|
||||
,xColumns.value('.','int') Columns
|
||||
from grids gg
|
||||
cross apply data.nodes('//Width') tWidth(xWidth)
|
||||
cross apply data.nodes('//ColumnInfo/Count') tColumns(xColumns)
|
||||
cross apply data.nodes('//RowInfo/Count') tRows(xRows)
|
||||
--where contentid = 44566
|
||||
) AH
|
||||
where Rows=1 and Columns = 1 and Width > 500
|
||||
group by ContentID order by sum(width) desc
|
Reference in New Issue
Block a user