0
У меня есть ниже запрос: -MySQL отчетливый или группирования запрос
Select
PUB.oa_inthed.adcode As Address_Code,
PUB.oa_intnom."due-date" As Commitment_Due_Date,
PUB.oa_inthed.company As Company,
PUB.oa_intnom.costcentre As Cost_Code,
PUB.oa_inthed.currency As Currency,
PUB.oa_inthed.description As Description,
PUB.oa_inthed.docdate As Document_Date,
PUB.oa_inthed."doc-id" As Document_Type,
PUB.oa_intnom.expensecode As Expense_Code,
PUB.oa_inthed.intid As Interface_Record_Key,
PUB.oa_inthed.posted As "Posted?",
PUB.oa_inthed.srcaccount As Source_Account,
PUB.oa_inthed.docval As Value_Cur,
PUB.oa_inthed.period As Period,
PUB.oa_inthed.stat As Status
From
PUB.oa_inthed Inner Join
PUB.oa_intnom On PUB.oa_intnom.intid = PUB.oa_inthed.intid Inner Join
PUB.oa_intextra On PUB.oa_intextra.intid = PUB.oa_intnom.intid
Where
PUB.oa_inthed.company = 01 And
PUB.oa_inthed.intid = 'XM618197%' And
PUB.oa_intextra.rectype = 'REQHEAD'
и возвращает ниже данные: -
Как я могу получить отдельную строку для каждого intid?
Я использую MySQL.
Все советы приветствуются
ли 'SELECT DISTINCT ...' не работает. Все строки на скриншоте кажутся дублирующими. – InbetweenWeekends