﻿<?xml version="1.0" encoding="utf-8"?>
<ReportsExport>
  <Reports>
    <Report id="e7f6334b-247b-4a83-bdba-d6f7e9befb51" codekey="Debeka_UsersNoEducationOfferingNew" categoryCodekey="UserStats" name="Alle User ohne BA (NEU!)" description="">
      <MetaData created="2011-06-01T10:03:14" createdBy="Christian Helmus" modified="2012-04-12T16:54:01" modifiedBy="Administrator Debeka" />
      <ExecutionDetails format="TableResult" commandType="SqlCommandOrQuery" exportHandler="" adminControl="" exportMultipleTablesToSheets="False" datesWithTime="False" extraParams="" />
      <Mandators mandatorMode="OnlyOwner" mandator_id="6279bb24-f218-49e0-9155-7c1cb1dba226" mandatorName="Debeka" isStandard="False" isUsedByMenu="False" />
      <Roles />
      <command>-- declare @current_mandator_id uniqueidentifier
-- select @current_mandator_id=id from tblMandators where name='viwis'

select *

from
	v_Users
where
	v_Users.mandator_id=@current_mandator_id
	and
	(select COUNT(*) 
		from tblEduOffersTargetGroups
		inner join tblUsersTargetGroups on tblUsersTargetGroups.targetGroup_id=tblEduOffersTargetGroups.targetGroup_id
		where tblUsersTargetGroups.UserCn=v_Users.intUserCn)=0
order by v_Users.descUserCn
</command>
    </Report>
  </Reports>
</ReportsExport>