On the graph and the trace of the 'other values '.

Hi all.

Currently using Apex 4.1

Suppose you have a pie chart and want to just draw the first values of n, say the top 5 customers, and then group those remaining on a silce. Indicating that perhaps the rest are without interest to you. Group them under 'other '.

Which is possible some graphics manipulation property or what I need to solve this problem on a query somehow...?

Can someone give me a clue...?

Thanks in advance...!

It can be done in a query using rank().

Basically classify you your groups and then do something like:

Select
cases where to classify<=5 then="">
else 'other '.
as the_groupings,
Sum (mycounters),
...
...
...
...
Group
cases where to classify<=5 then="">
else 'other '.

Thus, myKey would be albums/clients/groups of names in the data, while the rest would be labeled as 'other '.

Not sure of the syntax of details (I'm sure it will be difficult) but the method must be healthy.

HTH,
John

Tags: Database

Similar Questions

  • How to check the account of a column value is less than the other value of column in a table with a single column

    Hello

    Please let me know how to query the table and get the records that are less than the other column.

    ID item_id item_type

    3     1           r1

    2 4 r2

    1 5 r3

    6 5 r4

    I need to get all the lines in which item_id < id

    o/p

    ID item_id item_type

    3     1           r1

    6 5 r4

    SELECT ID, ITEM_ID, ITEM_TYPE

    Of

    WHERE ITEM_ID<>

  • Show the other value as APP_USER

    I have Norman to display a different value as APP_USER on the page header.
    But I need to keep the APP_USER value because I have a lot of process that the use of this value.

    Example: Display LUIS KEFUR.
    APP_USER = LKEFUR.

    Is it possible?

    Create an element of the Application (like MY_USERNAME), set the value of this element in your login page (using your own table or apex) and replace & APP_USER. in your Page Template (s) with & MY_USERNAME.

  • Reset the other values in the list of selection when it is clicked on a selection list.

    I'm currently developing a report based on various selection lists. I have three selection lists. When I select a value in that I want them to have the value zero. Like that when I select my button GB the report displays only the information related to the value in the selection list, I clicked. (I've already worked my report based on a function, plsql referring to different queries depending on the valuses of selection lists and he needs 2 of the three to 0).

    Thank you
    Greg

    Greg,

    I've made a few changes (no worries, you can export your application as x min there is to get him back if you like):
    1. I have modified your reports to simple sql queries and put logic in the where clause.
    2. I changed the first to the elements to make them more standard.

    Play with the page a bit and I would like to know if it's on the right track...

    Kind regards
    Dan

    http://danielmcghan.us
    http://sourceforge.NET/projects/tapigen
    http://sourceforge.NET/projects/plrecur

    You can reward this answer by marking as being useful or correct ;-)

  • Decode, but leave the other values as they are

    Hello. In my application, I want to change the value of '0' to "Ej Fakturerad". But it dosnt work.
    select c.id, c.name, count(i.invoice_nr)
    from customer c
    left join invoice i on i.customer_id = c.id
    group by c.id, c.name
    order by c.id
    Output:
            ID NAME                                     COUNT(I.INVOICE_NR)
    ---------- ---------------------------------------- -------------------
        100001                                                             
        100002 Bengt Larsson                                              0
        100003 Nils Åkerlund                                                2
        100004 Biblioteket Höken                                         3
        100005 Lena Ekman                                                 3
        100006 Stadsarkitektkontoret i Flen                            4
        100007 Dagiset Myran                                               0
    This will give me correct values in the County. But I would change the zero to a text.

    I tried, but it leave out my other results, when well even the 0-> well worked.
    select c.id, c.name, decode(count(i.invoice_nr),0,'Ej')
    from customer c
    left join invoice i on i.customer_id = c.id
    group by c.id, c.name
    order by c.id
    Output:
            ID NAME                                     DE
    ---------- ---------------------------------------- --
        100001                                            
        100002 Bengt Larsson                            Ej
        100003 Nils Åkerlund                              
        100004 Biblioteket Höken                          
        100005 Lena Ekman                                 
        100006 Stadsarkitektkontoret i Flen               
        100007 Dagiset Myran                            Ej
    Regards, Johan.
    decode(count(i.invoice_nr),0,'Ej',count(i.invoice_nr))
    
  • How to display the max value of channel report repel?

    Hi all

    I have 2 text boxes start and ready target on my report. I need my minimum value of the layer and the other value to automatically display in the start menu and to target channels max case respectively.

    How can I go about it?

    Rsh

    Hello, RSH,.

    Now, how can I limit the decimal points to 2 digits, say, for example, we use d.dd. How can I use it here?

    You can simply convert the string variables and the format of this string using the str function in DIAdem.

    Here is an example for your specific application:

    Maximum: @@str (CMax("[1]/Speed"), "d.dd").

    I hope this helps.

    Otmar

  • Need to query the available values for EA Qualitative list

    I need to provide the ID attribute, the name and the list of values of an extended attribute qualitative:


    I can easily get the ID and name, but do not see the path to the other values

    SELECT commonextendedattributetypeml . name ,

    commonextendedattributetype . attributeType

    DE agile . commonextendedattributetype , agile . commonextendedattributetypeml

    ( ) ()commonextendedattributetypeml. fkextendedattributetype =

    commonextendedattributetype . pkid ))

    ET commonextendedattributetypeml . name AS '%TM'

    ET commonextendedattributetype . attributeType = 'QUALITATIVE' ;

    Try the following SQL code:

    SELECT ml.name,

    t.AttributeType,

    t.AttributeID,

    qualML.Quality

    Of

    commonextendedattributetype t

    INNER JOIN commonextendedattributetypeml on ml.fkExtendedAttributeType = t.pkid and ml.langID = 0 ml

    List INNER JOIN comExtendedAttrQualityList on list.fkExtendedAttribute = t.pkid

    INNER JOIN commonExtendedAttributeQuality on list.pkid = qual.fkQualityList qual

    INNER JOIN qualML on qualML.fkExtendedAttributeQuality = qual.pkid and qualML.langID = 0 comExtendedAttributeQualityML

    WHERE

    ml. Name LIKE '% TM' AND t.attributetype = 'QUALITATIVE '.

    ORDER BY ml.name

    Note that the above query restricts the language id of 0 (for English) in two places

  • How to apply the random value "seed" to multiple images

    So, I'm in a weird situation, have been surfing the net for the solution for more than a day now and can't really find the solution.

    What is it?

    Its a small school project I chose and can't really find a way to do it.

    What I want to achieve?

    I have an image and I want to have like 50 variations of it.

    What have I done?

    I have loaded an image, performed an action that applies the filter called "Wave", the wave dialog I selected a rangeminimum and maximum values.

    The problem I have:

    I made 50 copies of the same image, and then I applied the action through treatment for these 50 images in batches. However, it applies exactly the same settings/values that I saved. It does not really use the beach that is the maximum and minimum values , I selected in the wave dialog box. It seems that when I closed the wave dialog box, the action creates a new value called 'Random seed' when recording and maybe this number seed tells photoshop what to choose between the min and max range provided by the user.

    So is it possible that when I run the action, he'll be looking for a new random value in the range max and the min provided?

    Thank you

    Marolina

    Save the script below in the text with the .jsx extension. Replace the wave filter step in your action with a step that runs the script. The rest of the action can stay the same.

    // seed range detemined by running the filter with the desired settings 10 times
    // and getting the lower and upper range from the scriptlistener log
    // the seed seems to depend on the other values. In another test the seed was
    // a 8 digit number
    var seed = Math.floor((192000-186000)*Math.random()) + 186001;
    app.activeDocument.activeLayer.applyWave(1,93,198,5,35,100,100,WaveType.SINE,UndefinedAreas.REPEATEDGEPIXELS,seed);
    
  • APEX... remove the filter value

    I use the list values to filter the data in my report... I want to have a filter value (NULL), or something that should be able to remove all the filters, and view all data...

    for example, let's say I have a list of countries, Canada, USA, Mexico... I want to have filter value that should present data in all countries


    Thanks in advance

    If you open the edit page and try to look for the "List of values" section, you can find the attributes like 'Null display' and 'return value Null. You must set the 'show Null' to yes and specify the text to display in the display attribute and put A or any other value to the return value. Now, you can reference this value in your statement to decode. Thank you.

    Kind regards
    Manish

  • SQL: How to get the maximum value of loans

    I have to display cod_acct_no, amt_disbursed, bal_book in table LOAN_MAST and maximum version of table LOAN_SCHEDULE CTR_STAGE_NO amt_instal. in other words; amt_instal of the most ctr_stage_no of table LOAN_SCHEDULE to display with the other value of LOAN_MAST column.

    You could help me pls.

    Data from these two tables are provided below:

    Main table ready
    INSERT INTO loan_mast
    VALUES
    ('00057110000431  ',2000000,1010605.39)
    /
    INSERT INTO loan_mast
    VALUES
    ('00057110000291  ',3500000,1212038.57)
    /
    INSERT INTO loan_mast
    VALUES
    ('00057110000450  ',2000000,1179199.79)
    /
    INSERT INTO loan_mast
    VALUES
    ('00057010001457  ',2000000,1555836.32)
    /
    INSERT INTO loan_mast
    VALUES
    ('00057010001650  ',9500000,8060419.1)
    /
    INSERT INTO loan_mast
    VALUES
    ('00057110050065  ',2000000,1742388.45)
    /
    INSERT INTO loan_mast
    VALUES
    ('00057010001947  ',2000000,1933540.07)
    /
    INSERT INTO loan_mast
    VALUES
    ('00057110050213  ',2000000,1978588.06)
    /
    INSERT INTO loan_mast
    VALUES
    ('00037010001104  ',6175000,3241694.48)
    /
    INSERT INTO loan_mast
    VALUES
    ('00037010001766  ',12000000,11715781.01)
    /
    INSERT INTO loan_mast
    VALUES
    ('00037300050025  ',7500000,7472981.78)
    /
    INSERT INTO loan_mast
    VALUES
    ('00037210000694  ',6500000,6588648.16)
    /
    INSERT INTO loan_mast
    VALUES
    ('00017210000087  ',5000000,4105246.38)
    /
    INSERT INTO loan_mast
    VALUES
    ('00017210000129  ',5000000,3478303.49)
    /
    INSERT INTO loan_mast
    VALUES
    ('00017210000141  ',5000000,3685293.79)
    /
    INSERT INTO loan_mast
    VALUES
    ('00017210000246  ',5000000,4029883.61)
    /
    INSERT INTO loan_mast
    VALUES
    ('00017210000268  ',5000000,4499322.1)
    /
    INSERT INTO loan_mast
    VALUES
    ('00017210000322  ',5000000,4966885.32)
    /
    INSERT INTO loan_mast
    VALUES
    ('00017300050014  ',7000000,6625970.85)
    /
    INSERT INTO loan_mast
    VALUES
    ('00017300050036  ',5700000,5687617.61)
    /
    INSERT INTO loan_mast
    VALUES
    ('00017300050047  ',7500000,7527560)
    /
    INSERT INTO loan_mast
    VALUES
    ('00017240000050  ',4300000,4300000)
    /
    INSERT INTO loan_mast
    VALUES
    ('00017210000449  ',7000000,7000000)
    /
    INSERT INTO loan_mast
    VALUES
    ('03017180001733  ',500000,335164.83)
    /
    INSERT INTO loan_mast
    VALUES
    ('01117110050071  ',700000,625123.9)
    /
    INSERT INTO loan_mast
    VALUES
    ('01077300050011  ',1500000,1447149.08)
    /
    INSERT INTO loan_mast
    VALUES
    ('00927180002119  ',500000,441488.25)
    /
    INSERT INTO loan_mast
    VALUES
    ('01507150051043  ',700000,633340.47)
    /
    INSERT INTO loan_mast
    VALUES
    ('03317290050040  ',300000,273601.45)
    /
    INSERT INTO loan_mast
    VALUES
    ('01027150051360  ',200000,179240.42)
    /
    INSERT INTO loan_mast
    VALUES
    ('01067150052782  ',300000,270794.1)
    /
    INSERT INTO loan_mast
    VALUES
    ('01137110050082  ',2000000,1786359.87)
    /
    INSERT INTO loan_mast
    VALUES
    ('01107150050610  ',200000,191399.56)
    /
    INSERT INTO loan_mast
    VALUES
    ('01117150051071  ',300000,271560.17)
    /
    INSERT INTO loan_mast
    VALUES
    ('01017210001052  ',6800000,6609837.58)
    /
    INSERT INTO loan_mast
    VALUES
    ('01157010001078  ',450000,425069.61)
    /
    INSERT INTO loan_mast
    VALUES
    ('00017180001173  ',700000,484447.94)
    /
    INSERT INTO loan_mast
    VALUES
    ('09997120004696  ',93099,64369.52)
    /
    INSERT INTO loan_mast
    VALUES
    ('01067010001654  ',285000,255579.7)
    /
    INSERT INTO loan_mast
    VALUES
    ('01017210001063  ',7000000,6930746)
    /
    INSERT INTO loan_mast
    VALUES
    ('01017210001105  ',7000000,6934246)
    /
    INSERT INTO loan_mast
    VALUES
    ('01017210001138  ',7000000,7000000)
    /
    INSERT INTO loan_mast
    VALUES
    ('01017210001116  ',7000000,7000000)
    /
    INSERT INTO loan_mast
    VALUES
    ('01017210001161  ',7000000,7000000)
    /
    INSERT INTO loan_mast
    VALUES
    ('01017210001150  ',7000000,7000000)
    /
    INSERT INTO loan_mast
    VALUES
    ('01017210001127  ',7000000,6930746)
    /
    INSERT INTO loan_mast
    VALUES
    ('00067110050043  ',700000,602416.77)
    /
    INSERT INTO loan_mast
    VALUES
    ('01147150052362  ',200000,178682.78)
    /
    INSERT INTO loan_mast
    VALUES
    ('01167150051647  ',75000,60057.01)
    /
    INSERT INTO loan_mast
    VALUES
    ('01017150053252  ',150000,125205.66)
    /
    INSERT INTO loan_mast
    VALUES
    ('00917150050232  ',100000,91972.04)
    /
    INSERT INTO loan_mast
    VALUES
    ('01017180003081  ',990000,663015.26)
    /
    INSERT INTO loan_mast
    VALUES
    ('09997220000893  ',154160,138665.08)
    /
    INSERT INTO loan_mast
    VALUES
    ('01017210000955  ',5000000,4510523.32)
    /
    INSERT INTO loan_mast
    VALUES
    ('00087150001049  ',1000000,904601.41)
    /
    INSERT INTO loan_mast
    VALUES
    ('01107010000288  ',300000,268703.55)
    /
    INSERT INTO loan_mast
    VALUES
    ('00087150001038  ',1000000,906085.9)
    /
    INSERT INTO loan_mast
    VALUES
    ('01107010000277  ',200000,184905.75)
    /
    INSERT INTO loan_mast
    VALUES
    ('00017080050030  ',500000,450047.42)
    /
    INSERT INTO loan_mast
    VALUES
    ('00037210000533  ',4000000,3346908.17)
    /
    INSERT INTO loan_mast
    VALUES
    ('01117180000631  ',990000,712874.67)
    /
    INSERT INTO loan_mast
    VALUES
    ('02007180001216  ',990000,792437.11)
    /
    INSERT INTO loan_mast
    VALUES
    ('01957180000928  ',400000,320317.9)
    /
    INSERT INTO loan_mast
    VALUES
    ('00037210000544  ',600000,518404.4)
    /
    INSERT INTO loan_mast
    VALUES
    ('01117110050060  ',1000000,893034.07)
    /
    INSERT INTO loan_mast
    VALUES
    ('00037180001877  ',800000,640405)
    /
    INSERT INTO loan_mast
    VALUES
    ('01047150052651  ',320000,288850.72)
    /
    INSERT INTO loan_mast
    VALUES
    ('01027160050103  ',100000,79915.86)
    /
    INSERT INTO loan_mast
    VALUES
    ('01067150052759  ',150000,129601.15)
    /
    INSERT INTO loan_mast
    VALUES
    ('01057150051287  ',800000,723681.12)
    /
    INSERT INTO loan_mast
    VALUES
    ('03317290050021  ',400000,359312.25)
    /
    INSERT INTO loan_mast
    VALUES
    ('01157150051316  ',500000,452300.73)
    /
    INSERT INTO loan_mast
    VALUES
    ('00037150050598  ',700000,633221.03)
    /
    INSERT INTO loan_mast
    VALUES
    ('01047150052673  ',150000,129610.95)
    /
    INSERT INTO loan_mast
    VALUES
    ('01147150052384  ',400000,361840.54)
    /
    INSERT INTO loan_mast
    VALUES
    ('01067150052802  ',150000,130840.94)
    /
    INSERT INTO loan_mast
    VALUES
    ('01157150051338  ',300000,259202.22)
    /
    INSERT INTO loan_mast
    VALUES
    ('01057150051307  ',400000,361840.54)
    /
    INSERT INTO loan_mast
    VALUES
    ('00017110050160  ',500000,397640.38)
    /
    INSERT INTO loan_mast
    VALUES
    ('01077150050910  ',100000,79915.86)
    /
    INSERT INTO loan_mast
    VALUES
    ('00057150050702  ',400000,360841.83)
    /
    INSERT INTO loan_mast
    VALUES
    ('01017150053271  ',150000,119955.86)
    /
    INSERT INTO loan_mast
    VALUES
    ('01057150051329  ',400000,360029.85)
    /
    INSERT INTO loan_mast
    VALUES
    ('01067150002665  ',500000,452300.73)
    /
    INSERT INTO loan_mast
    VALUES
    ('01077150050921  ',250000,225526.17)
    /
    INSERT INTO loan_mast
    VALUES
    ('00047150050693  ',200000,160494.64)
    /
    INSERT INTO loan_mast
    VALUES
    ('01077080050026  ',100000,91150.55)
    /
    INSERT INTO loan_mast
    VALUES
    ('01017150053293  ',150000,129675.2)
    /
    INSERT INTO loan_mast
    VALUES
    ('09997040001950  ',2500000,2439161.01)
    /
    INSERT INTO loan_mast
    VALUES
    ('09997120004685  ',75000,51855.74)
    /
    Table of loan from schedule+:
    INSERT INTO loan_schedule
    VALUES
    ('00017080050030  ',1,12426.29)
    /
    INSERT INTO loan_schedule
    VALUES
    ('00017110050160  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('00017110050160  ',2,17702.2)
    /
    INSERT INTO loan_schedule
    VALUES
    ('00017180001173  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('00017180001173  ',2,35116.22)
    /
    INSERT INTO loan_schedule
    VALUES
    ('00037150050598  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('00037150050598  ',2,18158.39)
    /
    INSERT INTO loan_schedule
    VALUES
    ('00037180001877  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('00037180001877  ',2,29122.98)
    /
    INSERT INTO loan_schedule
    VALUES
    ('00037210000533  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('00037210000533  ',2,144609.59)
    /
    INSERT INTO loan_schedule
    VALUES
    ('00037210000544  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('00037210000544  ',2,17625)
    /
    INSERT INTO loan_schedule
    VALUES
    ('00047150050693  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('00047150050693  ',2,7331.21)
    /
    INSERT INTO loan_schedule
    VALUES
    ('00057150050702  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('00057150050702  ',2,10157.38)
    /
    INSERT INTO loan_schedule
    VALUES
    ('00067110050043  ',1,20017.91)
    /
    INSERT INTO loan_schedule
    VALUES
    ('00087150001038  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('00087150001038  ',2,25940.56)
    /
    INSERT INTO loan_schedule
    VALUES
    ('00087150001049  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('00087150001049  ',2,25940.56)
    /
    INSERT INTO loan_schedule
    VALUES
    ('00917150050232  ',1,2937.5)
    /
    INSERT INTO loan_schedule
    VALUES
    ('00927180002119  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('00927180002119  ',2,25083.02)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01017150053252  ',1,5422.86)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01017150053271  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01017150053271  ',2,5422.86)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01017150053293  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01017150053293  ',2,4406.25)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01017180003081  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01017180003081  ',2,49664.37)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01017210000955  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01017210000955  ',2,126967.14)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01027150051360  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01027150051360  ',2,5980.03)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01027160050103  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01027160050103  ',2,3615.24)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01047150052651  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01047150052651  ',2,8125.9)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01047150052673  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01047150052673  ',2,4406.25)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01057150051287  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01057150051287  ',2,20752.45)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01057150051307  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01057150051307  ',2,10376.23)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01057150051329  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01057150051329  ',2,11960.05)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01067010001654  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01067010001654  ',2,6855.16)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01067150002665  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01067150002665  ',2,12970.28)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01067150052759  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01067150052759  ',2,4406.25)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01067150052782  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01067150052782  ',2,7618.03)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01067150052802  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01067150052802  ',2,5422.86)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01077080050026  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01077080050026  ',2,2485.26)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01077150050910  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01077150050910  ',2,3615.24)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01077150050921  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01077150050921  ',2,6348.36)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01077300050011  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01077300050011  ',2,23289.97)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01107010000277  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01107010000277  ',2,4550.62)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01107010000288  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01107010000288  ',2,7215.96)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01107150050610  ',1,5188.12)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01117110050060  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01117110050060  ',2,23528.29)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01117110050071  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01117110050071  ',2,16469.8)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01117150051071  ',1,7782.17)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01117180000631  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01117180000631  ',2,49664.37)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01137110050082  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01137110050082  ',2,47056.57)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01147150052362  ',1,5875)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01147150052384  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01147150052384  ',2,10376.23)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01157010001078  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01157010001078  ',2,10764.62)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01157150051316  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01157150051316  ',2,12970.28)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01157150051338  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01157150051338  ',2,8812.5)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01167150051647  ',1,2711.43)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01507150051043  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01507150051043  ',2,18158.39)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01957180000928  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('01957180000928  ',2,14561.49)
    /
    INSERT INTO loan_schedule
    VALUES
    ('02007180001216  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('02007180001216  ',2,36039.68)
    /
    INSERT INTO loan_schedule
    VALUES
    ('03017180001733  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('03017180001733  ',2,25083.02)
    /
    INSERT INTO loan_schedule
    VALUES
    ('03317290050021  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('03317290050021  ',2,9833.81)
    /
    INSERT INTO loan_schedule
    VALUES
    ('03317290050040  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('03317290050040  ',2,7375.36)
    /
    INSERT INTO loan_schedule
    VALUES
    ('09997040001950  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('09997040001950  ',2,13864.94)
    /
    INSERT INTO loan_schedule
    VALUES
    ('09997120004685  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('09997120004685  ',2,3495.59)
    /
    INSERT INTO loan_schedule
    VALUES
    ('09997120004696  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('09997120004696  ',2,4339.15)
    /
    INSERT INTO loan_schedule
    VALUES
    ('09997220000893  ',1,0)
    /
    INSERT INTO loan_schedule
    VALUES
    ('09997220000893  ',2,3429.21)
    /
    Kind regards

    Yamen

    Hello

    When there is a WHERE clause, it always comes after the FROM clause. (Joints and their conditions are part of the FROM clause).
    Try this:

    WITH     got_rnum    AS
    (
         SELECT     cod_acct_no
         ,     amt_instal
         ,     ROW_NUMBER () OVER ( PARTITION BY  cod_acct_no
                                   ORDER BY          ctr_stage_no       DESC
                           ) AS rnum
         FROM    loan_schedule
    )
    SELECT     m.cod_acct_no, m.amt_disbursed, m.bal_book
    ,     r.amt_instal             AS high_amt_instal
    FROM     loan_mast     m
    JOIN     got_rnum     r     ON     r.cod_acct_no     = m.cod_acct_no
                        AND     r.rnum          = 1
    WHERE   m.cod_acct_stat = '8' ----------[this is condition is newly added to apply the same in production to fetch desired record]
    ;
    
  • TO RESET THE GRAPH AND TABLE SEQUENCE EVEN STRUCTURE IS NOT EXECUTED.

    Hello everyone, I made this vi which runs automatically at the beginning and I can't use my power butoon to control this vi. Now, I want to clear the table and graph vi even when the structure of sequence is not executed as the start/stop button. And I want also when I run the program both the graph and the table should be cleared. I tried a lot of things, but as I'm new to labview I can't do. Thanks in advance.


  • Switch between the graph and the table as in the DAQ Assistant

    I was wondering if it is possible or if anyone has any success making a user interface, such as the DAQ Assistant, where you can switch between a graphical output or an array of the recorded signals.  I would like to have this feature in my code .VI.  From now on, I'm just a waveform graph in my front panel.  I'd love to be able to alternate between this waverform table and a table of output values. I have attached a few screenshots to explain what I mean.

    Hello

    Personally, I like the TAB ideas that have been validated, but you can also use property nodes and the visible value.

    Good luck.

    Steven

  • Area of the graph under the graph and not next to the chart legend

    Hello

    I need to display 1. Graph legend below the graph and not next to the chart area and also reduce the space between the caption box
    2. the values in the chart are affiches.1745%, 4.596%... I need to round up these values.

    My card code is:

    chart:
    < graph graphType = 'PIE' depthAngle = '50' depthRadius = '8' pieDepth = "30" pieTilt = "20" seriesEffect = "SE_AUTO_GRADIENT" >
    < title text = "Answer category" visible = "true" horizontalAlignment = "CENTER" / >
    (< LocalGridData colCount = rowCount="{count(.//G_DT_NON_NA_EQUITY1) '1'}" > "
    < RowLabels >
    < xsl: xmlns: xsl foreach = "http://www.w3.org/1999/XSL/Transform" select=".//G_DT_NON_NA_EQUITY1" >
    < label >
    < xsl: value-of select = "SPER_STATUS_TXT10" / >
    < / label >
    < / xsl: foreach >
    < / RowLabels >
    < DataValues >
    < xsl: xmlns: xsl foreach = "http://www.w3.org/1999/XSL/Transform" select=".//G_DT_NON_NA_EQUITY1" >
    < RowData >
    < cell >
    < xsl: value-of select = "CNT20" / >
    < / cell >
    < / RowData >
    < / xsl: foreach >
    < / DataValues >
    < / LocalGridData >
    < / chart >

    I appreciate all the help

    best regards and many thanks
    Bhavana
    
    
  • Why don't the graph and the table of the DAQ Assistant, when it is run more than once

    I have a vi that collects data and the poster. When I press the run button, it collects data as expected. But, if I changed the samples or the rate and press the run button, it collects data on the previous values of the sample and rate. I have the release of the vi and run it again to perceive in the correct values of the sample and rate.

    I plugged it without the DAQ Assistant and everything works as expected. Thanks for your help. Now, just curious as to why DAQ Assistant does not work well.

    Thanks again!

  • Several analog inputs seem to change any of the other (details DAQ: 2120 BNC and 6062E)

    I use the BNC 2120 DAQ board connected to the data acquisition card 6062E to record two analog inputs. An entry is connected to ai0 and the other at ai1. Example vi: "Acq & graph int clk tension" has been used to measure the two entries with the value read NChan NSamp vi (channels being dev2 / ai0:1). The output is the top graph in the image. However, this seemed a bit strange to me that one of them should be modulating with a different frequency. When I record both entered individually (two in low pictures) they are indeed different since the entries shown in the top graph.

    Why this would be the case, and how can I overcome this to measure the real signals?

    Thank you!

    The E series card takes the samples as soon as possible. Thus, for example,.
    If you have 16 analog input channels but you only read of
    channel 0 and 1, the map will show the channels 0 and 1 right
    After and then wait 14 'ticks '. What's that little run-in
    the origin of the afterglow.
    I think you can get the card to wait a certain
    number of ticks with a property node. I have attached a screenshot. You
    can find the property node in the palette of functions >
    Measurement of e/s > NOR-DAQmx > node Timing. Expand it
    Property node so there's two entrances. The properties are in
    Left click on the node and going more > converted >
    Its properties delay units and sampling clock delay and delay that
    you want.

    If the phase is important so the above is not the best
    the option because it causes a delay in phase. So, if you need true simultaneous
    sampling, then you will need different hardware. The S series is everything
    simultaneous sampling.

    Or, rather than the Delay property and delay units, try the Rate property
    find more > converted > rate.

    If this is not
    work either, you can move the second signal source to, say, AI8 and
    Connect everyone to the ground. Readings for these, but just do not take into account
    the data. In this way the ADC will sag to the ground at the time where that can happen
    the second string in the way so that you should not see this frequency
    ghosting on the other channel.

Maybe you are looking for