Formatting int question : 1 to 1st , 2 to 2nd, etc.

I have a database column containing numerics 1 to 9. I'd like to display 1st, 2nd, 3rd, etc. to the user. I can perform this with some code, but is there a better way to format a number like this?
Thanks,
Mike

. I can perform this with some code, but is there a
better way to format a number like this?Not unless you can find a 3rd-party library that does this. I think there might be libraries available to format numbers like 123 into "One hundred twenty three", but I'd be less inclined to believe there are ones to do what you're after.

Similar Messages

  • I want to put my .m2ts movies (Sony HD recorder) on my Ipad3. It looks they need to be converted to h.264 format. Question is will Quicktime Pro work or are there any better software solutions. Running XP system. Thanks

    I want to put my .m2ts movies (Sony HD recorder) on my Ipad3. It looks they need to be converted to h.264 format. Question is will Quicktime Pro work or are there any better software solutions. Running XP system. Thanks

    You could try Handbrake, it works quite well.

  • Split data of 1st shift and 2nd shift

    Hi,
    I have an SSRS report that displayed the production data. It consist of data from 1st-Shift and 2nd-Shift . My SSRS has a parameter with FromDate and Todate, Time. the default date is today's date. My requirements is to
    obtain the data of 1st shift and 2nd shift on the same day and displayed into one report with separate column for 1st shift and 2ns shift. The 1st shift is always start at 6:00AM and end at 2:00PM while the 2nd shift start at 2:00PM and end at 10:00PM
    Btw, This report is run every hour. THe objective is to gather how the production perform.
    Any help is very much appreciated. Thanks
    Sample DDL
    Create table #sample
    (ID nvarchar(5), DateandTime datetime, qty int)
    Insert into #sample(ID, dateandtime,qty) values('XXXX','2014-05-30 00:33:18.000',1)
    Insert into #sample(ID, dateandtime,qty) values('TTTT','2014-05-30 05:20:57.000',1)
    Insert into #sample(ID, dateandtime,qty) values('XXXX','2014-05-29 23:09:33.000',1)
    Insert into #sample(ID, dateandtime,qty) values('XXXX','2014-05-30 03:45:08.000',1)
    Insert into #sample(ID, dateandtime,qty) values('TTTT','2014-05-30 04:53:55.000',1)
    Insert into #sample(ID, dateandtime,qty) values('XXXX','2014-05-30 06:00:06.000',1)
    Insert into #sample(ID, dateandtime,qty) values('XXXX','2014-05-30 06:15:41.000',1)
    Insert into #sample(ID, dateandtime,qty) values('TTTT','2014-05-30 06:07:08.000',1)
    Declare @timezoneOffset int, @D1 datetime, @D2 datetime, @Stime nvarchar(8), @ETime nvarchar(8),@FromDatetime datetime, @ToDatetime datetime
    Set @timezoneOffset=8
    Set @D1='2014-05-30'
    Set @D2='2014-05-30'
    set @Stime='06:00 AM'
    set @Etime='02:00 PM'
    Set @FromDatetime= @D1 +''+@Stime
    Set @ToDatetime= @D2 +''+@Etime
    SELECT *
    FROM #sample
    WHERE DATEADD(HOUR,convert(int,@timezoneOffset), dateandtime) BETWEEN (@Fromdatetime) AND (@ToDatetime)

    May I ask you assistance to fix this error.
    i wanted this code to have a timezoneoffset. 
    Also , i would like to ask if this is acceptable  in between  6:00 and 16:00, if more than 16:00 (this is 4:00PM) this would be now under shift 2. 
    case when DATEPART(hour,DateandTime)
    between 6 and
    16 then 1
    else 2 end
    as shiftID,
    I tried trid this but got an error:
    CASE WHEN DATEADD(HOUR,convert(int,@timezoneOffset), DateandTime)
    between 6 and
    16 then 1
    else 2 end
    as shiftID2

  • HT5312 how do i submit new security questions, I don't have a 2nd email address

    how do i get new security questions, i don't have a 2nd email address.  I anwser my current ?s and they say I'm wrong.

    The Best Alternatives for Security Questions and Rescue Mail
        a. Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
        b. Call Apple Support in your country: Customer Service: Contact Apple support.
        c. Rescue email address and how to reset Apple ID security questions.

  • Capture Excise on Purchase through 1st Level and 2nd Level

    Dear all,
    Please clear about the  Functionality to Capture Excise on Purchase through 1st Level and 2nd Level Dealer Invices in details please.
    Regards,
    Vishal

    hi,
    for dealer invoice we first do j1iex here we capture the excise duties
    then we do migo &
    again we do j1iex to post the excise invoice.

  • Can't decide between the 1st gen and 2nd gen 32GB iPod Touch, please help.

    I would like to buy a 32GB iPod Touch, the problem is that i can't decide whether i should buy a 1st gen or 2nd gen.
    Obviously 2nd gen is "better" but is it worth the extra $$$?
    Best Buy has the 1st gen for $310 and the 2nd gen is $400, that's $90 difference.
    Any advice would be appreciated.

    that's $90 difference.
    Actually, it's only $80 because the 1G touch will come with the old 1.x software and it cost $10 to upgrade to 2.x software.

  • 1st Gen and 2nd Gen - help me?

    Ok so i'm confused here...
    The 1st gen and 2nd gen iPod touches both have the same 128mb of RAM yes...
    So why is it that the 1st gen is apparently incapable of running iOS 4?
    Yes, i understand that multi-tasking, and wallpapers(?) are too memory-intensive for the devices with such a small amount of RAM.
    But come on, surely something like folders isn't totally 100% impossible for the 1st gen??
    I know that the second gen is running @ 121Hz faster than the first but i would've thought that folders require the use of the memory over the processor?

    I make no judgements about whether these devices are iOS 4 capable or not. Nor do I offer an opinion about the policy of which devices do, and which do not, upgrade. Nevertheless, it is Apple's policy, and I unfortunately I don't think you're gonna get the answer you seek here... Sorry.
    You could try a Genius Bar or AppleCare, but only if you seek a Monty Python-style ‘Argument Clinic’...

  • 1st generation or 2nd generation

    I bought my iTouch today. Obviously I haven't received it yet. I was looking to buy a case for it. Most say it's for either 1st generation or 2nd generation iTouch. How do you know what generation your iTouch is? I wasn't given an option when I purchased it so how do I know??
    Thanks
    Cindel

    I bought it directly online from the Apple store. I haven't received it yet so I can't tell the what the packaging is. Apparently it shipped from China. I had no idea that is where it came from.
    cindel

  • Open Format Timeline Question

    Hello,
    I'm planning on switching to FCP soon. I am editing on premiere right now and if I get a positive answer to my question I will probably make the switch really soon.
    I have a project coming that includes SD footage, HDV and XDCAM EX. Would I be able to edit in real time in Final Cut Pro even without any cards (AJA or Blackmagic)?
    Thanks a lot.

    Yes.
    Will you need to eventually render? Yes.
    Will the quality be EXCELLENT on all formats? No. SD blown up to HD won't look the best.
    Can you mix frame rates? 23.98 and 29.97...25? Well, it will work, but it won't look good. Mixing formats is one thing, frame rates is entirely different. Best to match frame rates before you edit, and if you do that, might as well make the codecs match too. Because mixing frame rates is a BAD thing. Avid doesn't even let you do it. FCP does, and people think that they can then get away with it and are shocked when it looks juttery and horrid.
    Shane

  • Quiz questions will not retain format when question is changed.

    OK forum folks. I'm working on my first e-learning project and have ran into a problem with question formating. The instructions/help basically tell you to click here and click there. I can easily figure that out. The questions I seem to have are quite a bit deeper.
    I have a predefined template which is company approved. I have created master slides in the question pool for both a 4 item match and a 5 item match (I have found if I add a line to the 4 matching line quiz the line spacing and formatting changes). The placeholder questions are essentially non-questions.
    I duplicate the master slide in the question pool to maintain the original format (spacing, location, etc.).
    I change the placeholder questions on the duplicated slide to the real question (slide is still in the slide pool)
    The formatting (font, spacing, locations, etc.) change on the new (edited) questions and require reformatting.I have also tried copying the master question slide to the filmstrip and editing the copied slide questions in the filmstrip. I receive the same results.
    Is there are way I can create masters in the current format so I can use the approved templates, edit the questions and not have to reformat the slide after the questions have been changed?
    Also, is there a way to lock the formatting of the questions? If I want to add/delete a new question or line to the slide, it would be great to be able to not have to reformat the slide for the change.
    I look forward to your answers.
    Thank you.

    I am trying to deal with the same issue. The master slides are more about background elements and navigation buttons, but they do not seem to allow for the addition of quiz elements.
    I have come up with a workaround that I hope will work. What I am doing is creating a new project that becomes my quiz question layout library (Let's call this Project 2). In this project I add the various types of questions I will be using in my project (multiple choice with three choices, multiple choice with five, true/false, etc...). I get all the quiz elements in place for each type of question (the header, question, submit/clear buttons, review area, etc...).
    These slides serve as my Master slides for my actual project (Project 1). I can copy and paste the appropriate layout from Project 2 to Project 1 and then change the questions themselves.
    I am sure I will find out the downside of this soon enough...
    There is no doubt the creation of masters for quiz questions needs work, actually it needs just to exist!

  • Pricing int.Question

    Hi,
    In one int. i faced this question. Business is selling Mobils.So if customer comes in BMW  discount is 5%,if he comes in BENZ  discount is 7%,if he comes in AUDI discount is 3%. how should i get this.
    Thanks u in Advance.
    byard

    hello and good morning, friend.
    to define condition groups go to IMG > LOGISTICS GENERAL > BUSINESS PARTNERS > CUSTOMERS > Define Condition Groups.  you then make new entries here.  you can make the following entries, for example:
    z1   BMW
    z2   Mercedes
    z3   Audi
    when you create or change a sales order, you will already see your entries when you select a line item and GO TO > ITEM > MORE FUNCTIONS > ADDITIONAL DATA A and looking at the drop down from Condition groups 1 to 5.
    the next step is to include the condition groups field in your access sequence.  you will see that the condition groups 1 to 5 (KDKG1 to KDKG5) are already allowable fields.  you use, create or copy a condition table that has the condition group as a pricing variable.  for this to  be effective, you have to choose from condition groups 1 to 5.
    you then include this table in your access sequence.  the access sequence is assigned to your condition type.
    now do VK11 for the condition type.   the system will now allow you to define discounts based on condition group.  remember to use the same condition group that you defined in your condition table.  you can make entries, for example:
    z1   5%
    z2   7%
    z3   3%.
    when you create your sales order, enter the value z1, z2 or z3 in the Condition Groups field.  check your pricing.
    hope this helped.
    regards.
    thanks for the points.  you have been very generous.

  • Question, Trouble with 1st key frame

    Let me thank anyone who is nice enough to answer my beginners questions in advance. I made my first very simple flash file yesterday and things went pretty well after I figured out that you had to insert "blank key frames" in the time line until you want something to come on after the beginning of the sequence. I have something that is good enough to go on my web site except for the very beginning of the movie. When my movie recycles everything comes on for 1/12 of a second because every layer has a darkened key frame in position one. From then on it works fine until it recycles again and of course, everything reappears for 1/12 of a second because we are back at the beginning. How do I stop the layers that are programmed to come on later in the movie from flashing on when the 1st frame is passed by on repeats? Something simple I'm sure because I don't see everyone else's movies doing this : < ) Vern

    I have my little Flash movie working pretty well and sent it to the forum where it has been posted as a banner ad. The new problem is that it does not send respondents to my web site when they click on the ad. The folks at the forum think I need to embed my web site address somewhere in the Flash file. I looked through the Publish Settings where I thought this would be covered and could not find anything that looks appropriate. Hoping someone can give me a clue : < )
    Vern

  • Formatting quiz questions

    I've created a quiz and found that the formatting for the
    questions is inconsistent and doesn't fit my slides well. For
    example, the width of the answers "blocks" are too narrow -- they
    don't fill the slide width well. And some of the font sizes are too
    small (automatically reduced from the defaults because of the
    narrowed width).
    Anyway, if I ungroup the answer in order to change the width
    of just the answer (not the checkbox/radio button and answer
    number), I lose the question in the quiz manager -- even if I
    regroup after editing. I'm guessing there's a unique id assigned to
    the group that is lost with ungroup.
    Any recommendations for working around this?

    Use PPT 07. You can move a grouped item without ungrouping.
    Jorma@RealEyes

  • TIFF Format Specification Question

    This isn't a Java-specific quesiton, but I was hoping someone here would be able to help as I have tried numerous other avenues already.
    I�m working with (TIFF) images that have multiple layers, and each layer can have different min/max values. I want to store these min/max values for each layer in the .tiff file, in the SMinSampleValue and SMaxSampleValue tags. So if I have 3 layers I need to write 3 mins and 3 maxes down.
    The documentation for SMinSampleValue/SMaxSampleValue says:
    �Note that a value should be given for each data sample. That is, if the image has 3 SamplesPerPixel, 3 values must be specified.�
    However when I use libtiff (haven't tried this in Java yet but it would be similar I guess):
    TIFFSetField( newTIFF, TIFFTAG_SMINSAMPLEVALUE, min1, min2, min3 );
    OR
    ===
    TIFFSetField( newTIFF, TIFFTAG_SMINSAMPLEVALUE, min1);
    What gets written is min1 three times, so if min1 is 40, then 40 40 40 is written, due to a variable "count", I don�t understand where the �count� for the tags gets set, I shall look into that further.
    But my main question is how do I write multiple different values for SMinSampleValue and SMaxSampleValue using tifflib? How do other TIFF readers/writers do this (format question), since I want to be compatible with them.
    Thanks,
    HappyDeveloper

    Hi,
    I am seeing the similar post in SDN and some replies state the following. Have a look into this
    Often this error occurs because the TIFF file you have has been saved with some form of compression. You need to open in a picture edit program and save as TIFF making sure options are set so there is no compression.
    Regards,
    Venkatesh

  • Integer static valueOf(int) question

    Hi there.
    Im wondering is it at all possible for an Integer reference variable to be returned
    a null by invoking this method from the API:
    Integer myInt = Integer.valueOf(//some int);The reason I am asking this question is that my SCJP book asks a question
    about using a method that is similar to the following:
    class BankAccount {
    private Map<String, Integer> accountFunds = new HashMap<String, Integer>();
    public int customerBalance(String custAccount) {
       return accountFunds.get(custAccount);
    public void setCustomerBalance(String custAccount, int balance) {
       accountFunds.put(custAccount, Integer.valueOf(balance));
    }Looking at the single return statement in the customerBalance method, my book states that this is inappropriate
    because a null cant unbox to 0 I disagree because if you look at the setCustomerBalance method you are putting an Integer
    instance that is initialized with an int primitive into the Map. So how could it be possible to have
    a null Integer instance in the map if you pass an int primitive to the valueOf method? I can understand
    if you were using a String to instantiate the Integer, and you passed null, that you would get a NumberFormatException or something like that, but about you are using a primitive, not an Object.
    Any clarification greatly received,
    Thanks & best regards.

    I disagree because if you look at the setCustomerBalance method you are putting an Integer
    instance that is initialized with an int primitive into the Map.And what happens if you call customerBalance() (which should really be named getCustomerBalance()) with a customer ID that doesn't exist?

Maybe you are looking for

  • Relation between sales order and production details.

    Dear All, Kindly help for a report which is to analyze the quantity produced v/s the order quantity . we need to know the existing inventory is produced for whom and why it is still in the stock. Kindly note that we are not running MRP for production

  • Edit in Photoshop CS5 greyed out in LR4 and LR3

    Since one of the many upgrade to LR3 I have not been able to edit in photoshop, it is greyed out.  I thought the upgrade to LR$ would deal with this but it has not. I have tried the upgrade to beta 6.7 but this does not help. Would removing CS5 and r

  • SRM - Catalog Content Management

    Hi SRM Masters Can any one could send me the config documentaion for SRM Catalog Content Management document and functionality(other than SRM260 and SRM270 both I have). and also SUS config documents and functionality. Regards Rajesh

  • Error when installing drivers-WoW Wired Headset

    This is the error i get when installing the drivers, firmware worked fine. Error Code: -5004 : 0x80070005 Error Information: >SetupDLL\SetupDLL.cpp (968) PAPP:Sound Blaster World of Warcraft Headset PVENDOR:Creative Technology Ltd (http://www.creativ

  • I'm going to kill myself - and Linksys!

    Just purchased a new pavilion laptop which did NOT recognize my current wireless setup. So over to the desktop for some tweaking. Multiple beers later I had forgotten what changes (if any) I had made to the Linksys settings or any other settings. Aft