1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
| select referentiel.stock_name2 stock_name2,
resume.close close,
resume.open open,
resume.thp thp,
resume.thchange thchange,
resume.last last,
resume.high high,
resume.low low,
resume.max max,
resume.min min,
resume.lastchange lastchange,
resume.code code,
resume.upd_time upd_time,
resume.status status,
resume.CTO CTO,
sum(INTARADAY.last*INTARADAY.volume) capitals,
sum(INTARADAY.volume) volume,
sum(INTARADAY.last*INTARADAY.volume)/sum(INTARADAY.volume) PVWAP
from resume,
referentiel,
INTARADAY
where (resume.code=referentiel.code
and referentiel.quote_group in (11, 12)
and INTARADAY.code(+)=referentiel.code
)
group by referentiel.stock_name2,
resume.close,
resume.open,
resume.thp,
resume.thchange,
resume.last,
resume.high,
resume.low,
resume.max ,
resume.min ,
resume.upd_time,
resume.status,
resume.CTO,
resume.code ,
resume.lastchange
order by referentiel.stock_name2 |
Partager