<NewDataSet>
  <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
    <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
      <xs:complexType>
        <xs:choice minOccurs="0" maxOccurs="unbounded">
          <xs:element name="PDRDataQueryType">
            <xs:complexType>
              <xs:sequence>
                <xs:element name="ID" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" />
              </xs:sequence>
            </xs:complexType>
          </xs:element>
          <xs:element name="PDRDataQueryClassBase">
            <xs:complexType>
              <xs:sequence>
                <xs:element name="ID" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" />
                <xs:element name="Description" minOccurs="0">
                  <xs:simpleType>
                    <xs:restriction base="xs:string">
                      <xs:maxLength value="2147483647" />
                    </xs:restriction>
                  </xs:simpleType>
                </xs:element>
                <xs:element name="SchemaClassName" minOccurs="0">
                  <xs:simpleType>
                    <xs:restriction base="xs:string">
                      <xs:maxLength value="100" />
                    </xs:restriction>
                  </xs:simpleType>
                </xs:element>
                <xs:element name="Name">
                  <xs:simpleType>
                    <xs:restriction base="xs:string">
                      <xs:maxLength value="100" />
                    </xs:restriction>
                  </xs:simpleType>
                </xs:element>
                <xs:element name="UsedInTypePDRDataQueryType" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" minOccurs="0" />
                <xs:element name="IsDefault" type="xs:unsignedByte" />
                <xs:element name="SQLQuery" minOccurs="0">
                  <xs:simpleType>
                    <xs:restriction base="xs:string">
                      <xs:maxLength value="2147483647" />
                    </xs:restriction>
                  </xs:simpleType>
                </xs:element>
                <xs:element name="ImplementationType">
                  <xs:simpleType>
                    <xs:restriction base="xs:string">
                      <xs:maxLength value="1" />
                    </xs:restriction>
                  </xs:simpleType>
                </xs:element>
                <xs:element name="AllowCache" type="xs:unsignedByte" />
                <xs:element name="CultureSensitive" type="xs:unsignedByte" />
                <xs:element name="CacheInterval" type="xs:int" />
                <xs:element name="SubCollection" minOccurs="0">
                  <xs:simpleType>
                    <xs:restriction base="xs:string">
                      <xs:maxLength value="100" />
                    </xs:restriction>
                  </xs:simpleType>
                </xs:element>
                <xs:element name="Operation" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" minOccurs="0" />
                <xs:element name="Tag" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" minOccurs="0" />
              </xs:sequence>
            </xs:complexType>
          </xs:element>
          <xs:element name="PDRDataQueryClassBase-CI">
            <xs:complexType>
              <xs:sequence>
                <xs:element name="ID" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" />
                <xs:element name="Owner" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" />
                <xs:element name="LCID" type="xs:int" />
                <xs:element name="Description" minOccurs="0">
                  <xs:simpleType>
                    <xs:restriction base="xs:string">
                      <xs:maxLength value="2147483647" />
                    </xs:restriction>
                  </xs:simpleType>
                </xs:element>
              </xs:sequence>
            </xs:complexType>
          </xs:element>
          <xs:element name="PDRDataQueryClassColumn">
            <xs:complexType>
              <xs:sequence>
                <xs:element name="ID" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" />
                <xs:element name="Expression">
                  <xs:simpleType>
                    <xs:restriction base="xs:string">
                      <xs:maxLength value="2147483647" />
                    </xs:restriction>
                  </xs:simpleType>
                </xs:element>
                <xs:element name="Name">
                  <xs:simpleType>
                    <xs:restriction base="xs:string">
                      <xs:maxLength value="30" />
                    </xs:restriction>
                  </xs:simpleType>
                </xs:element>
                <xs:element name="UsedInTypePDRDataQueryType" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" minOccurs="0" />
                <xs:element name="IsSystem" type="xs:unsignedByte" />
                <xs:element name="Title" minOccurs="0">
                  <xs:simpleType>
                    <xs:restriction base="xs:string">
                      <xs:maxLength value="100" />
                    </xs:restriction>
                  </xs:simpleType>
                </xs:element>
                <xs:element name="Sorting" type="xs:int" minOccurs="0" />
                <xs:element name="Position" type="xs:int" minOccurs="0" />
                <xs:element name="Alignment" type="xs:int" minOccurs="0" />
                <xs:element name="Visibility" type="xs:int" minOccurs="0" />
                <xs:element name="Width" minOccurs="0">
                  <xs:simpleType>
                    <xs:restriction base="xs:string">
                      <xs:maxLength value="30" />
                    </xs:restriction>
                  </xs:simpleType>
                </xs:element>
                <xs:element name="ShowFilter" type="xs:unsignedByte" />
                <xs:element name="Format" minOccurs="0">
                  <xs:simpleType>
                    <xs:restriction base="xs:string">
                      <xs:maxLength value="100" />
                    </xs:restriction>
                  </xs:simpleType>
                </xs:element>
                <xs:element name="DisplayType" type="xs:int" />
                <xs:element name="Color" minOccurs="0">
                  <xs:simpleType>
                    <xs:restriction base="xs:string">
                      <xs:maxLength value="7" />
                    </xs:restriction>
                  </xs:simpleType>
                </xs:element>
                <xs:element name="ImageScript" minOccurs="0">
                  <xs:simpleType>
                    <xs:restriction base="xs:string">
                      <xs:maxLength value="2147483647" />
                    </xs:restriction>
                  </xs:simpleType>
                </xs:element>
                <xs:element name="ColorType" type="xs:int" minOccurs="0" />
                <xs:element name="ColorScript" minOccurs="0">
                  <xs:simpleType>
                    <xs:restriction base="xs:string">
                      <xs:maxLength value="2147483647" />
                    </xs:restriction>
                  </xs:simpleType>
                </xs:element>
                <xs:element name="TitleType" type="xs:int" />
                <xs:element name="DisplayImage" type="xs:int" />
                <xs:element name="SearchDisplayType" type="xs:int" />
                <xs:element name="IsKeyword" type="xs:unsignedByte" />
                <xs:element name="SearchExpression" minOccurs="0">
                  <xs:simpleType>
                    <xs:restriction base="xs:string">
                      <xs:maxLength value="100" />
                    </xs:restriction>
                  </xs:simpleType>
                </xs:element>
                <xs:element name="SortingExpression" minOccurs="0">
                  <xs:simpleType>
                    <xs:restriction base="xs:string">
                      <xs:maxLength value="2147483647" />
                    </xs:restriction>
                  </xs:simpleType>
                </xs:element>
              </xs:sequence>
            </xs:complexType>
          </xs:element>
          <xs:element name="PDRDataQueryClassColumn-CI">
            <xs:complexType>
              <xs:sequence>
                <xs:element name="ID" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" />
                <xs:element name="Owner" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" type="xs:string" />
                <xs:element name="LCID" type="xs:int" />
                <xs:element name="Title" minOccurs="0">
                  <xs:simpleType>
                    <xs:restriction base="xs:string">
                      <xs:maxLength value="100" />
                    </xs:restriction>
                  </xs:simpleType>
                </xs:element>
              </xs:sequence>
            </xs:complexType>
          </xs:element>
        </xs:choice>
      </xs:complexType>
      <xs:unique name="Constraint1" msdata:PrimaryKey="true">
        <xs:selector xpath=".//PDRDataQueryType" />
        <xs:field xpath="ID" />
      </xs:unique>
      <xs:unique name="PDRDataQueryClassBase_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
        <xs:selector xpath=".//PDRDataQueryClassBase" />
        <xs:field xpath="ID" />
      </xs:unique>
      <xs:unique name="PDRDataQueryClassBase-CI_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
        <xs:selector xpath=".//PDRDataQueryClassBase-CI" />
        <xs:field xpath="ID" />
      </xs:unique>
      <xs:unique name="PDRDataQueryClassColumn_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
        <xs:selector xpath=".//PDRDataQueryClassColumn" />
        <xs:field xpath="ID" />
      </xs:unique>
      <xs:unique name="PDRDataQueryClassColumn-CI_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
        <xs:selector xpath=".//PDRDataQueryClassColumn-CI" />
        <xs:field xpath="ID" />
      </xs:unique>
    </xs:element>
  </xs:schema>
  <PDRDataQueryType>
    <ID>60629c14-9938-cbb0-f68d-08dcc8fc2b01</ID>
  </PDRDataQueryType>
  <PDRDataQueryClassBase>
    <ID>3263bc73-da66-ef11-7884-00155d320616</ID>
    <Name>C4IT_LIAM_CountServiceBookings</Name>
    <UsedInTypePDRDataQueryType>60629c14-9938-cbb0-f68d-08dcc8fc2b01</UsedInTypePDRDataQueryType>
    <IsDefault>1</IsDefault>
    <SQLQuery>select count(b.BookingID) as c, t.DisplayString as targettype, ot.DisplayString as ordertype
