Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Select MAX()

Former Member
0 Likes
736

Hello!

What's here wrong? My program says there is a error.

SELECT MAX( price ) INTO wa2 FROM zaa_sflight.

Thanks!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
654

Hi,

try this.

data l_max type zaa_sflight-price.

SELECT single MAX( price ) INTO l_max FROM zaa_sflight.

Regards,

Niyaz

Sorry: Change data type.

Edited by: Niyaz Ahamed on Jan 18, 2008 4:41 PM

5 REPLIES 5
Read only

Former Member
0 Likes
655

Hi,

try this.

data l_max type zaa_sflight-price.

SELECT single MAX( price ) INTO l_max FROM zaa_sflight.

Regards,

Niyaz

Sorry: Change data type.

Edited by: Niyaz Ahamed on Jan 18, 2008 4:41 PM

Read only

former_member188829
Active Contributor
0 Likes
654

hi,

SELECT MAX( price ) INTO wa2 FROM zaa_sflight.

in the above statement write like this..

MAX( space price space )

Read only

Former Member
0 Likes
654

check type of price

Read only

Former Member
0 Likes
654

Hi,

Check the following code:

tables: sflight.

data: airfare like sflight-price.

select MAX( price ) into airfare from sflight.

write airfare.

Regards,

Bhaskar

Read only

Former Member
0 Likes
654

hi,

check that u have missed period for the above statement

regards

zubair