Advertisement
Advertisement
| 08.10.2008 at 10:45PM PDT, ID: 23636992 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: |
SELECT
c.contact_id as contact_id,
c.first_names as first_names,
c.last_name as last_name,
c.home_phone as home_phone,
c.work_phone as work_phone,
c.cell_phone as cell_phone,
o.entered_at as entered_at
FROM
contacts AS c
INNER JOIN opportunities AS o
ON o.contact_id = c.contact_id
WHERE
o.opportunity_status_id = 9
AND o.lender_id IN (3, 4, 5)
AND o.entered_at BETWEEN '" . $startDate . "' AND '" . $endDate . "'
GROUP BY
c.contact_id
HAVING
COUNT(DISTINCT o.lender_id) = 3
UNION
SELECT
c.contact_id as contact_id,
c.first_names as first_names,
c.last_name as last_name,
c.home_phone as home_phone,
c.work_phone as work_phone,
c.cell_phone as cell_phone,
o.entered_at as entered_at
FROM
contacts AS c
INNER JOIN opportunities AS o
ON o.contact_id = c.contact_id
WHERE
o.opportunity_status_id = 9
AND o.level = 'x'
AND o.entered_at BETWEEN '" . $startDate . "' AND '" . $endDate . "'
GROUP BY
c.contact_id
ORDER BY
MIN(o.entered_at) DESC
|