#
#			ITSV GmbH
#
#	CCDB - Command and Control Database
#
#	FILE:			dquerymfile_SWQAGENDatAvail.txt
#	DESCRIPTION:	DQUERY definition for DQUERY SWQAGENDatAvail
#					this query shows available data in SWQAFBUCKETS
#
@querytitle			Verfügbare Daten aus SWQAFBUCKETS
@querydescription	zeigt Bereiche an, für die Daten aus SWQABUCKETS vorhanden sind
@group				SWQA
@querytype			dbselect
@sql				SELECT 1001 as RANG, 'Sec' as DIMENSION, MIN(Sec) as A, MAX(Sec) as B from SWQAFBUCKETS
					UNION
					SELECT 2001 as RANG, 'No' as DIMENSION, MIN(No) as A, MAX(No) as B from SWQAFBUCKETS
					UNION
					SELECT (3000+col.ORDINAL_POSITION) as RANG, 'Spalte' as DIMENSION, col.ORDINAL_POSITION as A, col.COLUMN_NAME as B
					  FROM INFORMATION_SCHEMA.COLUMNS col
					 WHERE TABLE_NAME='SWQAFBUCKETS' and TABLE_SCHEMA='ccdb'
					ORDER BY RANG ASC