Help for a loop

Hello, I have to make a loop like this:


FOR the article on 1.25

LOOP

.....

END LOOP;

but 25 is the result of a query. So, something like:

FOR the article on 1... (By selecting N_Rata in TAB_RATE)

LOOP

.....

END LOOP;

and I can't use variables, apart "point".

is this possible?

Thank you

Simone

Try this...

Insert into RAS_CUSTOM. IPAD_NUM_RATE (Contratto, Data_Ini, Data_Fin, N_Rata, Zingari)

Select Contratto,

Data_Ini,

Data_Fin,

LEVEL,

trunc (ABS ((importo/N_Rate)), 1).

of RAS_CUSTOM. IPAD_CONTRATTI

where to_char (add_months (Sysdate-1), "YYYYMM") between substr (to_char (Data_Ini, 'YYYYMMDD'), 1, 6) and substr (to_char (Data_Fin, 'YYYYMMDD'), 1, 6)

CONNECT BY LEVEL<= (select="" distinct="" n_rate-1="" from="">

where to_char (add_months (Sysdate-1), "YYYYMM") between substr (to_char (Data_Ini, 'YYYYMMDD'), 1, 6) and substr (to_char (Data_Fin, 'YYYYMMDD'), 1, 6))

)

AND PRIOR Contratto = Contratto

AND PRIOR DBMS_RANDOM. VALUE IS NOT NULL.

Use FOR: -.

===========

BEGIN

