The data recorded by a colon, how to read?

Hello

I have a report at the ApEx with a box selection. When I make more than one selection, it will save the data separated by a semicolon. In my table, it will look like this:

ID NAME SHR_ID_FROM
1. TEST 1:3

Where in the column of the selection, the two values are stored. These figures relate to a name in the database. When I have only a single selection, there is no error and the name is given properly. Then the report will look like this:

ID NAME SHR_ID_FROM
1 TEST BOARD1

When I have more of a selection, and data are saved with two points, I can't report to give me the data I need. It will give the ORA-01722: invalid number error.

I want the report to give me the following:

ID NAME SHR_ID_FROM
1 TEST board1 (related to number 1), SELECTION3 (related to the 3 selection)

So, it must give all selections. I use the following SQL code for the report

SELECT
'SRR_SERVICES '. » « « ID. »,
'SRR_SERVICES '. ' ' ' 'NAME',
(select "SRR_RQH". "' NAME '.
of 'SRR_RQH '.
where 'SRR_RQH '. "" ID "="SRR_SERVICES. " "" SHR_ID_FROM ".
) as "Van ServiceHandler"
... - the rest of the code.

I think the error lies in this line:
where 'SRR_RQH '. "" ID "="SRR_SERVICES. " "" SHR_ID_FROM ".

And I believe that the solution must be something that I have to divide each number, remove the colon and make sure that it is to send to the report with the use of a comma to separate each name. But my knowledge of sql is not very good, so I have no idea on how to solve this problem.

Thank you
Wijnand

Published by: user8726418 on 15-sep-2010 01:38

Your design to store multiple values in the same column will require a lot of work to maintain. To access the different values, you will need to analyze each and compare it to the join column using a compicated function call. It should be easier to use multiple columns with multiple values and hardcode them as the table joins using outer joins if necessary - but this can work only if you have a very small list of multiple values.

A cleaner approach might be to create a relationship with the different values and use joins of tables to the data set, such as (not tested)

ID1 NAME SHR_ID_FROM
1   TEST 1:3

ID1 SHR_ID_FROM
-- ---------------------
1  1
1  3

ID2 DESCRIPTION
-- --------------------
1  TEST SELECTION1
3   SELECTION3

Your request to join the first to the second by ID1in tables and SHR_ID_FROM to ID2 in the second and third tables.

BTW, to avoid confusion you could give 'ID' a more meaningful name such as 'entity_id' or 'description_id '.

Tags: Database

