Number of translation of words

Hi gurus

I tried internet for my requirement, but I found a partial solution, so I'll post my question here...

I have the following data...

Examples of data

AS WITH a reference
(SELECT 2 years, 2 MONTHS, 4 weeks, 5 DAYS OF double UNION ALL)
SELECT NULL years, 2 MONTHS, 4 weeks, 2 DAYS OF double UNION ALL
SELECT 2 years, 2 MONTHS, 4 weeks, DAYS-1 FROM dual
)
Select * reference;

-Required output
2 years 2 months 4 weeks 5 days
2 months 4 weeks 2 days
2 years, 2 months and 4 weeks less than a day

I need to go back to the word, but if the value of the day is - 1, then I need to not exit No 3 I posted. Thanks in advance...

Hello

Muzz says:

Hi Frank

Thanks for the reply, I just realized that I entered the wrong exit, exit correct is as below.

Examples of data

AS WITH a reference
(SELECT 2 years, 2 MONTHS, 4 weeks, 5 DAYS OF double UNION ALL)
SELECT NULL years, 2 MONTHS, 4 weeks, 2 DAYS OF double UNION ALL
SELECT 2 years, 2 MONTHS, 4 weeks, DAYS-1 FROM dual
)
Select * reference;

-Required output
two 2 2 years two months four five weeks 5 days

I assume you mean

2 two two years 2 months four (4) weeks five 5 days

above.

four (4) two week 2 two months 2 days

two 2 2 years two months four 4 weeks less than 1 a day
/

Thanks in advance...

TO_CHAR (d, 'MS') to display an integer in words.

Rather than repeat the calculation for each column, you can unpivot all numbers in a single column (val below), do the calculations on this column and then re - combine the lines on original lines.  Implies that there is something unique about each of the original lines; If this isn't the case, you can add something, like I did below in the got_uk of the subquery.  If you actually have a unique key in your table, you can use instead of uk and omit the subquery got_uk.

WITH got_uk AS

(

SELECT the days, weeks, months, years

ROWNUM AS uk

REFERENCE

)

unpivoted_data AS

(

SELECT the United Kingdom

Col.

val

CASE

WHEN val<>

THEN "less."

END

|| CASE

WHEN ABS (val)<>

THEN 'zero '.

Of OTHER TO_CHAR (TO_DATE ('1', 'J') + ABS (val) - 1)

, "jsp".

)

END AS sp

,       ' (' || To_char (ABS (val))

|| ')' AS num

, SUBSTR (col, 2) | CASE

WHEN TRUNC (ABS (val)) <> 1

From THERE"

END units as

OF got_uk

UNPIVOT (val

FOR the pass IN (years LIKE '1 year'

as "2 month"

wks AS "week 3"

days LIKE "4 days"

)

)

)

SELECT LISTAGG (sp |)

NUM |

units of

, ' '

) Group (ORDER BY OCOL) OUTPUT

Of unpivoted_data

GROUP BY uk

;

Output:

OUTPUT

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

2 two two years 2 months four 4 five weeks 5 days

2 two four months 4 two weeks 2 days

two 2 2 years two months four 4 weeks less than 1 a day

This approach uses the right singular or plural (for example '1 week' but '(2) weeks') for all units also handles negative numbers for all columns, and ignores all of the parties are NULL.

Tags: Database

