Need clarification on to_char

TO_CHAR (a figure-' 9G999G999G999G999G999G999G999G999G999G999G990DDDDDDDDDDDD)

How to interpret this?

This might be a very basic question. IM new to oracle :-(

G = separator thousands of groups

D = decimal separator

Discover format masks in the Oracle online documentation: Oracle Database Search Results: format mask

Tags: Database

Similar Questions

  • Need clarification on the ANSI joins

    Hi all

    I need some clarification on the ANSI join I am building to avoid an error when I try to run the same in standard join.

    With standard join, I get the error ORA-01417: a table can be external joined as another table.

    Regular join condition:
    Select null
    Of
    land_event_device_fraud dealer update,-T1
    land_event_device_upgrade T2, - New Subscriber first Set
    syn_intg_event_device_state T3, - subscribed existing
    land_event_device_upgrade T4 - new Subscriber Second Set
    WHERE T1.event_id = T2.event_id (+) AND T1.rate_plan_id = T2.rate_plan_id (+)
    AND T1.event_id = T3.event_id (+) AND T1.rate_plan_id = T3.rate_plan_id (+)
    AND T4.event_id = T1.event_id (+) AND T4.event_id = T1.rate_plan_id (+)
    AND T4.event_id = T3.event_id (+) AND T4.event_id = T3.rate_plan_id (+);

    -Get the error ORA-01417.

    Replaced the join above with ANSI join

    SELECT NULL
    OF land_event_device_fraud t1
    LEFT OUTER JOIN t2 land_event_device_upgrade
    WE (t1.event_id = t2.event_id AND t1.rate_plan_id = t2.rate_plan_id)
    LEFT OUTER JOIN syn_intg_event_device_state t3
    WE (t1.event_id = t3.event_id AND t1.rate_plan_id = t3.rate_plan_id).
    land_event_device_upgrade t4
    LEFT OUTER JOIN land_event_device_fraud t5
    WE (t4.event_id = t5.event_id AND t4.rate_plan_id = t5.rate_plan_id)
    LEFT OUTER JOIN syn_intg_event_device_state t6
    WE (t4.event_id = t6.event_id AND t4.rate_plan_id = t6.rate_plan_id);


    I want to know if the ANSI join is goig work properly or it will give me any Cartesian production information.

    Appreciate your help here.

    Thank you
    MK.

    Hello

    Maldini says:
    Hi all

    I need some clarification on the ANSI join I am building to avoid an error when I try to run the same in standard join.

    With standard join, I get the error ORA-01417: a table can be external joined as another table.

    Regular join condition:
    Select null
    Of
    land_event_device_fraud dealer update,-T1
    land_event_device_upgrade T2, - New Subscriber first Set
    syn_intg_event_device_state T3, - subscribed existing
    land_event_device_upgrade T4 - new Subscriber Second Set
    WHERE T1.event_id = T2.event_id (+) AND T1.rate_plan_id = T2.rate_plan_id (+)
    AND T1.event_id = T3.event_id (+) AND T1.rate_plan_id = T3.rate_plan_id (+)
    AND T4.event_id = T1.event_id (+) AND T4.event_id = T1.rate_plan_id (+)
    AND T4.event_id = T3.event_id (+) AND T4.event_id = T3.rate_plan_id (+);

    -Get the error ORA-01417.

    Replaced the join above with ANSI join

    SELECT NULL
    OF land_event_device_fraud t1
    LEFT OUTER JOIN t2 land_event_device_upgrade
    WE (t1.event_id = t2.event_id AND t1.rate_plan_id = t2.rate_plan_id)
    LEFT OUTER JOIN syn_intg_event_device_state t3
    WE (t1.event_id = t3.event_id AND t1.rate_plan_id = t3.rate_plan_id).
    land_event_device_upgrade t4
    LEFT OUTER JOIN land_event_device_fraud t5
    WE (t4.event_id = t5.event_id AND t4.rate_plan_id = t5.rate_plan_id)
    LEFT OUTER JOIN syn_intg_event_device_state t6
    WE (t4.event_id = t6.event_id AND t4.rate_plan_id = t6.rate_plan_id);

    You mix ANSI joins and the old joints. It's very confusing. Use all of one type or the other.
    >

    I want to know if the ANSI join is goig work properly or it will give me any Cartesian production information.

    What happens when try you it? Is it produces the results you want?

    Whenever you have any questions, post a small example of data (CREATE TABLE and INSERT statements) and the results desired from these data. Explain how you get these results from these data.
    Always tell what version of oracle you are using.
    See the FAQ forum {message identifier: = 9360002}

    Why the SELECT clause includes only NULL? Is that going to serve as an EXISTS subquery? If so, why bother to make the outer joins, and why do you care if it is a Cartesian product? What is the query to go for?
    For the purposes of debugging, you can include something that you see in the SELECT clause.

  • Need clarification for the code below:

    Hi all

    On the one hand of my requiremnet, I found a solution that worked as expected... But I was not able to understand the logic... Can someone explain me the below
    the syntax what exactly the meaning for the code below:


    Code:

    SELECT NULL
    Of apex_application_page_ir_cond cond
    WHERE cond.application_id = v ('APP_ID')
    AND cond.page_id = v ('APP_PAGE_ID')
    AND cond.condition_type = 'filter '.
    AND cond.condition_enabled = 'yes '.
    AND cond.report_id = (SELECT report_id
    Of apex_application_page_ir_rpt
    WHERE application_id = v('APP_ID')
    AND page_id = v ('APP_PAGE_ID')
    AND application_user = v ('APP_USER')
    AND report_type = 'SESSION '.
    AND TO_CHAR (session_id) = v('SESSION')
    AND report_name IS NULL))


    For your refernec, I am attaching the link too
    URL: Re: Interactive_Report with the search only bar



    Thank you
    David...

    David,

    Two things. First, it makes it much easier if you put '{code}' (without quotes) around your SQL when you publish:

    SELECT rowid "EDIT", attr_code,ATTR_ATCL_CODE "Atcl Code", attr_description, attr_atcl_code,
                    attr_abbreviation,
                    attr_include_short_desc "Include short desc",
                    attr_include_long_desc "Include long desc",
                    attr_attr_type "AttrType", rowid "DELETE"
               FROM t_new WHERE EXISTS (SELECT 1 FROM APEX_APPLICATION_PAGE_IR_COND WHERE APPLICATION_ID = :APP_ID AND PAGE_ID = :APP_PAGE_ID AND CONDITION_ENABLED = 'Yes'
    AND APPLICATION_USER = :APP_USER) ORDER BY attr_description;
    

    If the spacing still needs work, it is a little easier to read.

    Second, your query exists clause checks just a State on, without checking the condition type. Without checking, I guess either APEX creates at least an inner State, or that your IR has a default condition on it (other than a filter). Try to add the constraint condition_type to your where clause to see if that solves it.

    Also, I noticed that you don't have additional code to get the report_id. It should not be necessary, because there are currently only supported for an IR by page, but you asked what are the differences.

    -David

  • Need Clarification - Http connection/GPRS

    Hi all

    working on 4.7 for the storm. I've been singled out / feeling of pity / tired of me.  because I get is not the way how to establish an http connection to a device.

    I crossed the stone sticky wire, gone through the posts in this forum about this http connection. With a wi - fi connection it works fine. coming to GPRS, it does not work.

    I know that this is not the right place to post this, but I want to learn things of expereince of my counterpart.

    This is my story...

    (1) I have a storm with vodafone carrier. (India)

    (2) I have activated the GPRS connection for this SIM card, I received the appropriate Vodafone data plan and I am able to open browse the google, gmail, yahoo and all the other stuff except my app.

    (3) I added '; deviceside = true' to my URL.

    (4) I called my customer service to get the APN settings, apn = blackberry.net, username = <> , password = <> are. and I put those in the unit.

    (4) the strange thing, I learned to know, when I called to vodafone customer care for blackberry services, they said, plan vodadfone of data is not used for third-party applications. and we need get the BIS data for this plan.

    is this true?

    all the help/advice/suggestions are welcome.

    Thanks for your interest!

    He works with another carrier... I changed with another carrier to airtel and works very well.

    I called cust care voda and they said, voda does not support their GPRS services for blackberry, and it is essential to get the plan of BIS.

  • You will need to reinstall Windows 7, but need clarification on a few issues before the reinstallation.

    Hi everyone :)

    I have a Dell Inspiron 15R, and 2 years since I got it and due to the excessive overuse, its performance has become extremely poor. The registry is riddled with problems, and I think it's time for a reboot.

    I don't really know where the drive is, but I should be able to find it.

    First of all, I have a lot of shows and movies. Somewhere around 1.5 to of them. I also have 120 GB of programs. It's clearly too heavy to download everything at once, so I don't want to lose.

    With the program, can I transfer them to an external hard drive and then put everyone back in the program on my HARD drive wiped files and re - run the .exe file?

    Would you recommend buying an SSD and the replacement of my current HARD drive with it?

    Can I use the disk to reset everything on Windows without losing my files? This will fix the registry problem?

    Thank you

    Rowan


    Original title: I think to restart my computer. Can someone please answer a few questions that I have about it?

    Hi everyone :)

    I have a Dell Inspiron 15R, and 2 years since I got it and due to the excessive overuse, its performance has become extremely poor. The registry is riddled with problems, and I think it's time for a reboot.

    I don't really know where the drive is, but I should be able to find it.

    First of all, I have a lot of shows and movies. Somewhere around 1.5 to of them. I also have 120 GB of programs. It's clearly too heavy to download everything at once, so I don't want to lose.

    With the program, can I transfer them to an external hard drive and then put everyone back in the program on my HARD drive wiped files and re - run the .exe file?

    You cannot actually backup installed programs and bring them back, but you can save the actual installation files (.exe, configuration files) and use them to reinstall the programs. So it's a good idea to save them.

    Would you recommend buying an SSD and the replacement of my current HARD drive with it?

    Certainly if you can afford, its faster, makes your programs and Windows start faster.

    Can I use the disk to reset everything on Windows without losing my files? This will fix the registry problem?

    You can perform a custom installation that move your old installation in the folder Windows.old, where you can retrieve your personal files. I still recommend you back up your files separately but and restore them.

    http://www.notebooks.com/2009/10/07/using-Windows-easy-transfer-in-Windows-7/

    Boot from the Windows 7 DVD
    Click Install now
    Accept the license agreement
    When the option is displayed to select a type of installation, click (Custom advanced)

    Select the disk partition where you want to install Windows 7 click Next.

    You will receive the following warning:

    The partition you have selected may contain files from a previous Installation of Windows. If so, these files and folders will be moved to a folder named Windows.old. You will be able to access the information in Windows.old, but you will be able to use your previous version of Windows.

    (At all costs, do NOT click on anything in Format, deletion or Partition name.) So even do a custom installation, your personal files are still kept. Click OK

    The installation program will now begin installation. During installation, your computer will be restarted several times.

    Once the installation is complete, you can complete the Out of Box experience as the choice of your laptop, create a username, password, your time zone. You can then proceed to download the latest updates for Windows and reinstall your applications and drivers.

    You can then retrieve your personal files from the Windows.old folder and reinstall all of your applications and drivers.

    http://notebooks.com/2010/11/09/how-to-recover-documents-music-and-email-after-upgrading-with-the-Windows-old-folder/

    Thank you

    Rowan

    Reinstalling Windows 7.

    New computers coming often pre-installed with Windows 7 have what is called a recovery partition. This is used to reinstall an operating system in the case of a system failure. To access it, you need to start when you start your computer by pressing a function key. This can be either F1, F2, F9, F10, F11, F12 key DEL or tab. See the manual that came with your PC for instructions on how to reinstall Windows.

    This is how the recovery partition is accessible to most popular brands...

    For Dell, press CTRL + F11 directly after switching on the device

    or

    F8 when starting the unit

    Select the option to repair your computer

  • Need clarification on EnvironmentConfig.setReadOnly

    After reading the docs I know its not recommended, but we do in some cases, so I try to understand what is the right way to settle things upward. We have a transactional environment open existing wrire reading. When we opened it unalterable another process we create our environment config exactly the same as in the process of reading-writing and then just call the setReadOnly method on that before us open. do we need to do something else besides that read-only processes? as the deactivation of all sons of demon I like cleaner and Checkpointer or setAllowCreate set to false or something else besides that invocation setReadOnly? the problem here is not to allow the process of read-only to interfere in the process of reading / writing main IE for reading process only one is truly unalterable observer.

    (a) No..

    (b) Yes, in other words, it works. I don't know why you ask, so I'm probably missing something.

  • Need help with to_char function

    Hi all

    I use sql query below to get sysdate with timestamp.

    Select to_char (' sysdate, ' YYYYMMDD HH24:MM:SS ") of the double

    It gives me below the result: 20130816 05:08:49

    Strangely, when I keep on run the same query, I noticed after 60 seconds are completed, timestamp begins with 20130816 05:08:01 again.

    I'm missing something here...

    Thanks in advance

    998158 wrote:

    Select to_char (' sysdate, ' YYYYMMDD HH24:MM:SS ") of the double

    Strangely, when I keep on run the same query, I noticed after 60 seconds are completed, timestamp begins with 20130816 05:08:01 again.

    Hello

    You use Mi minutes not MM.

    Use like this

    Select to_char (sysdate, "YYYY/MM/DD HH24:Mi:SS) twice;

    See you soon!

  • I need clarification das.failureinterval and das.iostatsinterval

    I hope someone can help me with this issue at the moment that it makes no sense to me.

    What is the point of having these two parameters? Why not one that integrates the two?

    If das.failureinterval and das.iostatsinterval are both set for 2 minutes, it will wait for 2 minutes before resetting the virtual machine.

    If das.failureinterval is set to 2 minutes and das.iostatsinterval is set to 5 minutes, it will wait five minutes before resetting the virtual machine.

    The availability guide does not seem explicit in this area. The only thing that sort of sense would be if...

    DAS.iostatsinterval is set to 2 minutes and das.failureinterval is set to 5 minutes, then the virtual machine should reboot after 2 minutes

    Is this correct?

    The availability guide emerged as the das.iostatsinterval is a backup to das.failureinterval control, but it does not say that the opposite is true as well...

    If someone could provide some clarification on these two settings I would be very happy

    Well, these two parameters are something completely different. I'll try to explain it.

    DAS.iostatsinterval is the interval which is used to check if there was a network or a storage during the last two minutes. This will be verified only after the number of seconds set by das.faulureinterval has been exceeded without no heartbeat of VMware Tools being received.

    So what it means for these values? Well I would probably always recommend to align them. There is no interest to be posted to the storage network/I/O for the last 5 minutes when you trigger the validation after two minutes of the absence of heartbeats, because it could have failed 2 minutes 15 seconds ago.

    So in your example the VM would be restarted two minutes after it failed, THOUGH she had none / network storage I/O 5 minutes which is probably likely.

  • Summoners rights vs Definers - need clarification

    Oracle version: 10.2.0.4.0

    It is my understanding that - when using rights of Summoners - that the user who runs the package must EXPLICIT grant all the underlying opposes procedures aside this package of reference they call.

    Is this correct?

    Assuming that is correct - I see a behavior that makes no sense.

    We have two schemes - A and B. There are Illustrazione packages with authid current_user b that reference has tables. The user that runs the package b does NOT have explicit permissions to objects in A but - it is still allowing them access to the objects.

    I did a quick review of this users privileges and - it has a ROLE with this access, but - there NO explicit access.

    So - I tried to reproduce this same scenario and - has been unable to do in a test environment. Then - the only difference I could see was that the objects that I had referenced in my test package have been referenced by schema_owner.table_name rather than schema_owner_table_name_public_synonym. So - I've changed the reference to object to use the public synonym and - it worked. Even if my test user had no explicit subsidies on the table either (if - he had them through a role).

    What I'm missing here?

    In the book, O'Reilly, I saw the following quote: "the appeal rights model checks the privileges assigned directly to the applicant at the time of execution of the program to resolve external references to database objects (but not PL/SQL program units). Even with the rights of the appellant, however, roles are ignored. »

    With the fact it says "roles are ignored" - I don't know how it works (if only by accident through some bug maybe)...?

    Any idea is appreciated.

    Published by: wtlshiers on May 5, 2011 12:58

    wtlshiers wrote:
    Oracle version: 10.2.0.4.0

    Is this correct?

    N ° with rights define object stored (package, procedure, funstion, relaxation...) is made to the owner of the object security field title no matter who runs it. Privileges of stored object owner needs directly (not via the role). With the rights of the appellant stored object is running under the currently logged-in user security and therefore the privileges based on roles are in the spotlight. However, stored object owner must still directly (not via the role) privileges to compile the stored object.

    SY.

  • Need clarification on the explanation of size on a DVD

    Hi all

    I did a certain DVD so far with yet. Some are as short as 1 hour, some are as long as 2.5 hours. I continue to expect again to say "too video for the project"... but is not. I look at the menu "Generate" and he always says the same thing in 'disc info '.

    Here is a screenshot:

    Screen shot 2011-11-22 at 6.37.42 PM.png

    This project is of 2 hours 25 minutes. Is still somehow force on this 4 GB drive? Does this mean that certain quality will degrade? I bought a double disc burner layer thinking that soon I have to use it but so far I have burned projects that are big enough on my single layer.  Yet tell me when the project is too large for single layer?  Here is my system info:

    System: Mac OS X, version 10.6.8

    2.66 GHz Unknown processor

    Total physical memory: 8 GB

    Adobe still serial number: 976xxx

    Product version: 5.0.0.508

    First Media layer Version: -.

    Devices Blu - ray installed:

    None

    Installed DVD features:

    HL-DT-ST DVD - RW GA11N (Firmware KA19)

    Thank you guys!

    The answer will vary according to which challenge the material is (much higher than motion natures/low datarates needs movement), and the importance of quality is in your project.

    A rule of thumb is 2 hours is OK for a single layer, but some time at higher quality projects will be max on a disc single layer.

    And Yes, your 2 hours the project will be compressed to a high data rate (best quality) if still has two layers.

  • Need Clarification on the casting in Java

    Here's the question,

    class {Alien
    String invade (short ships) {return 'a little' ;}}
    Invade the string (... brief ships) {return 'a lot' ;}}
    }
    {Defender class
    Public Shared Sub main (String [] args) {}
    System.out.println (new Alien (.invade) (7));
    }
    }

    The answer is the compilation fails because the 7 argument must be cast for short.

    Now my doubt is that more short is 16 bits in Java, 7 can be stored in a variable short, why do we need to cast?
    If someone can clarify it?

    5.3 reading here:

    http://Java.Sun.com/docs/books/JLS/second_edition/HTML/conversions.doc.html

    The above explains why the narrowing conversions do not apply when choosing a method to call (from possible overloads).
    What they don't say is why they do not have an exception for the literal arguments, like 7.
    I guess that's for simplicity and consistency.

  • Presario SR1400IL: need clarification in the motherboard for windows 7 Home basic system installation

    Dear support,

    We have a computer desk pc Compaq Celleron. Model No.Presario SR1400IL, Celeron 2.6 GHZ, 256 MB DDR RAM, 40 GB drive HARD, Motherborad MS - 6577, Version 4.1.This pc is having windows XP home operting system.

    We want to install windows 7 Home Basic Operating System.

    My question is that if this pc will support and install operating systems Windows 7 Home Basic Edition. We of the original licese of the Windows 7 operating system. We want to install Windows 7 Home basic System [operating system in Compqa Celleron computer.

    Please let me know that this pc will install and basic Windows 7 Home Edition support.

    Waiting for your reply at the earliest.

    Thanks in advance.

    Concerning

    Pradeep.

    It is not DDR3 or DDR2 even... it's the original DDR, just DDR PC2700 aka. PC3200 or DDR400 (same thing) also works

    One of the great debacle of recent years was when the industry was selling computers with 512 MB Vista. They have been slow and caused much of the poor reception for Vista. Windows 7 manages memory better than Vista and "work" on 512 megs, but there is nothing you want to try to use.

    If it's 'the Answer' please click on 'Accept as Solution' to help others find it.

  • None of your examples correct my problem my land line is &#60; PII removed &#62; I need clarification of password

    Why deny you my place of birth mothers of my secure file.

    Thomas,

    I recommend you to read this article to help you better express the problem and get help from the experts here on this forum.
    See you soon ~!
  • Need clarification on the calculation IF statement script

    Hello guys,.


    Usually in my other projects, I used IF statement while writing scripts of calculation by mentioning some members in the LHS and assigning certain values to this member on the RIGHT side. But rrecently in one of my projects, I came with a new typical script which involves the IF function.

    Please find the script calc which is present in the system already below. Inviting you to give some idea on what it executes.

    Consider that I have seven Dimensions called account, Time_Period, JOBS, management, Source, Centre, matrix.

    DIFFICULTY ("no job, Apr)

    Fix (@UDA ("Account", "allowance"))

    DIFFICULTY (@RELATIVE ('A domestic', 0), @RELATIVE("Source A",0), @LEVMBRS("Centre A",0))

    SET CREATENONMISSINGBLK

    "Ratio" of the size of the matrix

    (

    IF ("BegBalance->" no branch "->" no Centre "->" input "of the size of the matrix == 1")

    'Ratio'->' value Allocated ' account dimension;

    ELSEIF ("BegBalance"-> "no branch"-> "No Centre"->"Input" == 2)

    'Ratio'->'value UnAllocate' account dimension;

    ELSEIF ("BegBalance"-> "no branch"-> "no Center"-> "Input" == 5)

    'Ratio'->'value Midalloc' account dimension;

    ENDIF;

    ON THE OTHER

    #Missing;

    ENDIF;

    )

    Here in the above script, after the condition of the IF statement, they did not mention any LHS = 'Ratio'-> "value Allocated"; but directly affected 'Ratio '->' value Allocated '... This means it applies to anywhere in the cube?

    Please explain.

    It is attributed to "Ratio", because it is the Member that you opened a calco block for with:

    "Ratio" (...)

  • need clarification on the requirements for Adobe Acrobat Reader XI

    On the page, it says that these requirements are:

    Mac OS

    • Intel® processor
    • Mac OS X v10.6.4, v10.7.2 or v10.8
    • 1 GB of RAM
    • 350 MB of available disk space
    • screen resolution 1024 x 768
    • Safari 5.1 for Mac OS X 10.6.8 or v10.7.2; Safari for Mac OS X v10.8 5.2; Safari 6.0 for Mac OS X v10.7.4 or v10.8

    Now are these minimum specific condition, which would have been nice to have indicated on your site and it market with OS for example, 10.6.8 or what should I do if I never use Safari?

    I see you are using 10.6.8.  Unfortunately, it's now a non supported version of Mac OS X with the latest versions of Acrobat XI.

    11.0.11

    Support has dropped:

    • Mac OSX 10.6
    • Mac OS x 10.7

Maybe you are looking for