Help with request
Help with requestThere are 2 tables: 1 id FIO acc sum 1 IVANOV 21 250 1 IVANOV 25 350 2 id FIO ac2 sum2 1 IVANOV 23 150 1 IVANOV 29 50 It is necessary to receive as a result: id FIO acc sum ac2 sum2 1...
View ArticleRe: Help with request
ArtNick;The variant while is not present, to a head of anything does not come yet
View ArticleRe: Help with request
Cydia wrote: ArtNick;The variant while is not present, to a head of anything does not come yetJudging by the data, should not come :-)1) There is a suspicion that in both tables there is no "primary...
View ArticleRe: Help with request
Goes?SELECT ' 1 ' id; ' IVANOV ' FIO; ' 21 ' acc; ' 250 ' SUM; ' 23 ' ac2; ' 250 ' sum2 FROM DUAL UNION ALL SELECT ' 1 '; ' IVANOV '; ' 25 '; ' 350 '; ' 29 '; ' 50' FROM DUAL
View ArticleRe: Help with request
Like as it turned out with t as ( select 1 id, ' IVANOV ' fio, 21 acc, 250 nSum from dual union all select 1 id, ' IVANOV ' fio, 25 acc, 350 nSum from dual ); t2 as (select 1 id, ' IVANOV ' fio, 23...
View ArticleRe: Help with request
Cydia;This case only for a specific example. In cases if in the table t2 not 2 records, and are more, then this request will not work
View ArticleRe: Help with request
Cydia wrote: Cydia;This case only for a specific example. In cases if in the table t2 not 2 records, and are more, then this request will not workWhy it will not be? 2 lines will work and also returns....
View ArticleRe: Help with request
ArtNick;It is necessary maximum at lines from 2 tables. I.e. for example in the first table 10 of lines, in the second 15, as a result should it turns out 15
View ArticleRe: Help with request
Here so will be more correct, if I am not mistaken once again)with t as ( select 1 id, ' IVAN ' fio, 21 acc, 250 nSum from dual union all select 1 id, ' IVAN ' fio, 25 acc, 350 nSum from dual union all...
View ArticleRe: Help with request
Cydia wrote: ArtNick;It is necessary maximum at lines from 2 tables. I.e. for example in the first table 10 of lines, in the second 15, as a result should it turns out 15with t as ( select 1 id, '...
View Article