Similar Questions

  • How to save a calendar I created with the photo and the dates recorded on separate pages?

    How to save a calendar I created in photoshop with the photo and the dates recorded in the form of two separate pages?  When I save in pdf or jpeg, they are automatically save 1 pg with dates and photos on a single page.  This is causing problems when I print.

    Hi there, in which case your printer is not very large, you can also trim down the two versions and print them as separate documents.

    (1) create a guide where you want to split the pages by clicking on the rule (hit control R if they are not displayed) and dragging to the desired location.

    Create the Guide to make it so be precise in the way which divide you your page, and so that no part of the image will be repeated or lost.

    (2) select the Cropping tool and adjust the area of culture at half top of your agenda, using the guide you have just made to align with the right place. Press return to complete the harvest.

    (3) go in file > save as the. Name the file something like calendar_top and select the desired file format. Press "Save".

    (4) once you return to your calendar file, go to the history Panel and select 'Guide to flirting This will bring you to step before you cropped the image.

    (5) repeat the steps as before to the bottom half of the schedule, once more, using the guide to help you make your growing area.

    Then you would just print each of the two pages individually. The images does not appear in a single document, but if you have Acrobat you could combine the files.

    I hope this helps!

  • Download the data recorder of NOR

    How can I download the data recorder of NOR?

    It depends on what OS you are using and what data logger you talk.  Do you mean Signal Express or the data recorder included with the NOR-DAQmx Base driver?

    Signal Express for Windows

    NOR-DAQmx Base for Mac OS X, Windowsor Linux (Mandriva, OpenSUSE, Red Hat WS 4 or 5 only).

  • Error: Members similarly on the data recording in double size

    Hello

    When loading in the cube, I get an error staing
    "Members of the same size on the data record"

    But I don't see duplicates in the master table or in the dimension tables.

    How can we find these duplicates?

    Thanks in advance.

    -Shema

    Hello
    See this response from John Goodwin:

    https://KR.forums.Oracle.com/forums/thread.jspa?threadID=2264153

    See you soon

  • How to change the order of the data record in the display objects

    Hi gurus,

    I'm new in the adf and the use of 11.1.2.3.

    I have three objects in view as A, B, C. A is the main view and B, C are details. My requirement is during the recording of data in mode B, if the data exists for C so I want to insert data in B. If data exist not in C will then generate an error. Is it possible to get the line that is not yet registered in db, but has been initialized in object view by adding accessors view or in any other way.

    Thank you

    Hi Shahzad

    You can override the validate() method in EntityImp, in this method, you can use accessors to access the Master EO and access other EO details.

    For example: EOa -.<>

    -<>

    EOcImpl.java to validate the method you can... this.getEOa () .getEOb ()-> This last return the RowIterator accessor class this collection have all children the EOb, now, you can use getRowCountEstimate() by cheque if data exists in the neck or not.

    Best regards, Marcelo

  • unique several record based on the date record selection

    Hi experts,

    I have a table that contains multiple records for unique identification number now, I select the single record that contains the most recent date.

    Here is the structure

    Name of Type Null

    ------ ---- ------------

    NUMBER OF ID_P

    NAME_P VARCHAR2 (12)

    DATE_P TIMESTAMP (6)

    Reviews

    ---------------------

    1 loosi 22 August 13 01.27.48.000000000 PM

    1 hahahaha August 26, 13 01.28.10.000000000 PM

    KK 2 22 August 13 01.28.26.000000000 PM

    Emmeline 2 26 August 13 01.28.42.000000000 PM

    now I have to select below 2 lines how to write select qurie for this?

    1 loosi 26 August 13 01.27.48.000000000 PM

    Emmeline 2 26 August 13 01.28.42.000000000 PM

    Hello

    You can use the ROW_NUMBER analytic function.

    I don't have a copy of your table, so I'll use scott.emp to illustrate.  In scott.emp, there may be several lines for a single job.  To display only 1 row per job, hiredate line with the most recent:

    WITH got_r_num AS

    (

    SELECT empno, hiredate-, deptno, job or whatever columns you want

    ROW_NUMBER () taken OVER (PARTITION OF work

    ORDER BY hiredate DESC

    ) AS r_num

    FROM scott.emp

    -WHERE--if you need a filter put it here

    )

    SELECT *- or the list of all columns except r_num

    OF got_r_num

    WHERE r_num = 1

    ;

    What results do you want in the case of links?  Depending on your needs, you can add expressions of tiebreaker to the analytical ORDER BY clause or the use of RANK instead of ROW_NUMBER.

    I hope that answers your question.
    If not, post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and the results desired from these data.
    Point where the above query is to produce erroneous results, and explain, using specific examples, how you get the right results from data provided in these places.
    If you change the query at all, post your modified version.
    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: https://forums.oracle.com/message/9362002

  • Can the data recorded in the oracle DB instead of oracle content server?

    Hello

    I use Oracle Content Server with Oracle DB EE 10.1.2.5 10.1.3.5, both these software have been installed in oracle Enterprise linux 5.
    I have a requirement of the company to store some data in Oracle DB instead of Oracle Content Server(Vault/Weblayout).
    I heard that Oracle DB can store data in the BLOB, but I don't know the steps.

    Does anyone know how to do? I will be grateful if someone post the steps how to achieve that?


    Kind regards
    Ananda Roy

    Hello

    Yes, you can store content in DB instead of file system. To have this option you will need to use the FileStoreProvider component and JDBC storage option is to send the content having arrived at DB instead of weblayout / vault file directories.

    Thank you
    Srinath

  • problem with the data record

    Hi, I'm new to LabView so I know that the thing I'm doing is relatively easy, however, I'm stuck.

    I made a small program that gets 5 steps (for now replaced with random numbers) and as well as the date and time data in the text file. I intend to run the program for long periods of time, so I want to increment the file name/path every hour, but after the addition of this part of the program does not create any file, although the program runs without error.

    Block diagram is attached, could someone point out to me what is wrong and what I should do to reach my goal?

    Thanks in advance!

    Hi marcis,.

    Acually, the logic of the program was completely wrong.

    1. your comments the file path will never help you. Because after leaving of while loop, the structure of matter will run once and LV will stops running.

    2. open and close the datalog only once file. Try to make all your manipulations between opening and closing your file datalog. Otherwise, it will be difficult to manage when you develop your code.

    3 case construction outside the loop is meaning less. If you want to run the program permanently, place all functions inside the while loop you want to run. While the loop will run continuously until you get satisfied.

    4. incorrect data streams. All programmers need well with the data stream.

    Just go into the basics of labview here and try to realize your logic again

  • The data record form field to sql server database. Point me in the right direction

    I have Acrobat XI Pro and you have downloaded the SDK of XI.   At my first form savable.  My goal is to store the data in PDF form fields in a database.

    Can someone point me in the right direction.  I used to do 7-8 years ago, but it seems that the technology has changed and therefore the tools.  Thank you.

    PDF forms are submitted to a URL, still something that HTML forms are subject to a URL. It is an action that put you on a button.

    With HTML forms, you can only apply to HTML. You can also do with the PDF and the back-end can be quite similar except that you not return HTML, because the reader do not understand.

    However, it is normal to choose one of the other formats of FDF or XFDF. These are the same as the formats that you can export as part of the management of the form, and you should get comfortable with before submitting form data export/import.

    There are libraries in order to analyze the FDF. XFDF is XML, if use you standard XML analysis techniques. In a new application, go with XFDF.

  • Can I export the data recorded by the smart Tennis Sony sensor?

    Hello

    I have a question about the Sony Smarttennis sensor.
    Is it possible to export all or part of the data collected on stroke
    and speed that is displayed in the Sony application to an excel spreadsheet or is it still
    available using an API?

    I found no information about this on the web. Developer playstore on google's email address seems not to exist. (https://play.google.com/store/apps/details?id=com.sony.smarttennissensor)

    Thanks for your help.

    Best,
    Robert

    Rob01salvation,

    Thank you for considering the Sony community!

    The smart tennis sensor Google app has its limits. If there is no option to export data to a spreadsheet or different application then its one of these. There is always room for improvement. You can notice on the app and post your suggestions regarding your concerns: https://play.google.com/store/apps/details?id=com.sony.smarttennissensor&hl=en. Or email the developers at [email protected]

    To get help, please recommend to visit our Sony Global Web site for more information on contacting Sony's Support Center in your area at http://www.sony.net/SonyInfo/Support/.

    Kind regards

    Vincent

    If my post answered your question, please mark it as "accept as a Solution.

  • How coud I adjust Firefox to hold all the data record (D:\Program Mozilla Firefox Firefox\)

    My computer is personal. Not mean that it has only a single user. So I don't want my browser to save something in c:\Documents and Settings\. Is it possible to change the default path for the bookmarks, cookies, passwords, history, settings, addons and so on?

    The case for me would be if Firefox records everything in his file (D:\Program Mozilla Firefox Firefox\)

    PS Sorry for my English.

    Hello Vadim.

    I can understand clearly what you want, and although I don't have an answer to your question ("is it possible to change the default path for the bookmarks, cookies, passwords, history, settings, addons and so on?"), I can show you something that will solve your problem: Firefox Portable. This is a modified version of Firefox (fully compatible in 99.9% of cases) which will store your whole Firefox in a specified folder, so you can stored here where you want (Yes, including the profile folder), whether your Program Files folder, or a USB key. It is a little handy which is updated almost as fast as the normal Firefox (like a day or two after, in most cases).

    If you need help setting up (it is very easy, anyway), you must use their support section. Your own using Firefox in Firefox Portable profile should be no problem too.

  • I want to run more backward than the dates indicated restore me. How can I do

    How can I run restore several months back. I'm offered only about a month when I try to run the restore

    [Moved from comments]

    Hello

    "I am offered only about a month.

    You cannot restore to before system restore date you are offered.

    The system restore folder is of a certain size and when new Restore Points are added, the older ones are deleted.

    What you see now, it's what you have to work with.

    In the future try to increase the size of the system restore folder.

    You do not give us your OS, it is for Vista for example.

    "How to change the amount of use System Restore disk space in Vista"

    http://www.Vistax64.com/tutorials/76227-system-restore-disk-space.html

    See you soon.

  • Engraving of the data files on a CD, how?

    I tried to copy a data file outlook (contacts) on a CD as a backup copy, formatted disk and nothing else happened?

    Now, I get a notification that I have files waiting to be burned to the disc, when I click on the ball of the window that opens displays files and drive but, does not give me the option to burn to disc?

    When I open the CD in outlook, it is empty?

    Did you export you a pst file Outlook contacts > save it to a folder > then go to the folder, click on the pst file > click on burn > insert CD etc etc?

    How to export Outlook Contacts to a pst file:
    http://www.ehow.com/how_6774652_copy-Microsoft-Outlook-contacts-CD.html

    For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • The data record of the simple keyframe as a "Preset"?

    Knowing we behavioral presets in AE, I suppose it's possible to record images simple key given as presets.  How can I do this?  Example: record a simple animation of scale, Position, and opacity of a text layer.

    Thank you

    There are full instructions in the help file. Simply type save animation preset in the search help field at the top right of EI.

    Basically, you select the properties to include in the preset - that's all with a keyframe or modified property and go to Animation > Animation save the preset. You put in for your system's default user presets folder and then you can access it at any time. All the properties of a single layer can be saved as a preset. I have build a library of more than 200 of my own presets customized for everything from the automation of the animations like fly in bounce, fly to layers to control camera configurations. I use them every day.

  • Changing the data recorded at closing window pop up instead of using Save button/action.

    We met a weird behavior, and we cannot say whether it is a standard feature.  When a spec is an a workflow step that is Signature request, the Requestee can open a link to view the specifications.  When the user has also editing permissions, they get the icon change in the pop up window.  We had a user edited the spec then decided not to save the changes, so used the fence (red popup ex) instead of the Action: Cancel in the application menu button. The user expects that the changes would not be saved. It turns out that by clicking on the window closed, save the changes without any notice.  User should close work as Cancel instead of save.  Is this normal behavior of the application?

    Details.  6.1.1.1 on IE9 with popup version.

    They made a change, close the pop-up window, then the workflow the request signature? Is the case, then it's behavior that we expect: when you view a spec, you can view the memory in version of it, which means that if you change the specifications, changes are made to the in-memory version. If then clicked on close, the in memory data are always responsible for this specification and it is possible that the request signing workflow event then records the specification with these changes. The Cancel button would back the changes.

    However, you can save a request for development to have the window close act as Cancel.

    Thank you

    Ron

Maybe you are looking for