au faitej'ai deux table
table po_lines_v qui contient les champs suivant
po_header_id
po_line_id
item_number
unit_price
quantity
table po_headers_v qui contient les chanps suivant
po_header_id
segment1
vendor_name
currency_code
comments
Quant j'ai execute cette comande elle marche a merveille
elle me liste tout les lignes
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 select comments,vendor_name,currency_code,quantity*unit_price from po_lines_v plv,po_headers_v phv where phv.segment1='5063324' and phv.PO_HEADER_ID=plv.PO_HEADER_ID
mais quant je veut faire la somme des deux colonne quantity*unit_price
le code suivant survient
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 select comments,vendor_name,currency_code,sum(quantity*unit_price) from po_lines_v plv,po_headers_v phv where phv.segment1='5063324' and phv.PO_HEADER_ID=plv.PO_HEADER_ID group by vendor_name
ORA-00979: N'est pas une expression GROUP BY
que faire a votre avis![]()




Répondre avec citation



Partager