the returned line numbering

Hello

I turned m lines of numbering of the difficulties...

IM using rownum function, but it returns me even duplicate records after I separate it.
and also it does not start from 0

Any other way of numbering the lines?


EDIT: using oracle: ROW_NUMBER() also give me the same problem

Edited by: Sosys on December 17, 2008 11:50

What is your question? You can post your query and see if it works for you. And have you tried DENSE_RANK() function.

SELECT ROWNUM, t1, t2
FROM (SELECT DISTINCT object_name t1, object_type t2
      FROM my_objects);

Concerning

Published by: OrionNet on December 16, 2008 23:19

Tags: Database

Similar Questions

  • PC InDesign CS3, lose the text to the return line cursor

    For some strange reason the ball, I have problems with the text tool. I usually select the text tool and draw a rectangle to start typing something.

    When I hit the key return to start a new line the cursor disappears leaving the red box down on the right. I can click that and start a new box to retrieve the cursor and start typing again. I'm trying to find a way to stop this and have just the cursor go to the next line.

    I checked the leader and that seems fine. text 12 pt, pt 14 leading. I don't know what to do.

    Any help would be greatly appreciated.

    Laptop? What do I do? Could be that your return key brings a frame instead of a new paragraph break. Whatever your configuration, it switches to another and try again. Check your keyboard shortcuts for frame breaks and line breaks. If not a laptop, try the other return/enter key.

    Noel

  • Scan of a file only works on the first line

    Hello

    I'm new to Labview (see 8.6) and I'm running on this problem.

    I use the Scan of a file to get a certain amount of information for the installation of test.txt.  The data of the file looks like this:

    AAA 1

    BBB 2

    REC 3

    I noticed that the Scan of the file works for only the first line.  Trying to get data that are not in the first line results in an error 85.

    Any ideas? Thank you

    It's all in what the scan of the file reads, and what is the next cgaracter in the file.

    Your first analysis of the file reads up to but NOT including the first newline in the file.

    The second read readings where the first reading was arrested and is expected to see 'B' as the next character, but sees the new line instead, and if the analysis fails. You must specify second reading formatted to await the return line.

    You can do this by making the FIRST character of the format string space, that will tell it to expect a number any of charaters 'white space '.

    Yo can indeed put a space at the beginning of the format string in your first analysis of the file and it will match with zero white space characters before you see the AAA. By doing this he also tolerate to see the spaces and tabs before your AAA or BBB identifiers.

    Rod.

  • Update or merge it with the return data

    Hello, I want to do an update in a single statement, and select (I want to get the data and update a field in one of the tables involved with a timestamp), I tried this:

    merge into table t

    using (SELECT ... a long and complex select...) e

    on (e.ID = t.ID)

    When matched then

    update the value t.ts = systimestamp

    e return

    It does not work because his return does not seem possible with the merger, he did the update but I get no data...

    With an update, I tried:

    Update

    (

    SELECT...) e

    Aliens set = systimestamp

    And I get ORA-01779: cannont change a column that maps to a table of key-preserver nonkey.

    The select is complex with many paintings and selects involved and more than 20 KB of text only select... and this isn't mine so I want a solution that does not need to change the internal selection if possible.

    Any ideas? Sorry for my limited knowledge of sql :-(

    No, you did not read what I said.  The RETURNING clause allows you to capture the details of the update table.  You may not have the details of the complex query that you use to determine the return lines.  There is no way in SQL to a single statement that updates a table and queries data from other tables at the same time.

    The best you're going to manage is to update the data, turning the ID (or regardless of the primary key is appropriate) and then query the query data complex where once again the ID in your collection.  However, it's really messy.  What US the real purpose of all this?

  • Is it possible to convert the standard numbered list to the list that appears on the same line a right after another? As indicated in 1. Text goes here, 2. Text goes here, 3. Insert text here

    Is it possible to convert the standard numbered list to the list that appears on the same line a right after another?

    Instead

    1. Insert text here
    2. Insert text here
    3. Insert text here

    This

    1 text goes here, 2. Text goes here, 3. The text here.

    This revised list can take multiple lines.

    I use InDesign CC2014 - if that makes a difference.

    the only way is to convert numbered in the text (select numbered list > ctrl (or right click) > bulleted & numbered lists > convert numbered text).

    Then, with search - replace, you can change the paragraph returns in space (or in space by commas as in your example)

  • Line numbers in the table in a calculated text field

    How calculated script works incrementally number a field calculated and return the number of lines in the field of the extreme left of a table?

    What I need, is that each row in the table is numbered consecutively in the area of the far left and that the new created lines are numbered correctly at the end of the user.

    Hello

    You have to move the script to the layout event: loan. This isn't the most effective event, because it triggers every time changes. For this reason however your needs well, because whenever a row is added or deleted, the index numbers will be updated.

    Here is an example letter (for a maximum of four lines). The same approach should apply to numbers. The script is located in the layout event: loan of the first cell.

    There is an example here: https://acrobat.com/#d=Zk2XWWDUWNfG * VuRTNy5QQ

    Good luck

    Niall

  • 2d line, numbers and dates. How to take into account the date value when drawing a 2d line?

    Hello. I just encountered a problem when tracing a line 2d with numbers.

    I have the following table:

    Date

    Total

    2015 12-31

    R $150 000,00

    2016 03-19

    R $159 000,00

    2016-03-25

    R$ 166,090.00

    2016-04-01

    R$ 159,250.90

    2016 04-10

    R$ 165,343.41

    But when I create a 2d line chart it does take into account the fact that the 1st line is in December. Numbers do not fit the distance between the data symbols according to the date, but instead just consider the dates like any other label. Which causes the curve final not not to be specific

    Is it possible to make account numbers of dates when tracing of graphics?

    If you don't want the dates to be spaced when you do not have uniform intervals so you can use a cloud of points in 2D instead of a 2D line and turn on the connection line, something like this:

    Note that with the Scatter 2D (unlike with 2D line) you do not want to be defined as a column header in the left column.

    SG

  • return on investment for the profile line variable

    Hello

    I built a vi with vision assistant, where the profile of a single horizontal line is included. If the acquired image had the X, Y coordinate system, I want to extend the vi so that it updates all possible horizontal lineprofiles (X 1/Y0 to X 1/Yn) line (Y0/Xn to Xn/Yn) in this order. So I have to vary the return on investment (line), but how is this possible? I have no experience in labview, so it's hard for me with the data of different types and functions.

    Thanks for help

    Hi Blue12,

    You may not need to create a return on investment for each line. You can get information on line directly with "IMAQ-profile line. You can directly enter the coordinates of your line and out of the profile.

    Please save yourself frustration and get LabVIEW training before attempting to implement applications.

    Best regards, Topper

  • Tabular returns lines based on the selection list

    Howdy-

    An element of the selection list is used to select a job title.

    The tabular presentation returns lines of documents to be considered annually by the title of the post.

    A single column in a tabular form (the number of the document) is defined as a link so that the user can open and read the document.

    It works beautifully.

    But...

    Some job titles return a row of five documents, still others return more than a hundred, so when paging is used to move to the next set of lines in tabular form, updates the selection list and the selection is lost.  I have the Page Action selection list element when the modified value to Redirect and set the value, but the Type of Source is static that may be my problem.

    How can I use pagination while maintaining the value of the selection list?

    Thanks in advance.

    Alexandra

    Request Express 4.2.2.00.11 (by the way, I don't have our network administrator do a update to this version?)

    the value of the default selection on a hidden item list. When you select from the drop-down list, set the item also hid from the selected item.

  • Discover with function as datasource returns only the first line.

    Hello

    I created the following function to get the status of all the rules for the instances of SQL Server.

    The data type of the function output has been configured as 'List of SQLInstanceRuleStatuss', where SQLInstanceRuleStatuss is the custom type, I created in the same module.

    When I tested the function, it returns all instances of SQL Server with two other columns.

    But when I try to create a view with the Rows property that is configured to use the feature, it returns only the first line:

    sqlRules = new ArrayList();

    queryStatement = server. QueryService.createStatement ("(DBSS_Instance)");

    queryResult = server. QueryService.executeStatement (queryStatement);

    for (it in queryResult.topologyObjects)

    {

    sqlRule is functionHelper.createDataObject ("westjet_mark_dev:SQLInstanceRuleStatus", "none", "test");.

    sqlRule.instance = it;

    sqlRule.ruleName = 'test rule name';

    sqlRule.status = false;

    sqlRules.add (sqlRule);

    }

    Return sqlRules;

    Did I miss something?

    Thank you

    Mark

    Mark,

    I think I forgot something

    sqlRule=functionHelper.createDataObject("westjet_mark_dev:SQLInstanceRuleStatus","none","test");

    you create the test id

    change your line of

    sqlRule=functionHelper.createDataObject("westjet_mark_dev:SQLInstanceRuleStatus","none",null);

    This should allow the creation of a single object in your loop for

  • Anchor to return to the same line on the previous page

    Hello

    I saw 4 or 5 posts on this subject, but none of them does not seem to work for me.

    Here's what I would do:

    I use an interactive report that contains an overview of the tasks and the information about these tasks. In the report, there is a column "Edit task" where users can click to change several fields for the task.

    When the user clicks on the 'Edit' task - link, another page (of type 'Dynamic Form') is opened where the user can make adjustments and then save them.

    When the user clicks 'Save' (or 'Cancel', by the way) on the edit page, I want to redirect them to the previous page with the overview of all the tasks, but I want the page to move in roughly the same place as when the line where users you click on 'Special Edition' is located. So if I change a task that is in the middle of the report, I want to return to the middle of the report when the user has finished its adjustments.

    I have seen that it is possible using the anchors, but have not found a position that has worked for me.

    I think that there are three elements to make something with to operate:

    -The "Edit job" - link in relation to the overview of all tasks

    -The button 'Cancel' or 'Save' on the edit page

    -The page with the overview of the tasks that he knows which row to access

    Our end-users really want this feature, so any help would be appreciated.

    I run on APEX 4.2.

    Thanks in advance for your answers.

    Kind regards

    NDG

    Was the solution after several hours and it is actually not as difficult as it seemed during these hours.

    So for those looking for the way to do it, here it is:

    Make an anchor point in the query of your report which shows the overview of the tasks (or whatever the report will show to you, I use tasks for example) like this:

    Select..., task_code, '', 'Special Edition' task_id of task

    To the page with the overview of the tasks, change the Page attributes-online display attributes-online update of the slider to "don't focus of cursor.

    View the type of the column with the anchor: Standard report column

    It will not work if the column type is 'hidden' or if the column is not in the "selected columns" in your report ("Actions"-online "Select columns").

    'Special edition' is the link that I created to go to the edit form, this link goes task_code as an attribute to identify the unique tasks (do not know if the task_id column will work, I do not use it as ID to go to the edit page, I use the task_code.) It probably won't work with this task_id-column, but if not, create an another task_id column without the anchor and use that one to pass it as an attribute).

    To the page containing your form for editing tasks create the buttons/send-Cancel:

    -"Action when the user clicks on the button ' value 'redirect to the URL."

    -the "target URL" value: f? p = & APP_ID.: 11: & SESSION. : & DEBUG. #& P16_TASK_ID. (include the '. ' at the end)

    Where 11 there is the page you want to link to, and #& P16_TASK_ID. is the item that you will use to access the respective line in your report.

    There might be other ways to do it, but it works for me on APEX 4.2.

    Good luck.

  • I need to create a curved with type text box that heal and return to the next line in the form of curved text. How do I do that?

    I need to create a curved with type text box that heal and return to the next line in the form of curved text. How do I do that?

    1. Draw a set of concentric half circles also spaced, stacked so that the outermost is the most remote.
    2. Use the text tool to add text to the outermost path, thus creating a PathType object.
    3. Select all the paths. Type > threaded text > create.
    4. Text tool: click at the end of the text in the object of PathType. Continue typing.

    > If I do that it will not type more.

    A Warp effect is a direct effect. When it is applied to the type of objects, they are still editable text. The chain will deform, however, the text also, not only the paths to which it is attached. Sometimes you want that, sometimes you don't have.

    JET

  • Question: The Horizontal text tool enter key returns to the same line

    Hello

    This is my first post on this forum, and join me this Community aims to ask for help whenever I'm stuck all by learning Photoshop CS6 extended.

    I have been unable to find solution to this little problem... When you use the horizontal type tool I press ENTER key, the cursor returns to the same line and again write the previously written text. I did not have this problem while doing the same thing before, so I think I messed up a few parameters. Help, please.

    Also let me know how to set up Photoshop to its default settings, I mess up something else.

    Thank you.

    Your leader is off. Set it to automatic.

  • Foreach returns only the first line of a dataset object

    Hello, guys.

    I am having trouble with a procedure in Oracle 9.2.0.1.0.

    I have a query that returns the number of lines, but whenever I try to browse by using a foreach loop, I only get the first line and then the loop is completed.

    For example, here's the query:

    select 
          (
            CASE
              WHEN
                TO_DATE(
                to_char(add_months(trunc(DATE '2009-01-01','mm'),level - 1),'dd') || '/' ||
                to_char(add_months(trunc(DATE '2009-01-01','mm'),level - 1),'mm') || '/' ||
                to_char(add_months(trunc(DATE '2009-01-01','mm'),level - 1),'yyyy'),'DD/MM/YYYY') < DATE '2009-01-01'
              THEN DATE '2009-01-01'
              ELSE
                TO_DATE(
                to_char(add_months(trunc(DATE '2009-01-01','mm'),level - 1),'dd') || '/' ||
                to_char(add_months(trunc(DATE '2009-01-01','mm'),level - 1),'mm') || '/' ||
                to_char(add_months(trunc(DATE '2009-01-01','mm'),level - 1),'yyyy'), 'DD/MM/YYYY')
              END
          ) startdate,
    
    
          (
            CASE
              WHEN
              TO_DATE(
                to_char(add_months(trunc(DATE '2009-01-01','mm'),level) -1,'dd') || '/' ||
                to_char(add_months(trunc(DATE '2009-01-01','mm'),level - 1),'mm') || '/' ||
                to_char(add_months(trunc(DATE '2009-01-01','mm'),level - 1),'yyyy'),'DD/MM/YYYY') > DATE '2009-06-08'
              THEN DATE '2009-06-08'
              ELSE 
              TO_DATE(
                to_char(add_months(trunc(DATE '2009-01-01','mm'),level) -1,'dd') || '/' ||
                to_char(add_months(trunc(DATE '2009-01-01','mm'),level - 1),'mm') || '/' ||
                to_char(add_months(trunc(DATE '2009-01-01','mm'),level - 1),'yyyy'), 'DD/MM/YYYY')
              END
          ) enddate
         
        FROM dual
        CONNECT by trunc(DATE '2009-06-08','dd') >= add_months(trunc(DATE '2009-01-01','dd'),level - 1)
    

    Who shows me this output:

    STARTDATEENDDATE
    01/01/20092009-01-31
    02/01/200928/02/2009
    03/01/200931/03/2009
    04/01/200930/04/2009
    05/01/200931/05/2009
    06/01/200906/08/2009

    But whenever I run this code:

      for rec in
      (
        select 
          (
            CASE
              WHEN
                TO_DATE(
                to_char(add_months(trunc(DATE '2009-01-01','mm'),level - 1),'dd') || '/' ||
                to_char(add_months(trunc(DATE '2009-01-01','mm'),level - 1),'mm') || '/' ||
                to_char(add_months(trunc(DATE '2009-01-01','mm'),level - 1),'yyyy'),'DD/MM/YYYY') < DATE '2009-01-01'
              THEN DATE '2009-01-01'
              ELSE
                TO_DATE(
                to_char(add_months(trunc(DATE '2009-01-01','mm'),level - 1),'dd') || '/' ||
                to_char(add_months(trunc(DATE '2009-01-01','mm'),level - 1),'mm') || '/' ||
                to_char(add_months(trunc(DATE '2009-01-01','mm'),level - 1),'yyyy'), 'DD/MM/YYYY')
              END
          ) startdate,
          (
            CASE
              WHEN
              TO_DATE(
                to_char(add_months(trunc(DATE '2009-01-01','mm'),level) -1,'dd') || '/' ||
                to_char(add_months(trunc(DATE '2009-01-01','mm'),level - 1),'mm') || '/' ||
                to_char(add_months(trunc(DATE '2009-01-01','mm'),level - 1),'yyyy'),'DD/MM/YYYY') > DATE '2009-06-08'
              THEN DATE '2009-06-08'
              ELSE 
              TO_DATE(
                to_char(add_months(trunc(DATE '2009-01-01','mm'),level) -1,'dd') || '/' ||
                to_char(add_months(trunc(DATE '2009-01-01','mm'),level - 1),'mm') || '/' ||
                to_char(add_months(trunc(DATE '2009-01-01','mm'),level - 1),'yyyy'), 'DD/MM/YYYY')
              END
          ) enddate
         
        FROM dual
        CONNECT by trunc(DATE '2009-06-08','dd') >= add_months(trunc(DATE '2009-01-01','dd'),level - 1)    
      )
      loop
        DBMS_OUTPUT.put_line(TO_CHAR(rec.startdate, 'YYYYMMDD') || '-' || TO_CHAR(rec.enddate, 'YYYYMMDD'));
      end loop;
    

    I get this result:

    20090131 20090101

    I tried debugging and I checked that the loop runs that once, and then passes the end of loop. I'm doing something wrong?

    Thank you!

    Best regards

    Vinicius

    Try:

    for rec in

    (

    Select * from (select

    (

    CASE

    WHEN

    TO_DATE)

    TO_CHAR (add_months (trunc (DATE ' 2009-01-01', 'mm'), level - 1), "jj"). '/' ||

    TO_CHAR (add_months (trunc (DATE ' 2009-01-01', 'mm'), level - 1), "mm"). '/' ||

    TO_CHAR (add_months (trunc (DATE ' 2009-01-01', 'mm'), level - 1), 'yyyy'), "DD/MM/YYYY")< date="">

    THEN DAY ' 2009-01-01'

    ON THE OTHER

    TO_DATE)

    TO_CHAR (add_months (trunc (DATE ' 2009-01-01', 'mm'), level - 1), "jj"). '/' ||

    TO_CHAR (add_months (trunc (DATE ' 2009-01-01', 'mm'), level - 1), "mm"). '/' ||

    TO_CHAR (add_months (trunc (DATE ' 2009-01-01', 'mm'), level - 1), 'yyyy'), "DD/MM/YYYY")

    END

    ) startdate.

    (

    CASE

    WHEN

    TO_DATE)

    TO_CHAR (add_months (trunc (DATE ' 2009-01-01', 'mm') and level)-1, "dd"). '/' ||

    TO_CHAR (add_months (trunc (DATE ' 2009-01-01', 'mm'), level - 1), "mm"). '/' ||

    TO_CHAR (add_months (trunc (DATE ' 2009-01-01', 'mm'), level - 1), 'yyyy'), ' DD/MM/YYYY') > DATE '' 2009-06-08

    THEN DAY '' 2009-06-08

    ON THE OTHER

    TO_DATE)

    TO_CHAR (add_months (trunc (DATE ' 2009-01-01', 'mm') and level)-1, "dd"). '/' ||

    TO_CHAR (add_months (trunc (DATE ' 2009-01-01', 'mm'), level - 1), "mm"). '/' ||

    TO_CHAR (add_months (trunc (DATE ' 2009-01-01', 'mm'), level - 1), 'yyyy'), "DD/MM/YYYY")

    END

    ) enddate

    OF the double

    CONNECT by trunc (DATE 2009-06 - 08 ',' dd') > = add_months (trunc (DATE 2009-01 - 01 ',' dd'), level - 1)

    )   )

    loop

    Dbms_output.put_line (TO_CHAR (rec.startdate, 'YYYYMMDD') |) '-' || To_char (rec.enddate, 'YYYYMMDD'));

    end loop;

    SY.

  • How to get line numbers to display on the SQL worksheet?

    Dear Forum,

    I learn the SQL Developer.  I use it in my work and school.  At school, when I enter a query in the SQL worksheet, line numbers show in a column to the left of the editing area.  In my work, no line number.  I'm working on a fairly long query at my work, and the line numbers would be useful.

    I looked at tools / preferences / settings for the Code Editor, but do not find a setting for line numbers.  I looked at the other tabs in preferences and found nothing that looked useful.

    I have looked at all of the choices on the display list, but can't find anything on line numbers.

    Am I missing something obvious?  Line numbers is also available?  If so, how?

    I looked at various hits "line number" in this forum, but I've not found anything exactly the point.

    Beverly

    PS Oracle 11g, SQL Developer 3.0.04, Linux x 86-64 (don't have version)

    Tools-> preferences /-> Code Editor-> line gutter

Maybe you are looking for

  • two fingers scrolling down does not work

    After the upgrade to OS Sierra my Macbook air (2015) trackpad scroll (two fingers) does not work. Please provide a solution. Thank you MacBook Air (13 inch, early 2015), OS X El Capitan (10.11.1)

  • I have a netbook 10 ", how do I get the newtab page displays more than 3 thumbnails?

    A few versions back (maybe mozilla 30?), the newtab page to view 9 thumbnails on my netbook 10 ". However, with recent updates, which was reduced to only 3. I know a netbook has a screen size much smaller than most of the computers and having more th

  • updatation sequence file

    Hi all We have developed in CVI source code and the code is used to test the various features of the product using the file in the sequence, I have one issue any help greatly appreciated. I want to give up the test sometimes between the two before th

  • Launcher main exe stopped working so my logitech webcam does'nt work, what can I do?

    My webcam logitech 170 does'nt works because Launcher main exe stopped working what can I do about it?

  • Impossible to format

    I install 64-bit Windows 7 it successfully installed then I deleted Windows xp and when I get some hanging issue I think to replace this window 7 32 bit but unfortunately in the last step (99%), it displays the error message, facilities has been fail