Similar Questions

  • Page number of reset in Word RTF model for the generation of PDF Editor BI

    Hello!
    Apex Oracle 10.2.0.4, BEEP 10.1.X 4.0.2

    I was told to transfer this forum topic.

    Bills are created based on the Word RTF with BI Publisher files. Resulting file is a large PDF file, that has a lot of pages.
    Word RTF model is bundled in field BILLS.ID with the page break option. Thus, a BILLS.ID group can have one or several pages (according to the data).

    How to create the model RTF (for generation of PDF BI Publisher) with reset page numbers when changing the value of consolidation.
    Page numbers are at the bottom of the page in the format
    curr_group_page/total_group_pages
    where:
    -curr_group_page is the number of the current page group (defined with the BILLS.ID field),
    -total_group_pages is the total number of pages in a group (defined with the BILLS.ID field).

    I need to reset the numbering at each change of BILLS.ID (Group).
    Example:
    ID = 1 (4 pages)
    1/4, 2/4, 3/4, 4/4
    ID = 2 (1 pages)
    1/1
    ID = 3 (2 pages)
    1/2, 2/2
    ID = 4 (3 pages)
    1/3, 2/3, 3/3
    etc.

    How to achieve this type of numbering?

    Any help appreciated.

    Kind regards
    Damir Vadas

    P. S.
    Have found something like the number of page in publisher bi but I want to get this file on the mail if possible (to see the real value).

    Hello

    Use

    to reset the numbering of the pages for sections.

    Concerning
    Angelique

  • Number of covnert in word

    Hi all

    I try to convert number in word in report 6I, I use this query

    function amountFormula return number is
    Word varchar2 (200);
    Begin
    Select convert_number2word(:Credit) in double word;
    (Word) return;
    End;


    its me gives error

    ORa_06502 numAriques or value error


    Concerning
    Wasim Ismail

    Hai,

    In the properties of this element of the formula, change the data type character and increase the Width property to * 200 *.

    Kind regards

    Manu.

    If this answer is useful or appropriate, please mark. Thank you.

  • What program can translate words hovering over him?

    Translator programs

    Dad has Windows 7, during playback of some foreign sites online, I noticed that he has a translator on his computer - when you move the pointer over the word, the program translates the word - nobody knows what this program and if I can download it?  I have windows xp

    Your father may have a third-party plugin for Internet Explorer (IE) that does it; However, you probably don't need to rely on these third-party plugins.   I think that since version 8, IE includes a built in Accelerator for Microsoft Translator services:

    http://microsoftfeed.com/2010/Internet-Explorer-8-translation-using-accelerators/

    So if you are ready to install IE8 on your Windows XP box, you should be able to get a pretty convenient way to the translation of text from one language to the other web.  I believe you can get IE8 for XP here:

    http://www.Microsoft.com/download/en/details.aspx?ID=43

    Note: I think that IE8 is the latest version of Internet Explorer which will build for Windows XP.

    Best,

    Shawn

  • Is it possible to display the number of words or number of characters in the selected text

    The Word Count utility has all the words in the document. Is it possible to count the number of characters or words in a piece of selected text?

    Re: is it possible to count the number of characters or words in a piece of selected text?

    Until you get an answer you like best, with the highlight text, right click, copy, paste into the blank document to LibreOffice Writer:
    Tools > statistics

  • No.of.Words

    Hello

    How to find the number to a string words...? I need to know with a sql statement... ?
    Please advise...!

    Concerning
    SA

    Hello

    Try like this...! Very simple.

    SELECT   LENGTH (TRANSLATE ('impossible is a word in the english vacabulary of fools',
                                ' abcdefghijklmnopqrstuvwxyz','%'))+ 1 as No_Of_words
      FROM DUAL;
    
  • Pages supported by default and converted my word into pages documents. Ugh! now, half are corrupt and will not open. How do I reverse this order?

    Pages has taken over and converted all my Word documents. now, half are corrupt and a mess... How can I make Word my default and how to edit pages documents to Word.

    Pages is not a clone of Word, and you never work in the native Word document format.

    When you open a Word document in Pages, he translated the Word content in document format internal .pages Pages like the active working copy. When you save this content, it is recorded as a Pages document and cannot replace the original content of the word.

    This is when you export this document internal Pages content to the word he has once again reflected in the document format Pages internal to its best estimate in the new Word document format, Pages editing session and uses the same name of the document as the original Word document. Just nothing where you bitten, because Apple gives no assurance that the process of translation will be accurate, and you effectively overwriting your original, rather than generating a different export document name to preserve the original.

    If you want to always open/edit/save in the native format of Word document, then use Word in Office for Mac. It is the only app that offers native Word document changes.

  • Can not see the text in Word Documents

    Just installed Word 15.2 and when I open a document, Word and number of pages wrote words there, but the document is empty.  I can't open a new one and start typing either.

    Ask the forums Microsoft - many fine folk in the desktop Mac community > http://answers.microsoft.com/en-us/mac/?auth=1

  • repeatability of words in a table

    I need logic for this program

    Count the number of words and number of repeat the words of the multi line text. Also display repeat them words in this chain.

    pls help me...

    Congratulations to ensure...

    Altenbach says:

    There are some fanciful and yet most elegant ways of counting duplicates, but let's first to what extent you get.

    Here is a cute way, using variant attributes. Make sure that you understand fully all the details of the code.

    As I said, it's incomplete because it doesn't recognize 'space' as a delimiter and therefore will not work for multiline strings unless you make a few simple adjustments.

  • Incoming SIP - SP CUBE is not of translations

    Perplexed as to why the incoming calls from SIP service provider do not correspond to the translation in CUBE

    I have a number presented on the incoming CUBE SIP trunk and need to get rid of the figures for the last 3 numbers to present to the CUCM.  The test voice translation works, but it seems that the incoming number provided by the supplier is not hit or corresponding to the translation rule.

    Incoming dial peer config:

    Dial-peer voice voip 60
    Description incoming PSTN (elite) to the CUBE
    translation-profile entering EliteSIP-DDI-numbers-inbound
    session protocol sipv2
    incoming called number 44239...
    codec voice-class 1
    DTMF-relay rtp - nte sip-kpml
    No vad

    Profile and set the configuration of translation

    voice translation rule 44239
    rule 1 / ^ 442392006.
    rule 2 / ^ \+442392006/ / /.
    !
    !
    voice translation-profile EliteSIP-DDI-numbers-inbound
    definition of 44239 called

    The result of the translation:

    Matched with rule 2
    Original number: + 442392006339 translated number: 339
    Number of origin type: no number translation type: no
    Original number plan: no number plan translated: no

    BE6000S #test voice translation rule 44239 442392006339
    Matched with rule 1
    Original number: 442392006339 translated number: 339
    Number of origin type: no number translation type: no
    Original number plan: no number plan translated: no

    The translation of debugging output:

    Voice translation of BE6000S #debug
    VoIP translation rule debugging is enabled
    BE6000S #.
    SIP: Attempt to analyze the attribute not supported at the level of the media
    SIP: Attempt to analyze the attribute not supported at the level of the media
    065139: June 7 23:35:29.157: //-1/5A562434A112/RXRULE/regxrule_stack_pop_RegXruleNumInfo: stack = 0x3F5552E8; Count = 1
    065140: June 7 23:35:29.157: //-1/5A562434A112/RXRULE/regxrule_stack_pop_callinfo_internal: infonum = 0x421F2934
    065141: June 7 23:35:29.161: //-1/5A562434A112/RXRULE/regxrule_stack_push_RegXruleNumInfo_internal: stack = 0x3F5552E8; Count = 1
    065142: June 7 23:35:29.161: //-1/5A562434A112/RXRULE/regxrule_stack_pop_RegXruleNumInfo: stack = 0x3F5552E8; Count = 1
    065143: June 7 23:35:29.161: //-1/5A562434A112/RXRULE/regxrule_stack_pop_callinfo_internal: infonum = 0x421F2934
    065144: June 7 23:35:29.161: //-1/5A562434A112/RXRULE/regxrule_stack_push_RegXruleNumInfo_internal: stack = 0x3F5552E8; Count = 1
    065145: June 7 23:35:29.165: //-1/xxxxxxxxxxxx/RXRULE/sed_subst: no match! number = matchPattern = id; [; ] * replacePattern$ id =
    065146: June 7 23:35:32.157: //-1/5A562434A112/RXRULE/regxrule_stack_pop_callinfo_internal: infonum = 0x0
    065147: June 7 23:35:32.169: //-1/5A562434A112/RXRULE/regxrule_stack_pop_RegXruleNumInfo: stack = 0x3F5552E8; Count = 1
    065148: June 7 23:35:32.169: //-1/5A562434A112/RXRULE/regxrule_stack_pop_callinfo_internal: infonum = 0x421F2934

    Debug messages ccsip just to make sure the call come and the DNIS format (btw - which bit of the track to show the DNIS?)

    BE6000S #debug ccsip messages
    Call SIP tracing messages is enabled
    BE6000S #.
    065149: June 7 23:38:16.925: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
    Received:
    GUEST sip:[email protected]/ * /: SIP-5060/2.0
    Record-Route:
    Via: SIP/2.0/UDP 217.68.246.241:5060; branch = z9hG4bKe4be.24390fd700572c75f3247fa6444e9fcc.0
    Max-Forwards: 16
    To: <> [email protected]/ * /: 5060 >
    From: <> [email protected]/ * / >; tag = as6b74b830
    Call ID: [email protected]/ * /: 5050
    Contact: <> [email protected]/ * /: 5060 >
    CSeq: INVITE 102
    User-Agent: Elite hosted voice
    Date: Tuesday, June 7, 2016 23:38:14 GMT
    Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
    Supported: replaces, timer
    X voipnow-did: + 442392006339
    X voipnow-extension: 0071 * 001
    X voipnow pbx: 3a5b131e3e
    X voipnow-infrastructureid: 92f21508
    X voipnow-did: + 442392006339
    Content-Type: application/sdp
    Content-Length: 520

    Ideas?

    Dear MEP,

    I think that if you add + to incoming called number, it should solve the problem as provider sends with +.

    Incoming called number + 44239...

    Also run dialpeer voip debug to see dial-peers are put in correspondence on incoming direction of ITSP.thanks

  • Translation the PRI circuit...

    Hi all! ... and thanks for reading!

    We have a router CISCO 2921 (see config)

    We need to connect our current PRI inside, however going them in numbers (or direct numbers) are for example 6016250123 and its corresponding extension MUST be 6123. As you can see we do 0 to 6.

    We have created a translation rule (in this config is 5) to do. Another rule was for testing and the other to bring to all the numbers, but replace the 0 with a 6.

    The router is part of the MAC version 7.

    When you dial in he hits the router and see the number, he translated but not going anywhere... you end up getting a busy signal.

    Also inside, trying to dial a number, we get a busy signal. Appeal does not turn off.

    It's my first config on this type of installation. I would like to assure you that I am on the right track when I say that miss me a piece of config, a peer of the dial or I'm not something to consider between the incoming call in / out and the corresponding peers.

    I have install the tranlslation as the call comes in on the router with

    voice-port 1/0/0:23

    translation-profile entering PRIInbound

    Capitalization in the carrier speech

    and only the last 4 digits with 0 already swapped against a 6

    ... any ideas on what I should do or what I shouldn't do?

    Thank you very much for your help!

    Best regards

    Mario Manzano

    Mario you can test more than a few changes...
    1. the dial-peer stop entering GW to 120.12 cucm (dp-2102) and add the sip on 120.11 trunk then test an incoming call.
    2 uncheck run on all active nodes in sip trunk and then do a test inbound call.

    Collect debugging ccsip message on these two cases.

    The device pool assigned to sip trunk contains both cucm ccm group servers? If Yes, in what order.

    Sent by Cisco Support technique App

  • How to search for a Word document in Windows 8?

    I'm stumbling around Windows 8 that came pre-loaded on my new laptop.  I ordered Windows and Excel to be included in the package.  I saved a number of documents in Word, and now I need to get these documents for a particular.  I looked on the Internet and found a lot of no-help, that is to say, 'go in search of a file'.  Excuse me, but if I could find searching a file, I could probably find out how to search for the file, Huh?  Thus,.

    Could someone please help me with: how to find a Word document (1) and (2) where is the infamous "search"?

    I did the thing 'sweep to the right side of the screen"to get those things shadow to appear, and click on the magnifying glass (which I think the engineers forgot to change when they changed everything!) and if I wanted to search for apps, I'd be in great shape.  But his files I'm looking for, Word documents.  The designers of this 'new' version improved - well, new, in all cases seem to have forgotten those of use who use computers for productive work and not socialize or play games.

    Sorry for the hike and whining, but I'm very frustrated that the tasks that were once very simple are now extremely difficult to fill.

    It's pretty easy, at the beginning screen just type the name of your document and right it will bring the search screen and you select files (files, settings, Apps). Take a look at:

    http://Windows.Microsoft.com/en-us/Windows-8/search-apps-files-settings

  • Spell check is to translate no verification?

    Hi all

    I have a multi language document which I just in English, so I deleted all the other languages.

    The dictionary is set to English in ID, Pref creative cloud and the character palette preferences, but when I do a spell check, apparently trying to translate the words rather than check them...

    spellcheck.png

    Note the language has changed.

    No idea how I can do just check in English?

    Thank you

    The language is a trait of character-level.  The language for these pieces of text must be set to (in this case) Portuguese: Brazilian

    You could do a search/replace to apply English as the language to each piece of text in the document.

    In the Grep Panel, find. +

    Change to $0

    In the section change of Format, choose English language under the character.

  • How to determine the number of characters in a PDF file?

    Acrobat.com, how to determine the number of characters or words in a PDF file?

    Hi unk2,

    There is no feature in Acrobat.com online services to a number of characters. But, you could use ExportPDF to convert your PDF files to Word format and then create your character count in Word.

    Please let us know if you need help.

    Best,

    Sara

  • Numbering pages with words

    Is it possible automated implementation of pagination where the numbers are actually in words instead of numbers?

    For example. "Four" instead of "4"

    Here is a complete, tested Javascript with CS4, but it should work with later versions as well. It works like this:

    1 use the placeholder code "#" in your Master page (s) to indicate where the number of page - like words - should appear. Additional text around him and formatting etc should work just fine; You can even use something like

    It's # page of my first book

    and the script will change the ' # ' the full wording, retaining all formatting you applied (in this case, bold and underlined characters) for just the page number text.

    One based on master pages yet another master page should work (and in fact I so hope you happen to have consumed only because I took care of this special case, as well!).

    2. make sure that master page is applied to the pages in your document where you want the written page number.

    3. the script works with the masters both front and double-sided pages; It will not work with more than two pages per spread! (But it's a pretty unusual scenario).

    4. make sure that the numbering of the pages for these pages is in Roman numerals (1, 2, 3), not something like 'a', 'b', 'c' - the script needs the number to work.

    5. run the Script. It will replace the image placeholder on every page and replace the placeholder with the English text.

    6. If you have moved pages or changed the formatting on the master page, just run the script again and it will update everything. It will update the pages with this particular master page; If you applied another master page does not contain the page number placeholder, this does not alter the framework substituted in these pages!

    7. I wrote the function to convert number to text from scratch. Theoretically, it should be good; and then, in practice, the theory may not work. If you want to than some other formulations ("three-score and five", maybe) let me know & I'll see what I can do.

    8. the numbers as text is returned in all lowercase; by your example, I change the first word uppercase later. However, any other variant is Possible, of course.

    Enjoy!

    (Copy, paste it into a text editor such as the ESTK which comes with InDesign. Save to your user as 'pageNumberWords.jsx' Scripts folder and it should appear in the Panel Scripts. Double click to run, and then check if it worked as expected.)

    //DESCRIPTION:Convert Page Number Placeholder '#' into Text
    // A Jongware Script 11-Dec-2011
    
    var allPages = app.activeDocument.pages;
    for (iterate=0; iterate -1)
                                  return masterPage.textFrames[i];
              }
              // Not found? Perhaps on this Master's Master?
              if (master.appliedMaster != null)
                        return findFrameContaining (master.appliedMaster, side, text);
              return null;
    }
    
    // Needed because the very useful label lookup was
    // -- totally unnecessarily! -- removed in CS5+ ...
    function findByLabel (items, label)
    {
              var i;
              for (i=0; i= 1000)
              {
                        thousand = Math.floor(number/1000);
                        result = numberToText (thousand) + " thousand";
                        number = number - 1000*thousand;
                        if (number > 0)
                                  result = result + " ";
              }
    
              if (number >= 100)
              {
                        hundred = Math.floor(number/100);
                        result = result + ones[hundred]+" hundred";
                        number = number - 100*hundred;
                        if (number != 0)
                                  result = result + " and ";
              }
              if (number >= 20)
              {
                        ten = Math.floor(number/10);
                        result = result + tens[ten];
                        number = number - 10*ten;
                        if (number != 0)
                                  result = result + "-";
              }
              if (number != 0)
                        result = result + ones[number];
              return result;
    }
    

Maybe you are looking for

  • Questions regarding the management of windows server data.

    my master wants me to describe me the entire windows server 2012 secondary storage system, but as I've mentioned in this regard him now he wants me to write about data for windows server management. can someone expalain me a little on this subject an

  • C1100 question Fan (CS24-TY)

    Hello I recently acquired a machine CS24-TY, and there fan problems a few months after that it has been installed.  The unit will run all fans of system at 10 000 rpm + and rev then down to about 1000 rpm, it continues the process forever. This happe

  • P1102w: Buy a new printer or the more expensive replacement toner cartridge?

    My P1102W printer cartridge is empty.  Can I buy the printer brand new for $15 and less than just buying a replacement cartridge. I see the replacement cartridge is capable of 1 600 pages, but can't find anything that describes the ability of the car

  • Return key event

    Hello I want to catch the return of the inevitable. When the user-defined function press back key, I want to show the applications screen. by programming how to recognize this previous button is pressed. Thanks in advance

  • Smartphones from blackBerry Curve 8330 manual, tutorial, other?

    After receiving my new curve, I had to take it back twice with "software problems."  Now, it seems to work very well, however I can't figure out how to set certain characteristics.  For example, the recall of the calendar seems to work, but I get no