У меня есть таблица:
ABC1234 GTR some information 01/03/07 some information 0.55
ABC1234 GTR some information 14/11/18 some information 0.45
ABC1234 GTR some information 14/11/18 some information 0.45
ABC1234 GTR some information 22/11/18 some information 0.55
и другая таблица:
ABC1234 3 39448.940091
ABC1234 3 30806.72651
ABC1234 3 14817.730764
ABC1234 3 13482.769
Я хочу добавить 4 десятичных значения в конце 2-й таблицы в первую таблицу, нокогда я запускаю свой запрос:
select ta.column1, ta.column2, ta.column3, ta.column4, ta.column5, ta.column6, tb.column3
from table_a ta,
table_b tb
where ta.column1, = tb.column1
and cd.contract_number = 'ABC1234';
Я хочу закончить с:
ABC1234 GTR some information 01/03/07 some information 0.55 39448.940091
ABC1234 GTR some information 14/11/18 some information 0.45 30806.72651
ABC1234 GTR some information 14/11/18 some information 0.45 14817.730764
ABC1234 GTR some information 22/11/18 some information 0.55 13482.769
, но я получаю 16 строк данных, где они зацикливаются вокруг table_b и показывают4 значения для каждой строки в table_a