HI,
I have the following SQL query statement that I need to attach a distinct value onto one of the fields i.e.[Tbl_Decision Maker].[Decision Maker Surname] but cannot seem to get it right. Any help would be GREATFULLY received.
SELECT Tbl_CusDetails.[Company Name], [Tbl_Decision Maker].[Decision Maker Title], [Tbl_Decision Maker].[Decision Maker First Name], [Tbl_Decision Maker].[Decision Maker Surname], [Tbl_Decision Maker].[Job Title], Tbl_CusDetails.Telephone, Tbl_mailing_campaign.[Mailing Campaign Name], tbl_Stage_2_Status.Stage_2_Status, Tbl_CusDetails.Stage_1_CapturedBy
FROM tbl_Stage_2_Status, (Tbl_CusDetails INNER JOIN [Tbl_Decision Maker] ON Tbl_CusDetails.CompanyID = [Tbl_Decision Maker].[Customer ID]) INNER JOIN Tbl_mailing_campaign ON Tbl_CusDetails.CompanyID = Tbl_mailing_campaign.ClientId
WHERE (((tbl_Stage_2_Status.Stage_2_Status)="2QCIAH" Or (tbl_Stage_2_Status.Stage_2_Status)="2QCIAW" Or (tbl_Stage_2_Status.Stage_2_Status)="2QCITH" Or (tbl_Stage_2_Status.Stage_2_Status)="2QCITW"));
TIA
Rob
I have the following SQL query statement that I need to attach a distinct value onto one of the fields i.e.[Tbl_Decision Maker].[Decision Maker Surname] but cannot seem to get it right. Any help would be GREATFULLY received.
SELECT Tbl_CusDetails.[Company Name], [Tbl_Decision Maker].[Decision Maker Title], [Tbl_Decision Maker].[Decision Maker First Name], [Tbl_Decision Maker].[Decision Maker Surname], [Tbl_Decision Maker].[Job Title], Tbl_CusDetails.Telephone, Tbl_mailing_campaign.[Mailing Campaign Name], tbl_Stage_2_Status.Stage_2_Status, Tbl_CusDetails.Stage_1_CapturedBy
FROM tbl_Stage_2_Status, (Tbl_CusDetails INNER JOIN [Tbl_Decision Maker] ON Tbl_CusDetails.CompanyID = [Tbl_Decision Maker].[Customer ID]) INNER JOIN Tbl_mailing_campaign ON Tbl_CusDetails.CompanyID = Tbl_mailing_campaign.ClientId
WHERE (((tbl_Stage_2_Status.Stage_2_Status)="2QCIAH" Or (tbl_Stage_2_Status.Stage_2_Status)="2QCIAW" Or (tbl_Stage_2_Status.Stage_2_Status)="2QCITH" Or (tbl_Stage_2_Status.Stage_2_Status)="2QCITW"));
TIA
Rob