Max and other
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.
Hi,
You have to use <b>Group By</b> clause for this.
So, the query should be like this:
select max( field1 ) field2 into (v_field1 , v_field2) from table where
fieldx = wa_inputrec-fieldx and
fieldy = wa_inputrec-fieldy <b>group by</b> field2.
And we can select only the fields which are used in group by clause and the grouping field.
That means we can't select field3 also here. Because that is not used in group by clause.
Reward if it helps you.
Regards,
Sandhya
Similar Messages
-
Since Labview ver 8.0 and later, I am not very happy with the new way the project installer is managing the additional drivers such as Serial.
With LV 7.11 the serial components was included in the cab file and was installed on the target computer in a specific directory. The size of the distribution was pretty small and well suited for compact distribution.
My LV application use only the serial object and with LV 8.21, if I include the serial 3.2 component, I get an enormus file including max, visa ... and a lot of fucky component I do not need.
To distribute my application, I just need, the runtime engine and the serial driver as it was with the version 7.XX
Looking for clever advises from you gentlemen!Thanks Dennis for you input
My problem is in fact very simple. 3 years ago, I developped a software suite for X ray generator; My company is selling such generator all over the world and our control panel software and DLL (for OEM integrator) is based on Labview professionnal development plateform.
To drive our generator, we just need to transfer ascii data using the strandard RS232 port still present on most of equipments used in the industrial area.
Until LV version 7.11, there was no problem to include serial component in my distribution with a very reasonable size and transparency for the end user.
with LV 8.xx (preparing a new release), I'm very disapointed to see, my distribution is increased of about for 10 Mo to 180 Mo just because I increase the serial component.
May I mix a previous version of the serial component with LV 8.21?
Should I change my source to Visa instruction only and merge visa runtime only to my distribution?
is there any simple serial example based on visa and distributed with th application builder?
I will appreciate your help in order to optimize my distribution
Pascal -
Thread Pool with Min,Max. and other thread parameters
hello,
I found an Implementation of ThreadPool in the java.sun.com,but it didn't have the minimum,maximum no. of threads implemented in the code.
Could you help me find out an implementation of Thread Pool,that keeps track of minimum no. of threads,max. no. of threads in the pool,the increment size of threads,number of idle threads,idle time allowable for a thread,etc...
I also need to know if it is possible to have >5000 threads in a ThreadPool,beacuse I get OutofMemoryError,when I used a ThreadPool( which didn't have any of the above-mentioned parameters!)
Thanks!!!Having greater then 5000 threads is a sign of a problem with your design. Threads are relativly costly
beasties. The idea of using a pool for your threads is that you won't need to use 5000 threads
simultaniously. Most OS's will have problems trying to create this many threads per process (unless you
tune the OS itself (which is normally not too difficult))
matfud -
i got problem with volume of calls...its on max and i still can hear person on other side really bad...i got 4s
Did you fix the problem? I have the same problem and it has been pain in the neck.
-
I have adjusted the settings to max and the volume button on the side to max, is there any other way to increase ringtone volume?
you can connect an amplifier to the 3.5mm minijack but it will require batteries or AC power to amplify of cause
-
Max Number of Time Series and Other Columns?
What are the ceilings on the number of Time Series and Other Columns that BOP can handle?
I can not find this very basic info anywhere but I have a client that I think has hit it.@ cfr:
I googled. But I opened this thread the July 25th and I'd forgot about that link and the fact that my problem could be Firefox fault. Silly me. -_-
I'm trying to surf w/ Chromium right now (I don't like very much Opera and other browsers based on Webkit don't read much stuff on the web) to check if issue returns. If so I'll try to check log.
Edit:
I found that I don't even like Chromium as well. So I think I'll use W3m and Elinks for "normal browsing" and FireFox just when I need to write a mail with my damned Hotmail account.
Edit (2012-10-08):
the issue still presist, even without Firefox.
Last edited by rix (2012-10-08 20:16:25) -
How to get Max and Min in one line .
Hi Guys
I know the program which I did is stupid .. I am getting the result for max and min value?
But I how can I get the value of km, h, lit in one line
Equno..max_date,min_date,min_value_km..max_value_km....min_value_h...max_value_h...min_value_l...max_value_l
with my program i am getting the vlaue of max and min value but not in one line.
the main parameter is recdu which is KM,L,H
Can anyone tell me the logic please
REPORT ZFUEL LINE-SIZE 200 LINE-COUNT 75
NO STANDARD PAGE HEADING.
TABLES : equi,
equz,
imptt,
imrg,
eqkt,
iloa.
Type Declaration
TYPES: BEGIN OF ty_data ,
equnr type equnr, " Euipment no
eqktx type eqkt-eqktx, " Equipment Text
eqfnr type iloa-eqfnr, " Equipment Sort field
idate type imrg-idate, " Measuring Date
recdu type imrg-recdu, " Unit of measuring ='KM','L','H'
recdv type imrg-recdv, " Counter reading data
END OF ty_data.
TYPES: BEGIN OF ty_final,
equnr type equnr, " Equipment no
eqktx type eqkt-eqktx, " Equipment Text
eqfnr type iloa-eqfnr, " Equipment Sort field
min_date type imrg-idate, " Min Date
min_km type p decimals 2, " Max Km
max_km type p decimals 2, " Min km
t_max_min_km type i, " Total min_km-max_km
max_date type imrg-idate, " Max Date
min_hr type imrg-recdv, " Max hr
max_hr type imrg-recdv, " Min hr
t_max_min_hr type i, " Total min_hr-max_hr
min_lit type imrg-recdv, " Max lit
max_lit type imrg-recdv, " Min lit
t_max_min_lit type i, " Total min_lit-max_lit
fuel_con type p decimals 2, " Total_hrs / t_max_min_hr
km_l type p decimals 2, " km / L
lit_per_hr type i , " fuel comsumed / t_max_min_hr
END OF ty_final.
DATA: i_data TYPE TABLE OF ty_data, " internal table
wa_data TYPE ty_data, " work area
i_final TYPE TABLE OF ty_final, " internal table
wa_final TYPE ty_final. " work area
data: begin of itab occurs 0,
num type i,
end of itab.
data: v_min_1 type i,
v_max_1 type i,
min_km like imrg-recdv,
max_km like imrg-recdv,
min_l like imrg-recdv,
max_l like imrg-recdv,
max_dt like imrg-idate,
min_dt like imrg-idate,
t_ma_mi type p decimals 2,
V1 LIKE IMRG-RECDV ,
V2 LIKE IMRG-RECDV .
SELECTION-SCREEN BEGIN OF BLOCK blk WITH FRAME.
SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
SELECT-OPTIONS: p_equnr FOR equi-equnr ,"no-extension no intervals,
p_idate FOR imrg-idate. "NO-EXTENSION NO INTERVALS OBLIGATORY,
"p_recdu FOR imrg-recdu NO-EXTENSION NO INTERVALS default 'KM' OBLIGATORY.
SELECTION-SCREEN END OF BLOCK blk1.
SELECTION-SCREEN BEGIN OF BLOCK blk2 WITH FRAME TITLE text-002.
SELECTION-SCREEN END OF BLOCK blk2.
SELECTION-SCREEN END OF BLOCK blk.
TOP-OF-PAGE.
FORMAT INTENSIFIED ON.
WRITE:/1(40) ' INVESTMENT LIMITED '.
WRITE:/50(40) ' FUEL CONSUMPTION REPORT ' CENTERED ,
2 'Page', sy-pagno.
FORMAT INTENSIFIED OFF.
WRITE:/50(40) '----
' CENTERED .
FORMAT INTENSIFIED ON.
WRITE:/2 sy-datum COLOR 3, sy-uzeit .
"WRITE:/1 S903-SPMON ."p_yearf.
ULINE.
"CENTERED.
write: /2 'Date From :'.
write: /2 'Equipment No :'.
write: /2 'Unit :'.
SKIP.
ULINE.
WRITE:/1 sy-vline,
2 'EQUIP NO', 10 sy-vline,
11 'NAME', 40 sy-vline,
41 'min date', 50 sy-vline,
51 'max date', 60 sy-vline,
61 'min km', 70 sy-vline,
71 'max km' , 80 sy-vline,
81 't_max_min_km', 90 sy-vline,
91 'min hr', 100 sy-vline,
101 'max hr', 110 sy-vline,
111 't_max_min_hr' , 120 sy-vline,
121 'min lit', 130 sy-vline,
131 'max lit', 140 sy-vline,
141 't_max_min_lit', 150 sy-vline,
151 'fuel con', 160 sy-vline,
161 'km_l', 170 sy-vline,
171 'lit_per_hr', 180 sy-vline.
FORMAT COLOR 3 ON.
ULINE.
END-OF-PAGE.
START-OF-SELECTION.
select aequnr deqktx feqfnr eidate erecdu erecdv
into table i_data
from equi AS a
inner join equz as b
on aequnr = bequnr
inner join iloa as f
on biloan = filoan
inner join imptt as c
on aobjnr = cmpobj
inner join eqkt as d
on aequnr = dequnr
inner join imrg as e
on epoint = cpoint
where a~equnr in p_equnr
and
e~idate in p_idate
and
e~recdu = 'KM'.
SORT i_data BY equnr idate descending .
loop at i_data into wa_data.
max_km = wa_data-recdv.
min_km = wa_data-recdv.
at new equnr.
read table i_data into wa_data index sy-tabix.
write:/ wa_data-equnr, wa_data-eqktx ,wa_data-eqfnr ,wa_data-idate ,'MAX KM',max_km EXPONENT 0 DECIMALS 2 color 7,wa_data-recdu .
endat.
at end of equnr.
read table i_data into wa_data index sy-tabix.
write:/ wa_data-equnr, wa_data-eqktx ,wa_data-eqfnr ,wa_data-idate ,'MIN KM', min_km EXPONENT 0 DECIMALS 2 color 7, wa_data-recdu .
endat.
at end of equnr.
write: / '----
write: /50(80) 'Subtotal' COLOR 4 .
write:/ '----
endat.
endloop.
select aequnr deqktx feqfnr eidate erecdu erecdv
into table i_data
from equi AS a
inner join equz as b
on aequnr = bequnr
inner join iloa as f
on biloan = filoan
inner join imptt as c
on aobjnr = cmpobj
inner join eqkt as d
on aequnr = dequnr
inner join imrg as e
on epoint = cpoint
where a~equnr in p_equnr
and
e~idate in p_idate
and
e~recdu = 'L'.
SORT i_data BY equnr idate descending .
loop at i_data into wa_data.
max_km = wa_data-recdv.
min_km = wa_data-recdv.
at new equnr.
read table i_data into wa_data index sy-tabix.
write:/ wa_data-equnr, wa_data-eqktx ,wa_data-eqfnr ,wa_data-idate ,'MAX LIT',max_km EXPONENT 0 DECIMALS 2 color 7,wa_data-recdu .
endat.
at end of equnr.
read table i_data into wa_data index sy-tabix.
write:/ wa_data-equnr, wa_data-eqktx ,wa_data-eqfnr ,wa_data-idate ,'MIN LIT', min_km EXPONENT 0 DECIMALS 2 color 7, wa_data-recdu .
endat.
at end of equnr.
write: / '----
write: /50(80) 'Subtotal' COLOR 4 .
write:/ '----
endat.ENDLOOP.
select aequnr deqktx feqfnr eidate erecdu erecdv
into table i_data
from equi AS a
inner join equz as b
on aequnr = bequnr
inner join iloa as f
on biloan = filoan
inner join imptt as c
on aobjnr = cmpobj
inner join eqkt as d
on aequnr = dequnr
inner join imrg as e
on epoint = cpoint
where a~equnr in p_equnr
and
e~idate in p_idate
and
e~recdu = 'H'.
SORT i_data BY equnr idate descending .
loop at i_data into wa_data.
max_km = wa_data-recdv.
min_km = wa_data-recdv.
at new equnr.
read table i_data into wa_data index sy-tabix.
write:/ wa_data-equnr, wa_data-eqktx ,wa_data-eqfnr ,wa_data-idate ,'MAX H',max_km EXPONENT 0 DECIMALS 2 color 7,wa_data-recdu .
endat.
at end of equnr.
read table i_data into wa_data index sy-tabix.
write:/ wa_data-equnr, wa_data-eqktx ,wa_data-eqfnr ,wa_data-idate ,'MIN H', min_h EXPONENT 0 DECIMALS 2 color 7, wa_data-recdu .
endat.
at end of equnr.
write: / '----
write: /50(80) 'Subtotal' COLOR 4 .
write:/ '----
endat.
endloop.Hi Guys
How can I split the max and min value with if condition for KM L AND H as below
I am getting the km value correctly but rest fields for L and H (lit and hours) it is not ?
Please comment.
*APPEND wa_data to i_data.
SORT i_data BY equnr idate descending .
loop at i_data into wa_data.
if wa_data-recdu = 'KM'.
max_km = wa_data-recdv.
min_km = wa_data-recdv.
endif.
if wa_data-recdu ='H'.
max_h = wa_data-recdv.
min_h = wa_data-recdv.
endif.
if wa_data-recdu ='L'.
max_l = wa_data-recdv.
min_l = wa_data-recdv.
endif.
at new equnr.
read table i_data into wa_data index sy-tabix.
write:/ wa_data-equnr, wa_data-eqktx ,wa_data-eqfnr ,wa_data-idate ,
'Min KM',min_km EXPONENT 0 DECIMALS 2 color 7 ,
'Min H',min_h EXPONENT 0 DECIMALS 2 color 7 ,
'Min L',min_l EXPONENT 0 DECIMALS 2 color 7.
endat.
at end of equnr.
read table i_data into wa_data index sy-tabix.
write:/ wa_data-equnr, wa_data-eqktx ,wa_data-eqfnr ,wa_data-idate ,
'Max KM', max_km EXPONENT 0 DECIMALS 2 color 7,
'Max H', max_h EXPONENT 0 DECIMALS 2 color 7,
'Max L', max_l EXPONENT 0 DECIMALS 2 color 7.
endat.
regards
Piroz -
error message detail:
XULRunner
Platform version'1.9.2' is not compatible with
min version>=1.9.2.10
max version<=1.9.2.10
this occurs after clicking the normal firefox open icon from my desktopDo a clean reinstall and download a fresh Firefox copy from http://www.mozilla.com/firefox/all.html and save the file to the desktop.
Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.<br />
Don't remove personal data when uninstalling.
It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
You can skip the step to create a new profile, that is not necessary for this issue.
See http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall
Your bookmarks and other profile data are stored elsewhere (not in the Firefox program folder) and won't be affected by a reinstall, but make sure that you do not select to remove personal data if you uninstall Firefox. -
I have the ipad 1, Ios 5.1 is its max, and garage band requires ios 7.0, how do i buy garage band version 1.3, its the only one that will work, apple is so hard to get a hold of on these kind of things.
Unfortunately the answer is still no.
-
How to Get the min,max and original values in a single query
Hi,
I have a task where in i have to the min , max and the original values of a data set .
I have the data like below and i want the target as well as mentioned below
SOURCE
DATASOURCE
INTEGRATIONID
SLOT_DATE
SLOT1
SLOT2
SLOT3
SLOT4
SLOT5
SLOT6
SLOT7
SLOT8
SLOT9
SLOT10
1
101
201111
100
100
200
100
100
100
300
300
300
300
1
101
2011112
200
200
200
200
100
100
100
100
200
300
TARGET
DATASOURCE
INTEGRATIONID
SLOT_DATE
SLOT_VALUE
SLOT MIN
SLOT_MAX
SLOT NUMBER
1
101
201111
100
1
2
SLOT1
1
101
201111
100
1
2
SLOT2
1
101
201111
200
3
3
SLOT3
1
101
201111
100
4
6
SLOT4
1
101
201111
100
4
6
SLOT5
1
101
201111
100
4
6
SLOT6
1
101
201111
300
7
10
SLOT7
1
101
201111
300
7
10
SLOT8
1
101
201111
300
7
10
SLOT9
1
101
201111
300
7
10
SLOT10
1
101
2011112
200
1
4
SLOT1
1
101
2011112
200
1
4
SLOT2
1
101
2011112
200
1
4
SLOT3
1
101
2011112
200
1
4
SLOT4
1
101
2011112
100
5
8
SLOT5
1
101
2011112
100
5
8
SLOT6
1
101
2011112
100
5
8
SLOT7
1
101
2011112
100
5
8
SLOT8
1
101
2011112
200
9
9
SLOT9
1
101
2011112
300
10
10
SLOT10
e
so basically i would first denormalize the data using the pivot column and then use min and max to get the slot_start and slot_end.
But then i
can get the min and max ... but not the orignal values as well.
Any thoughts would be appreciated.
ThanksIf you want to end up with one row per slot per datasource etc, and you want the min and max slots that have the same value as the current slot, then you probably need to be using analytic functions, like:
with t as
(SELECT 1 datasource,101 INTEGRATIONID, 201111 slotdate, 100 SLOT1, 100 SLOT2, 200 slot3, 100 slot4, 100 slot5, 100 slot6, 300 slot7, 300 slot8, 300 slot9, 300 slot10 FROM DUAL union all
SELECT 1, 101, 2011112, 200, 200, 200, 200, 100, 100, 100, 100, 200, 300 FROM DUAL),
UNPIVOTED AS
(SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,1 SLOT,SLOT1 SLOT_VALUE
FROM T
UNION ALL
SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,2 SLOT,SLOT2
FROM T
UNION ALL
SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,3 SLOT,SLOT3
FROM T
UNION ALL
SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,4 SLOT,SLOT4
FROM T
UNION ALL
SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,5 SLOT,SLOT5
FROM T
UNION ALL
SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,6 SLOT,SLOT6
FROM T
UNION ALL
SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,7 SLOT,SLOT7
FROM T
UNION ALL
SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,8 SLOT,SLOT8
FROM T
UNION ALL
SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,9 SLOT,SLOT9
FROM T
UNION ALL
SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,10 SLOT,SLOT10
FROM T)
select DATASOURCE,INTEGRATIONID,SLOTDATE,slot,slot_value,min(slot) OVER (partition by datasource,integrationid,slotdate,rn) minslot,
max(slot) OVER (partition by datasource,integrationid,slotdate,rn) maxslot
FROM
select DATASOURCE,INTEGRATIONID,SLOTDATE,max(rn) over (partition by datasource,integrationid,slotdate order by slot) rn,slot,slot_value
FROM
(SELECT DATASOURCE,INTEGRATIONID,SLOTDATE,slot,slot_value,
case when row_number() over (partition by datasource,integrationid,slotdate order by slot) = 1 or
lag(slot_value) over (partition by datasource,integrationid,slotdate order by slot) <> slot_value
then row_number() over (partition by datasource,integrationid,slotdate order by slot)
ELSE null
END rn
from unpivoted
order by DATASOURCE,INTEGRATIONID,SLOTDATE,slot -
Windows 8.1 wifi not working after sleep (and other various bugs)
Hello Apple support forum, this is my first post!
Alright, so I just switched to my first mac. MBP Retina late '13. I bought it primarily to run windows, and to also of course use OS10.
My issues in bootcamp however are getting annoying. My Wifi shows up as connected after I resume from sleep, but my mac won't let me disable wifi, enable airplane mode and then re-enable wifi, nothing. The only way to get wifi to work when resuming from sleep is to reboot.
I just set hibernate when close lid on all my power modes, and basically disabled sleep for now. Hibernate works fine for now, but sleep is much faster from resume and also I'm not sure if the machine will wake up from a simple tap on the keyboard or opening of the lid, I think I have to actually boot it all over again anyways.
My other minor but still annoying issue is my titles of windows in windows are showing up as black (screenshot here)
the only other thing I was curious about was the dual-gpu functionality. I know from reading these forums it's probably not possible because of the hardware and software mesh apple created for OSX and their dual-gpu design, how it wouldn't really work in windows. I'm just wondering if anyone ever got this to work in windows maybe on the older retina MBP or older macs, or if anyone is making progress on trying to fix that in windows? I bought this laptop expecting that to work, even the geniuses at the Apple store said it would be possible, I was misled and might have second-gussed buying a 3k machine if it would only get a few more hours battery than my old Vaio. I bought this machine primarily for battery life.
I'm just remembering another tiny tiny issue. When I plug headphones in the headphone jack in windows, it doesn't automatically switch to that audio output, I have to manually do it in audio settings, is this a bug, have I configured something incorrectly, and is there a fix?
One other thing is my dpi settings, I have it set to a larger font and everything because at stock it is SOOO tiny. my question is, is there any way to smooth out text in other apps, my browser and apps like rdio look like crap unless I leave the dpi settings stock, which I basically need a magnifying glass to use (I tried that for a week lol. Not the magnifying glass tho haha)
I know I'm rambling at this point, but in the windows 8.1 camera app, sometimes my camera does this bug where it flips between inverted and normal, extremely quickly, so it looks like there are two of me. I don't know if this was GPU drivers tho, because just reinstalled those this morning and it seems to be ok so far.
also, the keyboard. I miss my context menu key, what do I need two command keys for? A right alt button, I'd rather have that be the other control button. Any way to remap these easily? what about switching Fn with control on the left, I prefer my windows button in the exact corner.
last question tho, I saw people overclocking gpu's on their retinas from last year, can you do this on the new retinas, and can you overclock the cpu as well as the gpu?
I do have to say this in the end, I am a little dissapointed with apple, I was told thst my mac would run windows like a native windows machine. I know windows 8.1 is not supported, but coming from PC's for years, and being a PC technician, I also go to school for computer engineering, I expected everything to "just work" as steve jobs once said. Well, it doesn't just work. I even had these issues in windows 8, which is supported.
Installing windows 8 was a nightmare. I had to use the forums, try for weeks to get windows 8 to finally instll the proper (uefi) way, and to get everything usable, I had to reinstall my os's twice.
Apple, if you are going to advertise a mac that can run windows "seamlessly", you need to get these major issues fixed, support all new versions of windows before they are even release, and release proper hardware drivers and support software before new hardware is released. All other Windows OEMS are pretty much required to do this to stay in business. I don't dislike OSX, I just use windows for everything I can't use Mac for, so please fix this. You're better than this, you should put a higher standard on this. otherwise, don't advertise macs that can run windows.
Thanks guys, sorry for the information overload. BTW, MBP Retina 15" 16GB RAM 512 SSD, 2.6 haswell, pretty much the max specs other than the SSD.I have stated every issue I’ve had so far in a fairly clear and concise way. I think if you read what I wrote, it all makes logical sense as to what is going on. Windows 7/8 would work just as well on a Mac if it was supported the same way the OS is for other OEMs.
As I stated earlier in the post, I’m having these same issues in windows 8, not just 8.1, which is the reason for the post. I know the difference between supported by drivers and not supported by the manufacturer. The fact that when Haswell mbp’s came out and no revision to bootcamp for the new hardware was released to fix issues with installing windows on the new hardware shows Apple clearly Is not supporting bootcamp as strongly as they advertise.
I am being realistic on Apple having drivers early. Anyone with an MSDN subscription can download the RELEASE version of windows months ahead of the actual release, I’m 100% sure if any average consumer can do that by paying $100 and saying they are a developer, apple can do it just as easily.
You aren’t much help, you haven’t answered really anything to my post, nor have you contributed any knowledge that wasn’t clearly posted above, so don’t say anything if you don’t have anything to contribute.
By the way, my rant is directed at apple, as you can see because I am saying “Apple, if you are going to…” because this is an Apple forum on Apple’s website. It is not directed to end users, clearly. -
How to get Max and Min value entered in a DOS console?
Hi there? I wanted to get the Maximum and Minimum value that I entered in a console and displays it. This is using the java.lang.Math class and using it's method max and main. please help. thanks - new to java
Sounds like you need very basic advice: Start with the tutorials: http://java.sun.com/docs/books/tutorial/index.html
And if the algorithm is the problem:
- Make two variables that hold the current maximum and minimum value
- whenever a value is entered, compare it with the minimum, if it is smaller, set the minimum to that value
- ditto with maximum
at the end the two variables contain the maximum and minimum values. -
XY Graph-Setting Y-Scale visible to False still Shows Corresponding Y scale Max and Min
Hi Guys,
I use XY graph to display the data with 3 Y-scales.
When I set any Y scale Visiblity property to False,its still display the Y scale Max and Min range Lines in plot area of the Graph and making cross line or extra parralel line with other visible scales.
Attached the screen shot for ref.
And I know the cross line may be due to different Y scales range setting.But XY graph should not display the invisible Y scales and its property as well.
please provide your suggestions to avoid that.
Solved!
Go to Solution.The scales and the lines associated with those scales are separate properties. I have never tried it, and right now I am not at a computer, but there should be properties for setting the grid line colors. Set them to transparent.
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps -
Displaying actual Max and Min in the report header problem...
Hi guys,
I have the following problem.
1. I have a multi select prompt where you pick 2 years.
2. I have the following columns. Year, Month, Exp, calc YEAR (max), calc year (min)
3. I need to get the max and min month across all rows. So far I've tried MAX, MIN, RMAX, and RMIN without success. However, it's not picking them along all rows. For example,
2001 1 100050 2001 2001
2002 1 244005 2002 2002
I'm sure this has to do something with my aggregation in the calculated column, but not quite sure where exactly.do max(max(year)) and min(min(year))
:) -
How to get max and min salary in a table
How to get max and min salary in a table
SQL> select max(sal),min(sal) from emp;
MAX(SAL) MIN(SAL)
5512 800
SQL>
Maybe you are looking for
-
I updated all the apps through creative cloud but Illustrator cs6 wouldn't work- it would get up to about 70% then say the update failed. I read somewhere that if I uninstalled & reinstalled it the updates might work; I've uninstalled it and can't fi
-
Unaccounted transactions report
Hi All, Month end report "unaccounted transactions report" alwasy takes around 5-10 mins to complete but this month it ended first with error and later on it took more than 10 hrs to complete. Does anyone any idea what's causing this to occur. Thanks
-
Permission denied when in windows trying to save files to the MacHD
I just made the huge leap from a Dell Laptop to the Mac Book Pro and I can't be more thrilled about it! With change, obviously comes with some challenges, not the least of which is my lack of knowledge on the new platform. Because I had some programs
-
How can I change the CS5 Windows version for a Mac version?
I want to change from Windows to Mac, but I can't afford to buy new products. Is this the only way or is there some kind of transfer?
-
Hey guys I hope u can help me out, my new 3 months old 16g iPhone 5 has problem The sound don't work at all except for with headphones, the volume says ringer. I've tried restarting my device, reset my settings I even tried using a Q-tip in the headp