on 2007 Mar 25 6:25 AM
hi,
may i know how to select aggregate field1 and other fields in the same record where field1 is max?
this statement is incorrect. may i know what is the correct syntax?
thanks
select max( field1 ) field2 into (v_field1 , v_field2) from table where
fieldx = wa_inputrec-fieldx and
fieldy = wa_inputrec-fieldy.
Request clarification before answering.
Hi,
Please try this.
select sum(field1) field2 into (v_field1 , v_field2) from table where
fieldx = wa_inputrec-fieldx and
fieldy = wa_inputrec-fieldy.
Regards,
Ferry Lianto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please try this.
select sum(field1) field2 into (v_field1 , v_field2) from table where
fieldx = wa_inputrec-fieldx and
fieldy = wa_inputrec-fieldy.
Regards,
Ferry Lianto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
30 | |
10 | |
8 | |
8 | |
7 | |
6 | |
6 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.