Re: Report/Query for all advertisments of a specific user
- From: "Kroese, Ramon" <Ramon_point_Kroese@xxxxxx>
- Date: Thu, 9 Jun 2005 13:18:51 +0200
Dear Lars,
Most of our advertisments go against users. I can't find a table (or
table's) in the query builder that contains both the AdvertismentID and the
ResourceID of the user. With these value's I can create a Join and retrieve
the information I want. From the SMS administrator console it is posible to
see the advertisements of a user but I want to create a report for it.
Ramon
"Lars Norman Søndergaard" <lns@xxxxxxxxxxxxx> wrote in message
news:uq5GrK2aFHA.2128@xxxxxxxxxxxxxxxxxxxxxxx
> Hi Ramon,
>
> Your problem is probably that your advertisements go against machines and
> not users. So you will have to rely on last logged on user. That way you
> can join users to machines.
>
> Thanks
> Lars Norman Søndergaard
> "Kroese, Ramon" <Ramon_point_Kroese@xxxxxx> skrev i en meddelelse
> news:Oo5Ok21aFHA.3016@xxxxxxxxxxxxxxxxxxxxxxx
>> Hi All,
>>
>> I want to create a query to find all the advertisements a specific user
>> gets offered.
>>
>> I have cloned the report 'All advertisements for a specific computer' and
>> changed the prompt and the query into:
>>
>> SELECT adv.AdvertisementName,
>> stat.LastStateName,
>> adv.Comment AS C072,
>> pkg.Name AS C062,
>> adv.ProgramName AS C071,
>> adv.SourceSite,
>> adv.AdvertisementID
>> FROM v_Advertisement adv
>> JOIN v_Package pkg ON adv.PackageID = pkg.PackageID
>> JOIN v_ClientAdvertisementStatus stat ON stat.AdvertisementID =
>> adv.AdvertisementID
>> JOIN v_R_User Usr ON stat.ResourceID=Usr.ResourceID
>> WHERE Usr.User_Name0=@UserName
>>
>>
>> The problem is that the ResourceID from the view
>> 'v_ClientAdvertisementStatus' is NOT the ResourceID of the user. With the
>> CollectionID from the view 'v_Advertisement' it is possible to retrieve
>> the collection. Is it posible to retrieve the CollectionID's or
>> AdvertisementID's from a user so I can create a join?
>>
>> Thanks in advance,
>>
>> Ramon Kroese
>>
>
>
.
- Follow-Ups:
- Re: Report/Query for all advertisments of a specific user
- From: Lars Norman Søndergaard
- Re: Report/Query for all advertisments of a specific user
- References:
- Report/Query for all advertisments of a specific user
- From: Kroese, Ramon
- Re: Report/Query for all advertisments of a specific user
- From: Lars Norman Søndergaard
- Report/Query for all advertisments of a specific user
- Prev by Date: Re: Capturing an image of a Pocket PC?
- Next by Date: Maximum number of Collections in SMS2003?
- Previous by thread: Re: Report/Query for all advertisments of a specific user
- Next by thread: Re: Report/Query for all advertisments of a specific user
- Index(es):
Relevant Pages
|