Hello,
We are using GoldMine Premium 8.03. I have the following query (simplified) which I would like to add a column that indicates whether the contact is from the Primary or Additional table:
SELECT
c1.company
,c1.contact
,c1.phone1 AS Phone
,c1.accountno
FROM
contact1 c1
UNION
SELECT
c1.company
,cs.contact
,cs.phone AS Phone
,cs.accountno
FROM
contsupp cs
JOIN contact1 c1
ON cs.accountno=c1.accountno
WHERE
cs.rectype = 'C'
AND (cs.address1 is null
OR cs.address1 < '1')
ORDER BY
company
Thanks in advanced for your help!
We are using GoldMine Premium 8.03. I have the following query (simplified) which I would like to add a column that indicates whether the contact is from the Primary or Additional table:
SELECT
c1.company
,c1.contact
,c1.phone1 AS Phone
,c1.accountno
FROM
contact1 c1
UNION
SELECT
c1.company
,cs.contact
,cs.phone AS Phone
,cs.accountno
FROM
contsupp cs
JOIN contact1 c1
ON cs.accountno=c1.accountno
WHERE
cs.rectype = 'C'
AND (cs.address1 is null
OR cs.address1 < '1')
ORDER BY
company
Thanks in advanced for your help!