from SVCServiceBookingClassBase b 
left join SPSSelfServiceOrderPickupType ot on ot.Value = b.OrderType
left join SPSArticleClassBase a on b.Service = a.ID
left join SPSCommonClassBase fc on a.ServiceForm = fc.ID
left join C4IT_DataAreaServiceConfigurationClassBase f on fc.[Expression-ObjectID] = f.[Expression-ObjectID]
left join C4IT_DataAreaClassBase da on da.id = f.DataArea
left join C4IT_GCC_DataArea_Collector gcc on da.DataAreaConfiguration = gcc.ID
left join C4IT_DataAreaTargetPickupType t on gcc.GCCtargetType = t.Value
--left join C4IT_LIAMServiceTypeClassBase st on gcc.ServiceType = st.ID

where a.ServiceType = 20027 and UsedInTypeSPSArticleTypeService is not null
group by t.DisplayString, ot.DisplayString</SQLQuery>
    <ImplementationType>q</ImplementationType>
    <AllowCache>1</AllowCache>
    <CultureSensitive>0</CultureSensitive>
    <CacheInterval>60</CacheInterval>
    <Tag>3d3063db-dde3-4c61-8ee2-e5c8d9637ade</Tag>
  </PDRDataQueryClassBase>
  <PDRDataQueryClassBase-CI>
    <ID>4063bc73-da66-ef11-7884-00155d320616</ID>
    <Owner>3263bc73-da66-ef11-7884-00155d320616</Owner>
    <LCID>7</LCID>
  </PDRDataQueryClassBase-CI>
  <PDRDataQueryClassColumn>
    <ID>0faa2e20-3ed0-4f68-a323-92acd9bd470c</ID>
    <Expression>c</Expression>
    <Name>c</Name>
    <UsedInTypePDRDataQueryType>60629c14-9938-cbb0-f68d-08dcc8fc2b01</UsedInTypePDRDataQueryType>
    <IsSystem>0</IsSystem>
    <Title>Number of bookings</Title>
    <Sorting>0</Sorting>
    <Position>10</Position>
    <Alignment>2</Alignment>
    <Visibility>0</Visibility>
    <Width>75</Width>
    <ShowFilter>0</ShowFilter>
    <DisplayType>0</DisplayType>
    <TitleType>0</TitleType>
    <DisplayImage>0</DisplayImage>
    <SearchDisplayType>0</SearchDisplayType>
    <IsKeyword>0</IsKeyword>
  </PDRDataQueryClassColumn>
  <PDRDataQueryClassColumn>
    <ID>00f9084f-ba2b-4746-ae38-e7952290fa8f</ID>
    <Expression>ordertype</Expression>
    <Name>ordertype</Name>
    <UsedInTypePDRDataQueryType>60629c14-9938-cbb0-f68d-08dcc8fc2b01</UsedInTypePDRDataQueryType>
    <IsSystem>0</IsSystem>
    <Title>Order type</Title>
    <Sorting>0</Sorting>
    <Position>20</Position>
    <Alignment>0</Alignment>
    <Visibility>0</Visibility>
    <Width>200</Width>
    <ShowFilter>0</ShowFilter>
    <DisplayType>0</DisplayType>
    <TitleType>0</TitleType>
    <DisplayImage>0</DisplayImage>
    <SearchDisplayType>0</SearchDisplayType>
    <IsKeyword>0</IsKeyword>
  </PDRDataQueryClassColumn>
  <PDRDataQueryClassColumn>
    <ID>ddb101fb-25fb-46c4-8e30-f0ec932d039e</ID>
    <Expression>targettype</Expression>
    <Name>targettype</Name>
    <UsedInTypePDRDataQueryType>60629c14-9938-cbb0-f68d-08dcc8fc2b01</UsedInTypePDRDataQueryType>
    <IsSystem>0</IsSystem>
    <Title>Target type</Title>
    <Sorting>0</Sorting>
    <Position>15</Position>
    <Alignment>0</Alignment>
    <Visibility>0</Visibility>
    <Width>250</Width>
    <ShowFilter>0</ShowFilter>
    <DisplayType>0</DisplayType>
    <TitleType>0</TitleType>
    <DisplayImage>0</DisplayImage>
    <SearchDisplayType>0</SearchDisplayType>
    <IsKeyword>0</IsKeyword>
  </PDRDataQueryClassColumn>
  <PDRDataQueryClassColumn-CI>
    <ID>4163bc73-da66-ef11-7884-00155d320616</ID>
    <Owner>0faa2e20-3ed0-4f68-a323-92acd9bd470c</Owner>
    <LCID>7</LCID>
    <Title>Count</Title>
  </PDRDataQueryClassColumn-CI>
  <PDRDataQueryClassColumn-CI>
    <ID>4363bc73-da66-ef11-7884-00155d320616</ID>
    <Owner>00f9084f-ba2b-4746-ae38-e7952290fa8f</Owner>
    <LCID>7</LCID>
    <Title>Bestelltyp</Title>
  </PDRDataQueryClassColumn-CI>
  <PDRDataQueryClassColumn-CI>
    <ID>4263bc73-da66-ef11-7884-00155d320616</ID>
    <Owner>ddb101fb-25fb-46c4-8e30-f0ec932d039e</Owner>
    <LCID>7</LCID>
    <Title>Art des Zielsystems</Title>
  </PDRDataQueryClassColumn-CI>
  <PDRAudienceClass>
    <ID>dc5354e7-9fcf-485e-863d-c14ddae7dd92</ID>
    <Unrestricted>0</Unrestricted>
    <Configured>0</Configured>
    <ConsiderRelated>0</ConsiderRelated>
    <StrictAdminControl>0</StrictAdminControl>
    <UsedInTypePDRDataQueryType>60629c14-9938-cbb0-f68d-08dcc8fc2b01</UsedInTypePDRDataQueryType>
  </PDRAudienceClass>
</NewDataSet>