Save the implementation of counter as 1,2,3,4,5,1,2,3,4,5,1,2... use of rownum

Hello
Need to set up a check-in counter. the meter should be increased from 1 to 5, and then start return of 1. Thus, the record counter must be 1,2,3,4,5,1,2,3,4,5,1,2...
Currently I use "select rownum meter, Id SurveyId in PB_SURVEY_USER_TEST;"
How I can use rownum to get a record count as 1,2,3,4,5,1,2,3,4,5,1,2...
Need help here...

MOD (rownum-1, 5) + 1?

Edited by: bencol February 1, 2013 12:04

Tags: Database

Similar Questions

  • When downloading using firefox I should save the download, and then must go to the download file to start the download. When I download using internet explore I can run a download at the time where as it is downloaded. Can I change a setting somewhere?

    I use Windows 7 with firefox as my default browser. When I download a program using firefox, I wonder if I want to save the file, and then must go to the download folder to start the download. When I download using internet explorer, I gives me the ability to run the download at the time where it is downloaded instead of save the download. Is there a setting I can change to allow me to run downloads when using firefox instead of record?

    Hi shortwedge3,

    You can use the OpenDownload2 extension for the run option when downloading files with Firefox

  • I want to save the files in tif format in windows 7, 64-bit operating system and Office 2010.

    Hi team, support

    I'm using windows 7, 64-bit and Office 2010 operating system. I want to save web files(e-invoices) in .tif format.

    Because the tif format is only way to download web files(e-invoices) in the download system.

    Please tell us how can I save the files directly in tif like Window XP format.

    He had no problem when I used Windows XP. I could save the files in tif through Microsoft Office Image Writer as a default format.

    A tif file is simply an image

    Office 2010 does not include Microsoft Office Image Writer, he made the MS featured xps document writer and send to OneNote (according to the version of office)

    http://Office.Microsoft.com/en-us/Word-help/save-as-XPS-HA102351576.aspx

    http://www.Microsoft.com/en-GB/download/details.aspx?ID=20261#system-requirements

    You can also think about saving to PDF

    Nothing else; Re-post for groups of office, not this group of generic programs because it has nothing to do with the victory

  • I need to implement Drag N Drop between two tables that saves the two records

    I need to implement Drag N Drop between two tables that saves the two records on a third page, using drag 'n drop.

    Check out this video http://baigsorcl.blogspot.com/2011/01/drag-and-drop-collection-in-oracle-adf.html

  • Implementation for the Apps Error signature: "ioexception when you save the new key pair".

    I'm following the instructions of setting up registration your apps: https://developer.blackberry.com/html5/documentation/signing_setup_smartphone_apps_1920010_11.html.

    After typing the password and move the mouse around, I get a message, "ioexception when you save the new key pair". BB forums say that the problem is that my JDE is not installed, but it is. I'm also not using windows 7. Does anyone know how to fix this?

    As for all my messages, within the hour to ask, I always find the solution.

    http://ekkescorner.wordpress.com/blog-series/blackberrydev/secure-development-of-blackberry-applicat....

    However, it is normal that the instructions on the page webworks lack incredibly. I went with anger poster yesterday on the development of how awful all for blackberry is, and how absurd it is that there is no phone tech support. I decided yesterday against him because I felt bad for RIM as they seem to get into financial trouble. I've been on the fence about BB, and I tried to tell my friends that the newest smartphone looks like it could be promising. While it is true, I have not developed for BB 10 again, if it's developers resources also lack 7 are, I have no doubt that soon she will fail and I will give is more no support.

  • How to determine the number of rows in the database and save the result to a local variable?

    Hello

    I'm a newbie in the use of TestStand, databases and SQL, and now I've met difficulties. I use TestStand 2014 (32 bit).

    I have a need to know the number of rows in a database and save that number in a local variable. I tried to practice using the database of the Types of step provided with TS. I tried to use the following in a SQL statement:

    Locals.NumberOfRows = ("SELECT COUNT (*) FROM TEST_TABLE")

    It returns an error: specified value is not the expected type. My goal is possible in this way, or I'm doing this completely wrong?

    -RautSa

    Thank you for your response, Norbert. I have a database of who wins new values at random, and sometimes I need the exact number of rows in this table.

    I managed to achieve my goal by using the SQL statement: "SELECT COUNT (*) as Rowcount OF TEST_TABLE", followed by a data GET operation, which records that number of lines in a local variable.

    -RautSa

  • The create a System Image will save the FPGA code and the RT code?

    I have some cRIO systems which were broadcast in our manufacturing plant for some time. A slight problem has been discovered in the programming and created a workaround solution, but a fix should be implemented. Currently, I have no way to test my new code without loading on the cRIO and it works on the tool while the product is running. If there is a problem and I need to do some debugging, the tool cannot be down for an extended period. I would write a vi that will save an image of the cRIO so I can reload the software that is currently running and prevent a situation of prolonged downtime.

    My question is, when I did in the past with a product that has different tests, calibration and the final client software RT, it seems that the code FPGA not be saved (not a big deal at the time since the new FPGA code was compatible with different deployments RT). The new FPGA code won't be compatible with the old RT software, so now I'm worried. I would like to just check on it until I have all the boss breathing down my neck. If the service will not save the bitfile FPGA, is there anything else I can do for the tool to return to the previous running state while I solved problems that may exist with the new code review? The original code was lost by my predecessor. Otherwise, I would use just that.

    Hi Jeremy,.

    You are right, because the create a System Image does not record the bitfile with the image of the RT. Using the configuration system API, you will need to deploy the RT image and then the bitfile FPGA compiled later. To ensure that you can return to the previous version of the software running on your RIOs, you could simply save the current image and bitfile before deploying the new image and bitfile.

    However, the best way to proceed is to use replication Deployment Utility (RAD of OR). I have provided the link to the tutorial on the wheel, where you can download the utility. This exe will make images of the any of your RT targets and will also include the bitfiles with them. You can also deploy these images to several targets at once. In particular, you can read about the Bitfile (s) configure for FPGA Deployment Flash; the bitfile will be deployed at the start when stored in flash memory.

    Replication and deployment (RAD) utility-

    http://www.NI.com/example/30986/en/

  • Save the input of the meter against the clock data

    Hello, I would like to know about recording by using an entry in the file of the measure.
    When I record a given as analog inputs, to save the file with display analog data against the clock.
    But when I tried to applied the encoder, which uses counter entries, in the .txt file are not displayed
    the result in the form of analog input. If anyone can give me a guide on what writing to measument setting
    file to measure the revolution per minute is against time, thank you


  • Save the data to the excel file

    Hello

    I make a program reads the value of the probe via serial port... but I don't know how I can record this data in excel file... I open the example in the labview example, but I don't want to like this... becaue I use a while loop in my program that cause opened "multi" excel file... . How can I solve this problem?

    You need to think about what you want to do, not how you want to do.  I'll make a few assumptions here - adopt to your notebook loads "real."

    I guess you want to take a series of readings from a device (sensor, serial port).  I suppose you take multiple readings, perhaps their display on a table or chart, for a certain period of time.  Once you have a set of data, you want to save all the data in an Excel file.

    If this scenario is correct, there are three distinct phases to this task - implemented the data collection (open the serial port, manage the interactions of the user according to the needs), data collection (and potentially produce tables or graphs) and save the data.  Note that only step 2, collect data, involves a repetitive action appropriate for a while loop.  Once you have all the data, you can then open an Excel report, use something like Excel table easy to put the Table in the report or chart Excel easy to put a chart in the report and save the report in evidence, save the report.

    If you are using a relatively recent version of LabVIEW (2010 or later), the new generation Excel report screws are pretty easy to use.

  • VBAI 2012 "save the image calibrated to the file" issue

    Hello

    Under the State of 'Calibrate Image', 'Save the image calibrated to the file' option does not work correctly.

    With the exception of the type 'Point of Distance' of the calibration, the new image is ever recorded. I checked the calibration image .cal2 in the folder \ProgramData\National Instruments\Vision AI\Calibration Builder, each iteration the meta-data are updated but not the image.

    I have a camera calibrated with a grid (see picture) and using the model of the distortion. Working remotely can sometimes change and I need to take a recalibration. This step should be as simple as possible. Example: put a model calibration in the field of view, then press a button recalibrate.

    The problem mentioned above, it is impossible. Whenever I have to manually go into the choice of the State of the Image calibrate and update the calibration image myself. Otherwise, calibration is recalculated from the original image which is not best suited for the new working distance.

    Is there an easy way to make VBAI save a new image of calibration with each iteration?

    Or is it something that I did not understand this option 'save image calibrated to the file?

    Vision Builder for Automated Inspection VBAI 2012

    Windows 7 64 bit

    Best,

    Ken

    Hi Larpin,

    Unfortunately VBAI does not support the suggested behavior. The best solution in my opinion would be to implement your application completely in LabVIEW!

    To Eval download link. Version:

    https://lumen.NI.com/nicif/en/evallv/content.XHTML

    Kind regards

    MISIC

  • Error-2147352567 when you use save the vi report

    Hello

    I am developing a software test bench end line for a company. Everything was going well until I met an unexpected error which I don't understand. My code works a simulation engine and stores data in two excel files. When I have the path disconnected to save the report to the File.vi (screenshot 1), my program works without problem and records one of the files and returns an error due to the vi save report being disconnected (as expected). But when I connect the path to save the report to the File.vi, I get an error-2147352567 (screenshot 2) at a table to append to report.vi elsewhere in the code, which worked perfectly well until the road was connected to the vi to save the report. Also, now the second excel file is saved because its path has been connected. I don't understand what is the question. I couldn't find any source that has given me a reasonable solution to the problem either. I use Labview for less than 2 weeks, so forgive me if I forgot something.

    Hi DPAC.

    My apologies for the confusion in the previous post, I thank very you much to clarify it.

    Following my last post; the error was due to a race condition. There is no data flow between two separate writing report files. This means that LabVIEW will try to run the two bits of code in parallel. However, it was sometimes causing one of the sub-vis to be called by two different parts of the code at the same time, causing the error.

    This is the reason for which the code executes without error above if you have disconnected the path to the first 'save report to File.vi', because this part of the code was not running, allowing the second party to run freely.

    To counter this I simply wired terminal 'error' "save report to File.vi" (the one that used the All_Saved.xlsx) in the terminal ' error in ' of the 'new Report.vi' (one who has used the Template.xlsx). Because the screws will not work until all entries are filled, this forces the writing of the first report before the writing of the second report, not occur at the same time.

    I have attached the revised version of the "EOL_V1.vi" where you will be able to see how I wired errors to force execution.

    I also noticed that you have not initialized your shift register "speed". This means that every time that you run the program, it will retain the last value from the previous execution. Is - this intentional? This means that your worksheet does not properly update if you run the program twice in a row.

    Thank you

  • How can I save the video published on a DVD?

    Original title: can not take MORE than 2

    First mistake was to use the software download from Sony, then found a way to convert it then discovered vmi Movie Maker for editing.    Now I can't save the Movie Maker on a DVD.   I can record on my counter top, but nowhere else.   Quickly becoming a love, hate relationship with shooting video...  Seriously, this film has a meaning and I need to finish this project or to pack... Help

    Original title: can not take MORE than 2

    First mistake was to use the software download from Sony, then found a way to convert it then discovered vmi Movie Maker for editing.    Now I can't save the Movie Maker on a DVD.   I can record on my counter top, but nowhere else.   Quickly becoming a love, hate relationship with shooting video...  Seriously, this film has a meaning and I need to finish this project or to pack... Help

    ==========================================
    The following article is maybe worth a visit:

    How to burn Windows Movie Maker WMV to DVD video
    http://www.online-tech-tips.com/computer-tips/burn-WMV-to-DVD/

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • Save the choice by the user in the menu drop-down

    Hey guys

    How is everyone today? I hope you are all okay

    I am facing a problem, I made a menu drop-down with 2 options, each option changes something in the way of the application of notification showing, once the application is closed, it returns by default (no selected value... which makes sense, because I do not know how to record yet)... so is there anyway to save the user's selection in the menu?

    Here is the code

         DropDown {
                id: drop
                enabled: false
                Option {
                    text: "Every 15 minutes"
                    value: 1
                }
    
                Option {
                    text: "Every 30 minutes"
                    value: 2
                }
                onSelectedValueChanged: {
                    if(selectedValue == 1){
                        //because it's milliseconds
                        timer.interval = 900000
                        timer.start();
                    }
                    if(selectedValue == 2){
                        //because it's milliseconds
                        timer.interval = 1800000
                        timer.start();
                    }
                }
            }
    

    Thanks a lot guys

    Hi Alem... from your code snippet:

    if (theOptions[count].value == settings.getUserSelectDrop)
    {
        drop.selectedIndex = count;
    }
    

    The problem I see here is that getUserSelectDrop is a function, not a variable, and so he needs parenthesis after it else Qt will stop execution of JavaScript as soon as he's trying to run it.

    Try this:

    if ( theOptions[count].value == settings.getUserSelectDrop() )
    {
        drop.selectedIndex = count;
    }
    

    The other thing I would say is that getUserSelectDrop() reads the value of the settings file every time through the loop, who has a bit of a drop in performance. I recommend to save the value of a local variable only once before the loop, then use for comparisons instead:

    var userSelectDrop = settings.getUserSelectDrop();
    for(var count = 0; count < theOptions.length; count++)
    {
        if (theOptions[count].value == userSelectDrop)
        {
            drop.selectedIndex = count;
            break;
        }
    }
    

    Note also in this last code that I added a break statement, if the value matches to avoid the loop to test all the values more unneccesarily.

  • Save the credentials locally on PlayBook.

    Hello devs.

    I looked around, and it seems that the file IO is not yet implemented in the API of the PlayBook. I need to save the credentials of the user in the application memory, so that we remember the next time that the application is open. Someone at - he was able to do this? Any help would be appreciated.

    Thank you

    Anzor

    Hello.

    Of course, it is possible. You can find the code on my github account:

    https://github.com/ddluk/WebWorks-database

  • Do I need a CUCM for the implementation of a telepresence system 1300?

    can I install a telepresence system in an office with a UC560 or simply not use any appeals officer in the implementation of a telepresence system 1300?

    Hello

    With CTS endpoints you MUST use cucm to save the endpoints and callmanager will manage the firmware of endpoints, road marking, speed disls, midlet and all the other options and to let the CTS human access to these endpoints for control of booking and call for calls point to point and multipoint

    On the use of VPN recently it is authorized by cisco, according to me, especially for the endpoints one screen you can search for telepresence on wide band for a few cisco whitepapers

    Hope this helps

    If useful rates

    Sent by Cisco Support technique iPhone App

