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
What?s the difference between PRIMARY KEY and UNIQUE in MyISAM?
How can I change database in mysql?
How to use rank function in mysql?
What is difference between mysql and mysqli?
What is the difference between unix timestamps and mysql timestamps?
What is a blob datatype?
How to get a list of all tables in a database?
how to add a new column to an existing table?
Consider a scenario where you have to send an email to a client from the sql database. How do you think you can achieve this task?
What is a scalar function?
Consider you have a composite index of three columns. Now, you have to provide the value of two columns in the where clause of a select query. Do you think index can be used for the operation?
What is datadir?