19. November 2009 14:14
19. November 2009 17:22
19. November 2009 21:39
19. November 2009 22:03
23. November 2009 09:16
23. November 2009 10:12
SELECT FA1.name, FC1.lastname, FC1.firstname
FROM dbo.FilteredAccount AS FA1 LEFT OUTER JOIN
dbo.FilteredContact AS FC1 ON FA1.accountid = FC1.accountid
WHERE FA1.<firmentyp> like 'target' AND FC1.<contacttyp> like 'keyplayer'
23. November 2009 16:57
SELECT FA1.name, FC1.fullname, FO1.name AS Verkaufschance
FROM FilteredAccount AS FA1 LEFT OUTER JOIN
FilteredContact AS FC1 ON FA1.accountid = FC1.accountid LEFT OUTER JOIN
FilteredOpportunity AS FO1 ON FA1.accountid = FO1.accountid
GROUP BY FA1.name, FC1.fullname, FO1.name
23. November 2009 17:10
23. November 2009 17:16
SELECT DISTINCT FA1.name, FC1.fullname, FO1.name AS Verkaufschance, FE1.description
FROM FilteredAccount AS FA1 LEFT OUTER JOIN
FilteredContact AS FC1 ON FA1.accountid = FC1.accountid LEFT OUTER JOIN
FilteredOpportunity AS FO1 ON FA1.accountid = FO1.accountid LEFT OUTER JOIN
FilteredEmail AS FE1 ON FA1.accountid = FE1.regardingobjectid
GROUP BY FA1.name, FC1.fullname, FO1.name, FE1.description
23. November 2009 17:34
SELECT DISTINCT FA1.name, FC1.fullname, FO1.name AS Verkaufschance, FE1.description,
(Select * from wasauchimmer WHERE accountId = FA1.accountId and ....)
FROM FilteredAccount AS FA1 LEFT OUTER JOIN
FilteredContact AS FC1 ON FA1.accountid = FC1.accountid LEFT OUTER JOIN
FilteredOpportunity AS FO1 ON FA1.accountid = FO1.accountid LEFT OUTER JOIN
FilteredEmail AS FE1 ON FA1.accountid = FE1.regardingobjectid
23. November 2009 17:39
SELECT FilteredAccount.name, FilteredContact_1.fullname,
(SELECT fullname
FROM FilteredContact
WHERE (accountid = FilteredAccount.accountid)) AS Kontakte
FROM FilteredAccount LEFT OUTER JOIN
FilteredContact AS FilteredContact_1 ON FilteredAccount.accountid = FilteredContact_1.accountid
SELECT name,
(SELECT fullname
FROM FilteredContact
WHERE (accountid = FilteredAccount.accountid)) AS Kontakte
FROM FilteredAccount
SELECT name,
(SELECT FilteredContact.fullname
FROM FilteredContact LEFT OUTER JOIN
FilteredContact AS FilteredContact_1 ON FilteredAccount.accountid = FilteredContact.accountid) AS Kontakte
FROM FilteredAccount
24. November 2009 11:34
24. November 2009 11:49
24. November 2009 12:05
24. November 2009 12:09
24. November 2009 14:05
25. November 2009 11:02
SELECT FilteredContact.fullname, FilteredOpportunity.name
FROM FilteredContact LEFT OUTER JOIN
FilteredOpportunity ON FilteredContact.contactid = FilteredOpportunity.customerid OR FilteredContact.accountid = FilteredOpportunity.customerid
WHERE (FilteredContact.parentcustomerid = @accountid)
25. November 2009 19:46
7. Dezember 2009 12:49
SELECT FilteredActivityPointer.Description, FilteredActivityPointer.Subject, FilteredActivityPointer.ScheduledEnd, FilteredActivityPointer.OwnerIdName, FilteredActivityPointer.StateCode, FilteredActivityPointer.StatusCode, FilteredActivityPointer.ActivityTypeCode
FROM FilteredActivityPointer LEFT OUTER JOIN
FilteredContact ON FilteredActivityPointer.RegardingObjectId = FilteredContact.contactid OR FilteredActivityPointer.RegardingObjectId = FilteredContact.accountid
WHERE (FilteredContact.parentcustomerid = @accountid)