SELECT
CURRENT_TIMESTAMP AS CURDATE,
ADDDATE(
CS.timestamp_SurveyDateCreated,
INTERVAL ST.tinyint_ResendInterval DAY
) AS OFFDATE,
C.*,
SL.*,
SP.*
FROM
21_consumersurveys CS
LEFT JOIN (
19_consumers C,
25_serviceleads SL,
10_serviceprospects SP,
20_surveytypes ST
) ON (
CS.bigint_ConsumerID = C.bigint_ConsumerID AND
CS.bigint_LeadID = SL.bigint_LeadID AND
CS.bigint_ReferenceID = SP.bigint_ProspectID AND
CS.bigint_SurveyType = ST.bigint_SurveyID
)
WHERE
OFFDATE <= CURDATE AND
CS.tinyint_SurveyStatus = 0;
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.