For n_rata (SELECT the LEVEL FROM dual CONNECT BY level<= (select="" distinct="">

in tot_rate

of RAS_CUSTOM. IPAD_CONTRATTI

where to_char (add_months (Sysdate-1), "YYYYMM") between substr (to_char (Data_Ini, 'YYYYMMDD'), 1, 6) and substr (to_char (Data_Fin, 'YYYYMMDD'), 1, 6))

Loop

Insert into RAS_CUSTOM. IPAD_NUM_RATE (Contratto, Data_Ini, Data_Fin, N_Rata, Zingari)

Select Contratto, Data_Ini, Data_Fin and n_rata. Trunc (abs ((Importo/N_Rate)), 1) LEVEL.

of RAS_CUSTOM. IPAD_CONTRATTI

where to_char (add_months (Sysdate-1), "YYYYMM") between substr (to_char (Data_Ini, 'YYYYMMDD'), 1, 6) and substr (to_char (Data_Fin, 'YYYYMMDD'), 1, 6);

End loop;

END;

Thank you

Ann

Tags: Database

Similar Questions

  • Why loops run after that assignment of processors for timed loops?

    I have 256 call loops of two frames in my code. When I execute the code without affecting processors only 128 call loop runs at the same time, however when I attribute a different processor to each of them (0-255) then only 4 runs at the same time. Why is this? How can I make all run simultaneously?

    Attached: two snapshots of the code. 1 shows a small portion of the call loops, and the other is the part of code that communicates with an FPGA VI which controls the status of the outputs (using a CRio-9066.) For call loops, the small Sun icon is a Subvi, which generates values for the time delay dt call loops.

    doug333 wrote:

    They run on the computer VI and I don't know how many processors available I!

    Windows?  If this is the case, don't bother with call loops.  They add overhead and you're very unlikely to get something from him.  Even basic affinity rarely helps.  Normal just use While loop with a ms funtion in here waiting.

  • write 1 d digital table in a binary file and start a new line or insert a separator for each loop writing file

    Hello:

    I'm fighting with digital table of 1 d writeing in a binary file and start a new line or insert a separator for each loop writing file. So for each loop, it runs, LABVIEW code will collect a table 1 d with 253 pieces of a spectrometer. When I write these tables in the binay file and the following stack just after the previous table (I used MATLAB read binary file). However whenever if there is missing data point, the entire table is shifted. So I would save that table 1-d to N - D array and N is how many times the loop executes.

    I'm not very familiar with how write binary IO files works? Can anyone help figure this? I tried to use the file position, but this feature is only for writing string to Bodet. But I really want to write 1 d digital table in N - D array. How can I do that.

    Thanks in advance

    lawsberry_pi wrote:

    So, how can I not do the addition of a length at the beginning of each entry? Is it possible to do?

    On top of the binary file write is a Boolean entry called ' Prepend/chain on size table (T) '.  It is default to TRUE.  Set it to false.

    Also, be aware that Matlab like Little Endian in LabVIEW by default Big Endian.  If you probably set your "endianness" on writing binary file as well.

  • For each loop - Urgent

    Hello

    I try to use for each loop:

    FE Agreement_No
    Customer
    0.00
    0.00 <? end foreach? >

    It does not work. The FE code should be grouped?

    Can anyone help?

    Thank you

    Can you send me the files?

  • Where can I find help for tools &gt; Web Developer?

    I'm helping a friend change his web site. Where can I find help for the Tools menu > Web Developer?

    Specifically, I need to find where I can edit the HTML code, preferably in a WYSIWYG environment (that is, not laced with HTML tags), then how can I save the new file (s).

    Firefox does not have a built-in html WYSIWYG editor. You can download an html editor, based on the Mozilla code as Firefox, free like KompoZer or BlueGriffon.

    http://KompoZer.NET/

    http://BlueGriffon.org/

  • 14 inches: help for laptop

    I was using my laptop when it is off. Now all I get when it starts is hp and swirling points. Tried to take the battery and now the button. Nothing seems to work.   Can anyone help please.

    The hard drive has failed and needs to be replaced. If you are still in warranty HP will send a replacement. If this is not the case, a laptop SATA hard detail can be used. Just be sure to get a quality at least equal the original in order to use recovery disks. It may be big, but not small ability more. For example if you have a 500 GB hard drive you can use a 750 GB hard drive, but not a 320 GB hard drive.

    If you need help for selection/replacement of the hdd post back with the complete model & product number as indicated on the Service tag on the bottom of the laptop.

    How can I find my model number or product number

  • There is no help for the usrp blocks screens

    For power, where are the docs for help for the USRP & USRP related blocks (host side & lvfpga blocks)? Help is dimmed in the menus. If they came with the driver, they should be grouped in with something not obvious & has not installed. Where are they?

    BTW, I use NU-USRP 15.00.

    Thank you.

    apchar,

    Try to use context-sensitive help on the pilot of the USRP RIO screw Either click on the "?" in the upper right corner of the block diagram, or press Ctrl-H and hover over the screws of RIO USRP. You should see the additional help documentation.

  • Context-sensitive help for objects on the tabs (bug?)

    If a command or the indicator is on a tab, the context-sensitive help for that apparently no longer works. It's particularly embarrassing for clusters of complicated example.

    Is there a workaround I'm mising?

    Example: This is the context for a cluster (A) and for the same cluster help when placed on a tab of the control (B). Case B is obviously completely useless.

    Hi Altenbach,

    It is true that it is not fixed for 2009.  I checked the condition of the CAR and it does not just he makes to the 2009 version.  It is always open and it looks like they still want to fix in the future, but no guarantee on which version.

  • Possibility to use the Enum control as an index for the loop entry For

    Hello world

    I'm curious to know if an ENUM type could be an index entry for a loop For (in fact, I tried in labview but it did NOT work).

    I use Enum to my two configurations (only two elements), but sometimes I need to run the two together.

    I wonder if it has a good structure to manage it, or simply replace ENUM with table.

    Thank you

    -Kunsheng

    Here is an example of use of the nodes of property:

  • TestStand blocks by "for each" loop

    TestStand crashes from time to time for unknown reasons. We believe that 'foreach' loops could be the reason. By replacing the "for each" loop with a loop and iterate using the index, the problem is solved.

    Is this a known problem in Teststand? Is it possible that this is resolved in Teststand 4.1 (we use 4.0.1)?

    Kind regards

    Jeroen Coulembier

    This looks exactly like a previous problem (98902) report, which has been fixed in 4.1.

  • Need help for optical safety circuit.

    I buy these parts and prototype with real components, but since I multisim, I thought it would be nice to create the circuit and maybe work through issues I can practically.

    I need a circuit that takes 120 VCA, generates 5 VDC and 1.5Vdc power of optical transmitter and receiver.  I actually use a data port because he has great range and is pretty cheap.  Rather than send the binary code well I just send a light stead that is broken or not broken through doors and windows in my house.  Then the receiver sees this as an entry and order a relay.

    I tried several voltage regulators that come with multisim, but I get an error of execution of my circuit.  Really I can't the 120 VAC to power levels necessary for the functioning of the optics.

    Otherwise I might want to run on a system 120Vdc with battery backup, so throw a 120Vdc up to 20 v DC switching power supply - but I have not found a SMP in the library which takes 120 as input and as output 20.

    Basic plan: 120VAC source-> transform to 24Vac-> Full bridge rectifier to ~ 20 v DC-> voltage capacitor filter on the input of two voltage regulators (1 to 5 VDC, 1 to 1.5Vdc) - then circuit since the two power supply of the transmitter and the receiver.

    I just need help for 5V and 1.5V, from there, I know that the real world circuit will work component tests already carried out.  Thanks for reading.

    I didn't Multism so I can't advise you on the compatible models. I ran the model on semiconductors with slight modifications of format on my SPICE simulator based on Berkeley Spice 3f5. I had to change the format of model resistance semiconductors appeal but has not changed any values.

    The output of your power supply circuit 3 (with 5 V, not the 1.5 V regulator regulator) was 4.99995 V.

    There are a few messages about changing templates published for compatibility Multisim woth. You can search those to see if there are any suggestions on what you'll need to fix in the model.

    Lynn

  • I need help for the upgrade of my current system.

    I need help for the upgrade of my current system.

    I have SBS 2008 with (Exch 2007, SQL 2005, Sharepoint, backupexec 2010 for sbs) licenses.

    I want to make the larger environment using the following:

    (1) apply Virtualization

    (2) apply to the failover process (clustering)

    "(3) the environment must support adding server terminal server, ERP server, exchange server, domain controller, backup manager.

    Storage 4) that supports Raid (1 and 5)

    UTM excellent 6) that supports (SSL VPN, VPN Global)

    suitable backup solution 7)

    (8) good antivirus for clients

    my questions:

    (1) can you provide me with a good design for this environment

    (2) should I choose what operating system:

    Microsoft datacenter or company

    I know datacenter provide us the unlimited VM but needs per processor license

    so if I have two Grouped servers I want to buy 4 licenses

    and just 4 VMs per company license... to say that we have two servers and maintain 8 vms so wat happened if 1 goes down... How can I migrate the 4 virtual machines on the server failed to another server group... ? should I buy enterprise license?

    (3) if I get the SAN storage for data... How can I save this storage... should I get another SAN?

    (4) how can I upgrade SBS stad single server (windows standrad) without losing the licenses as Exch 2007, SQL 2005, sharepoint.is it a must to buy an edition full std server or there is a way to upgrade (license wise, I mean)?

    (5) what about win2k8 license for VM:

    lets say we have physical that has windows license so that enough to have windows for VM or should I buy windows for VM licenses?

    (6) can I use backExec license for SBS with windows 2008 standard

    (7) who better to virtualization AMD or INTEL

    (8) hyper V or VMware?

    (9) what of Microsoft data protection Manager... is this good?

    (10) what virtual machine manager? What are the benefites keys

    Thanks in advance

    Hello AnasAI,

    You can find the Server forums on TechNet support, please create a new post at the following link:

    http://social.technet.Microsoft.com/forums/en/category/WindowsServer/

  • I need help for configuring security for my wireless again.

    Need a help for my Wi - Fi Protected Access set up again... somehow I deleted it while trying to access the networks wireless outside my house.

    original title: Wi - Fi Protected Access

    Hi dmcangus,

    See the Microsoft articles below for more information on WPA wireless security.

    Configure Security Wireless WPA for home networks

    http://Windows.Microsoft.com/en-us/Windows-XP/help/networking/configure-WPA-wireless-security

    Overview of upgrading security Wi - Fi Protected Access (WPA) in Windows XP

    http://support.Microsoft.com/kb/815485

  • any time, I try to open adobe photo shop elements 2.0 it says could not start because the volume windows uses for virtual memory did not enough of free space see windows help for more information

    When I try to open adobe photo shop elements 2.0 message that says: cannot start adobe because volume windows uses for virtual memory doesn't have enough free space, which could lead to stability problems see windows help for information can help you

    Hi gregoryandme,

    ·         Did you do changes on the computer before the show?

    Follow these methods.

    Method 1: Uninstall and reinstall the Adobe photo shop program.

    Method 2: Perform a clean boot to see if there is a software conflict as the clean boot helps eliminate software conflicts.

    Note: After completing the steps in the clean boot troubleshooting, follow step 7 the link to start the computer to a Normal startupmode.

  • I need help for activation of the real administrator account.

    I have a problem with Adobe reader 9 standard, Adobe customer service asked the unhide real administrator account before you can continue to help me.

    I need help for that.

    http://www.Vistax64.com/tutorials/67567-administrator-account.html

    http://www.howtogeek.com/HOWTO/Windows-Vista/enable-the-hidden-administrator-account-on-Windows-Vista/

    Read the above info.

    See you soon. Mick Murphy - Microsoft partner

Maybe you are looking for