Maybe you are looking for

  • Can I add a second monitor?

    I'm used to 2 monitors, and I want to keep it this way.  I hung on a samsung monitor I have via HDMI to my Sprout.  It works, except that I can't seem to operate as one extension of the other.  I have set them up as an extension, but this is only to

  • How can I fix error 0x800106ba for windows defender?

    I have Windows Vista 32 bit for my operating system, I tried to run my Windows Defender (rotate, etc.), but I get code error 0x800106ba.  I tried to find a way to solve the problem without success.  If you know how to solve this problem, please let m

  • How best test which Member was chosen in a run-time prompt?

    It is elementary that to some, but it seems to reinvent the wheel every time on this.  Test @ISMBR does not work for me.  I want to run a calculation against a given Sparse member selected in a run-time prompt, but the calculation is conditional that

  • Ethernet controller and network device problem

    Hello I re - install my software to windows 7 and now I lost all my drivers and the most important of them drivers Ethernet & network without it I can't connect to Internet Please can someone help me with my problem, I have all ready looked on the in

  • Could not load the .zip file in the media internal binary

    Hi allWe are facing a problem in the application migrated to atg10.2 where Bcc we are not able to download the .zip in media-internal-binary file extensions.I went through the documentation that says it can be used for the .gif, .jpeg extensions, but