Please can the SQL code below be interpreted
IF @xMatchCriteria='MATCH12'
BEGIN
IF EXISTS (Select * from #InsightData where (EmailAddress=@xDCPEmailAddress ) )
BEGIN
SET @xTestMatchCriteria = @xMatchCriteria;
SELECT @xCRMCustomerId=CustomerId, @xCRMDcpCustomerId=DcpCustomerId, @xCRMPortalCustomerID=PortalCustomerID,@xCRMDcpID=DcpID, @xCRMCardNumber=CardNumber, @xCRMEmailAddress=EmailAddress, @xCRMfirtLetterFirstName=firtLetterFirstName,
@xCRMLastName=Surname,@xCRMAddressLine1=AddressLine1, @xCRMPostCode=PostCode
FROM #InsightData
where (EmailAddress=@xDCPEmailAddress )
END
ELSE
BEGIN
SET @xTestMatchCriteria='No'+@xMatchCriteria;
END
END


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More MySQL Interview Questions

What is the maximum number of columns per table?

0 Answers  


Write a query to create a database and a table?

0 Answers  


What is the purpose of -> in the mysql terminal?

0 Answers  


What is int unsigned?

0 Answers  


How does limit work in mysql?

0 Answers  






What are mysql queries?

0 Answers  


What is triggers?

0 Answers  


Explain the difference between delete and truncate.

0 Answers  


How do I switch users in mysql?

0 Answers  


How would concatenate strings in mysql?

0 Answers  


What is mysql connection limit?

0 Answers  


in a master-master replication with two masters and alternate slaves running on two systems.can i have a script or any mysql command to know which one is right now acting as master.

1 Answers  


Categories