Hi i wanted to put each alphabet of a sentence in each row.

Hi ,
For example if the sentence is  "I am Good"
Identity    alphabet
1 i
2
3 a
4 m
5
6 g
7 o
8 o
9 d

You can use a user defined function that returns a table or you can insert to an existing table. The code you can use would be something like that:
CREATE TABLE #Alphabets (Id INT IDENTITY, Alphabet NCHAR(1))
DECLARE @Sentence NVARCHAR(MAX) = N'I am Good'
DECLARE @CurPos AS INT = 0
IF LEN(ISNULL(@Sentence,'')) <> 0 BEGIN
WHILE @CurPos < LEN(@Sentence) BEGIN
SET @CurPos = @CurPos + 1
INSERT INTO #Alphabets (Alphabet) VALUES (SUBSTRING(@Sentence, @CurPos, 1))
END
END
SELECT * FROM #Alphabets
DROP TABLE #Alphabets
The result is like this:
Id    Alphabet
1    I
2    
3    a
4    m
5    
6    G
7    o
8    o
9    d

Similar Messages

  • Retrieve 3 rows of data and put each row in different position on screen

    I need to retrieve 3 consecutive rows of data (easy) and need to put each row's data in an entirely different location on the home page
    for example,
    row 1 needs to go up in the top left content box
    row 2 needs to go in the large content area in the middle of the page
    row 3 needs to be put down in the footer of the page
    what's the most efficient way to do this ?

    Ok, I've tried to research this a bit more, but I'm no further forward
    So if I have a query...
    <cfquery name="getData" datasource="foo">
      SELECT *
      FROM 00_pricelist
    </cfquery>
    <cfoutput query="GetData" startrow=1 maxrows=3 >
         <!--- surrounding table 1 --->
         #getData.uneak_code[1]#<br />
         <!--- surrounding table 2 --->
         #getData.uneak_code[2]#<br />
         <!--- surrounding table 3 --->
         #getData.uneak_code[3]#<br />
    </cfoutput>
    can you tell me what I'm doing wrong ?

  • When executing query...in the result i want to display each row values

    Hi All,
    When executing query...in the result area i want to display  each row values.
    Example:  query result is like this
    Business Area   Sales   Material 
    kh02                 1000      2000
                            2000       300
                            5000        400
                            6990       1000
    Kh03                1400        700
                             200        500
                              50          60
    but i need like this
    kh02               1000         2000
    kh02                500           600
    kh02                400           300
    kh03                1400         700
    kh03               200            500
    Why i need like this because am exporting to Excel spread sheet and i have to send as i show above ....i am doing manual but the file is very big like 95, 969 records i have to change manual...like this i have to change 8 files.
    please advice me easy way
    i willl be very gr8ful
    Thanks
    sidhartha

    Hi,
    that'S exactly what hide repeated key values does. If this option is on your result is:
    Kh02 1000 1500
    blank 500 456
    blank 600 700
    kh03 400 500
    balnk 500 600
    If you turn it off, the result will be:
    Kh02 1000 1500
    Kh02 500 456
    kh02 600 700
    kh03 400 500
    kh03 500 600
    Exaclty what you want. Try it, it should work
    Regards,
    Juergen

  • I have two macs at my house, and multiple iPhones. I want to keep the same apple id as everyone else, but i want to put my own music only on my iPhone. I want to do this with my laptop which is not the family's main iTune's computer.

    I have two macs at my house, and multiple iPhones. I want to keep the same apple id as everyone else, but i want to put my own music only on my iPhone. I want to do this with my laptop which is not the family's main iTune's computer.

    If you use the same Apple ID for iCloud on each device, yes. However, you can use the same Apple ID for iTunes content on each device, but different Apple ID's for iCloud, iMessage, FaceTime, etc., on each device. That way, you can have whatever iTunes content you want on each phone, but keep all of the other data separate. You can create another Apple ID here:
    https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/wa/createAppleId?loca lang=en_US
    Must be a verified email address.

  • While creating a PO I want to put old PO refrence with status Open or Close

    Hi,
    While creating a new PO I want to put old PO refrence with status Open or Closed.
    please Suggest How to configure in ME21n.
    Regards,
    Himanshu

    Hi Himanshu ,
               Do clear whether Both ( Old & New PO's ) are Interlinked with Each Other . If Yes then How.
    Or You are terming your Legacy PO's as Old Po's and SAP Po's as New PO's.
    Please Specify so that relevant field can be determined in SAP as per its Usage.
    Regards
    Honey

  • Putting buttons at the end of each row of a report

    Hi
    Was wondering if anyone new of a way to put buttons on the end of each row of a report. Basically i want a button and a LOV box next to the end of each row so that the user could set the value of the LOV box click the button and that would update just that row. Obviously i want to give them the option of batch processing it as well but for now i just want them to be able to update one row at a time.
    This does not nessacary need to be with a LOV box it could also work with radio buttons to specifiy the value to update.
    If anyone knows a way of doing this or any information where i can read about it then please let me know as i would be very interested.
    Or can you make report fields eidtable so that i can just run a massage update on the using all the values in the report?
    Thank you for your time
    Daniel Stead
    Message was edited by:
    Dan Stead

    No such luck a tabluar updat form shows all the rows for that table. I only want the user to be able to update their rows in the table.
    This is bascally what i want to do.
    I have two reports that only show records that are realted to the current user that is logged in.
    The first report shows all records in the table for the current user where the supervisor (the current user) type is set to confirmed.
    The second reprot shows all the records in the table for the current user where the supervisor (the current user) type is set to requested.
    That is what i have acheived so far.
    I want to be able to make the superviosr type in the second report editable with a list of values requested, rejected and confirmed. The user can then select what he would like the type to be for the specific record in the report and then press a button that updates all the reocrds (or a button at the end of each row that updates each row). If the row is confirmed it moves to the first report, if it is still requested it stays in the second report and if it is set to rejected then it will be in neither report.
    Therefore my question is if i make the supervisor type eidtable how can i link it to the id of that row so that it updates it?
    If this is not clear please state to me which part i have not made clear.
    Thank you for your help.
    Daniel Stead

  • I have Microsoft office on one of my iMacs at home and want to put it on the other 2.  How do I do this?

    I have Microsoft office on one of My iMacs at home and want to put it on the other 2 iMacs.  How do I do this?

    Unless you have a version with multiple serial numbers provided then you cannot install it on other computers. Otherwise, use the installer on the DVD or downloaded disc image. Register each installation with one of the additional serial numbers received with your original purchase.

  • Want to put URLs into a custom field in the requirements

    I tried to put some code into a custom field in Empirix eManager. I was trying to add a URL to the requirement where the person could see more information. Specifically, we have use-cases online and a mockup of the final product to be developed. I wanted to put a mockup URL and use-case URL for each of the requirements where appropriate to help the developers further understand their task.
    So, I did added something like this into the custom field when creating the test case:
    View Textbook Use Case
    Unfortunately the javascript didn't execute because the eManager application put the whole command in as a string. What displayed is exactly what you see above. I'm sure this is done for security reasons so that cross-sight scripting is protected against. However, I'm not trying to do anything suspect -- just trying to link things together.
    So I went to the database for our project in eManager. I could bypass the security coding that disallows code to be placed into the field by adding it at the database level. However, when I got there it became evident that I didn't know the datamodel well enough to successfully add a field value there without possibly causing some problems. In the past I've only queried the database and not any modifications.
    Can someone tell me how a custom field value is inserting into the database? Which tables does it need to be added to to maintain referential integrity? Or alternatively, do you have a document with the schema outlined? Are there any important stored procedures we'd be missing if going directly at the database. Can anybody advise me?

    Hello Gandalf,
    If you created a customer field in OXK3, I am afraid that the customer defined field created is only
    available on G/L account line items but not Customer or Vendor line items(The field is not available on SAPMF05A screens 301 and 302).But it is possible to use it in fast entry screens SAPMF05A 8xxx (see note 2596).
    Best Regards,
    Gladys xing

  • Wants To Put Songs In a Particular Order

    I've subscribed to spotify in order to build my playlists for my upcoming wedding.
    Though it doesn't matter what order the songs are in for cocktail hour, I have a DJ mentality and want to put songs into a good organized flow for the reception. Is there a way to do this?
    Thanks for any and all help
    -Melanie

    Hello:
    Yes you should be able to do this. Just create your playlists, and add the tracks you want and put them in the play order you want. You can do this by dragging each track up or down the playlist order listing you wish for the track to be played in the order you want, after those tracks have been added to the playlists of course. Just make sure you do not click on any of the columns in the playlists as that reorders the track listing accordingly to whichever column you click on. You probable will want to double check these playlists a day or so before the wedding, as the content gets updated daily, so any content not available before the wedding will be unplayable unless you download it previously before the wedding. If you have a permium account, what you can do once you have the playlists set up how you want, with the music you want, and the order I would download those playlists for offline use, as you can keep the music for up to 30 days without a device app resync to update the music licenses. Just make sure before you download the playlists for offline use, you select in the app Preferences for High Quality streaming so they are downloaded in the higher quality when you set the playlists for offline use.
    You can set up a test playlist and do the offline listening option in the high quality streaming to see how it will work when you use the device in offline mode without an Internet connection. A broken stream due to Internet issues could put a damper on things with songs having problems streaming over the internet. When you are ready to get the proper playlists downloaded for offline mode for the wedding, just put the test playlist back to online mode, and set the wedding playlists to offline so they can start the downloading procedure. The switching playlists back to online and offline ensures you stay within the 3,333 track download limit, but you should be fine for a wedding though unless it is going to go on for a week. :-)

  • Want to put music on Dad's Iphone not sure how much stuff will be deleted

    I wanted to put music on my dads Iphone for his birthday, but since it is my itunes and not his, it will "clear" his iphone....now this is his very impoortant work phone and so I do not want to delete all of his emails and calendar and contacts and all of the other stuff like that from his iphone...so exactly how much will itunes delete when it clears his ipone?????????

    if the iPhone is setup to connect to your computer (which is not one he uses), everything will be cleared. in order to put content on his iPhone, you will have to connect it to the computer he has it already setup with. iPhone's can only be connected to 1 iTunes library, and each computer is a different 'library'.

  • I want to put my MaxiYatzy game out on the Internet!

    I have made a maxiyatzy game and I want to publish on the Internet. It is a multiplayer game so I want to put it on a server so people can connect to the game and play against each other.
    Can anyone give me some clues on how to do this in a relative easy way.
    -superolaf-

    Actually, XP is older than Snow Leopard and will install on a Mac via Boot Camp.
    So are numerous flavors of Linux.
    While Kurt's statement is true for Mac OS, Boot Camp, and several virtualization engines offer more options*:
    http://www.macmaps.com/macosxnative.html#WINTEL
    And as I say, you can run older applications, as long as they support Rosetta, and don't do anything that Snow Leopard doesn't like in terms of drivers. That's why I posted my FAQ*:
    http://www.macmaps.com/upgradefaq.html
    As you may find some of your older applications have been tested with Snow Leopard, and will still work.
    - * Links to my pages may give me compensation.

  • Want to put 2 pages on one sheet

    Windows Adobe Acrobat 7.0 Professional
    I have copied a camera manual as a .pdf file. The pages are small enough that I want to put two pages on one 8 1/2 x 11 sheet. When I have only one page per sheet, the image on the screen and on the printed page are full size. I can get two pages on one sheet: HOWEVER,the size of each printed page shrinks. The print is small and very hard to read, both on the screen and on the printed page.
    I am new to Acrobat and there is probably an easy solution. I have tried a number of things with no success.
    How do I keep each page full size when merging two pages?
    _/\_ Dean

    Not necessarily the cleanest, but you can print to a new PDF file. In the printer properties, select the page size, and multi-up option. You might also find that on the pdf printer menu (at least I have that on my AA8.1.2). You may still have to select the paper size, since it is different from the original.

  • Music that I want to put on my Iphone 4

    I am trying to sync the music on my laptop to the iphone, however when I look to sync I get:
    The IPhone is synced with another I tunes library. Do you want to erase this iphone and sync with this iTunes library?
    I dont want to erase the details on my iphone, I only want to put music on it!!
    Please help !!

    "But why is this like this?"
    Becasue Apple made it this way.  Like most companies, Apple is not in the habiut of eexplaining each and every product decision and discussing these decisions is not permitted here.
    "Why does is work on the iPod?"
    Becasue Apple made it this way.  Like most companies, Apple is not in the habiut of eexplaining each and every product decision and discussing these decisions is not permitted here.

  • How do I put each element of an array of 30 elements to each slot in a cluster?

    There are 30 columns in a table in an access db file.
    Currently, I have an array of 30 floating point numbers.
    I want to know how to put each of array elements in each slot in a cluster of 30 slots with DB Tools Insert Data VI.

    You can use the array to cluster primitive
    Rodéric L
    Certified LabVIEW Architect

  • I have 4 diffrent color puzzle pieces and I want to put them together in one design how would I do it?

    I have 4 different color puzzle pieces and I want to put them together in one design how would I do it?

    More info please.
    Do you have the 4 puzzle pieces in 4 separate files? If that is the case...
    1. Create a blank canvas large enough to fit the completed puzzle.
    2. Open one of the piece files.
    3. Select just the piece (minus the background).
    4. Copy the selection to the clipboard (Edit > Copy).
    5. Activate the canvas and paste from the clipboard (Edit > Paste). The piece will be placed on a new layer with transparent background.
    6. Do the same with the other pieces.
    7. Now you can rotate/move the pieces as necessary to fit them together.
    If the 4 pieces originally are in the same file you can do similar: select each piece and copy/paste, etc.
    If this is not your scenario please clarify.

Maybe you are looking for