Simple But tricky for me

Hi All
I have a table like below
application_id | Page_name | Group_name | Question_name | Data
123 App1_Fina_1 Lia_Loan1 Type PersonalLoan
123 App1_Fina_2 Lia_Loan2 Payment 2000
124 App1_Fina_1 Lia_Loan1 AmmountBorrow 3000
124 App1_Fina_2 Lia_Loan3 AmmountPaid 1500
here my each application may have differnet question names and they are aplication based. can I have the extract as below
appllication_id | Type | Payment | AmmountBorrow | AmmountPaid
123 PersonalLoan 2000
124 3000 1500
can I have this kind of extract in select statement?

Hi !
I was typing this .. so i'm posting it ..
SQL>
SQL> with tab as (
  2  select 123 application_id, 'App1_Fina_1' Page_name, 'Lia_Loan1' Group_name, 'Type' Question_nam
e,
  3   'PersonalLoan' Data from dual union all
  4  select 123, 'App1_Fina_2', 'Lia_Loan2', 'Payment', '2000' from dual union all
  5  select 124, 'App1_Fina_1', 'Lia_Loan1', 'AmmountBorrow', '3000' from dual union all
  6  select 124, 'App1_Fina_2', 'Lia_Loan3', 'AmmountPaid', '1500' from dual )
  7  select application_id,
  8         max(decode(question_name,'Type',data)) Type,
  9         max(decode(question_name,'Payment',data)) Payment,
10         max(decode(question_name,'AmmountBorrow',data)) AmountBorrow,
11         max(decode(question_name,'AmmountPaid',data)) AmountPaid
12    from tab
13   group by application_id
14  /
APPLICATION_ID TYPE         PAYMENT      AMOUNTBORROW AMOUNTPAID
           123 PersonalLoan 2000
           124                           3000         1500
SQL> T

Similar Messages

  • BPS Layout formatting looks simple but tricky - Help

    Hi ,
    Created a layout with the below charaterstics and Month1 give the qty for that month. It works great but
    1)  When there is no data i.e no qty for that month , it suppose to be blank but it gives the below out put
    Currenlty :
    Material     mplant  DType month(qty)
    552477     552477     
    552477     552477     
    552477     552477     
    552477     552477     
    552477     552477     
    552477     552477     
    552477     552477     
    552477     552477     
    552477     552477     
    Desired :
    Material     mplant  DType month(qty)
    2) When there is data i.e qty for that month , it suppose to give two records but it gives the below out put
         i.e values and some more lines with material but no qty . Actually there is data for only 2 rows.
    Currently :
    Material     mplant  DType month(qty)
    552477     552477  A           10
    552477     552477  B           20
    552477     552477     
    552477     552477     
    552477     552477     
    552477     552477     
    552477     552477     
    552477     552477     
    552477     552477     
    Desired :
    Material     mplant  DType month(qty)
    552477     552477  A           10
    552477     552477  B           20
    I created a macro to delete the duplicate when the number repeats but that doesnot solve because when ever I want to read the total number of rows in another macro it shows wrong total number of line because of these repeating material numbers .
    How can I get the desired output ? is there any simple setting in the layout or XL with out using a complicated macros etc.........
    Using sem bw 320
    Please help . Thank you inadvance.
    Raju
    Edited by: venkat bhuaptiraju on Jan 8, 2008 6:01 PM
    Edited by: venkat bhuaptiraju on Jan 8, 2008 6:04 PM
    Edited by: venkat bhuaptiraju on Jan 8, 2008 6:07 PM

    Thank you all for your reply very very useful tips. This is getting some how very interesting and frustating at the same time.
    Bindu : I used the similar code that you gave me that works perfect it removes the rows data that I do not need but retains the format for exmple the STYLES that I applied for the data and header data
    Arya : The cube has the 2 records and my below msg will clarify that the issue is not with this
    Aby : Yes even, I do not understand why the those 2 columns data with no key figure values
    Jeoffrey :
    - I checked 3- : Layout set to From Transaction data
    - I checked 4- restrictions (variables?)  may not be because ...see... my below observations........
    - I checked 5- ...may not be because ...see... my below observations........ BUT I am going through they
      are very interesting.
    Sappie :
    ...may not be because even for one material ...see... my below observations........
    More Facts :  Sorry I would have given this in the beginning.
    - I am running an adhoc package that contains an existing layout  which works perfect
    - When I copy layout and remove all the styles and macros still it works great
    - BUT when I create a new layout with exactly same setting NO CHANGE and run the SAME adhoc   package I get those material numbers repeating .........
    I have both the layouts in my PC and compared but did not see any difference , Can you please look at it if you think there could be something there ? Please send me you email I can email you.
    Again thank you for looking in to it, your replies are very logical.
    Regards,
    Raju

  • ARRAY - simple (but tricky?)

    Hi, I have a simple querstion regarding Array intialization.
    I know that JAVA has the functionality to declare and initialize array in one line:
    String stringarray[] = { "string1","string2","string3"};
    Now my question is, why separating this kind of initialization from its declaration is not allowed?
    String stringarray[];
    stringarray = { "string1","string2","string3"};
    Thanks

    Okay, let me try again.
    In order to create an array, the compiler needs to know what type of array to create. If I have code like this:
    Object[] o;
    o = { new Long(1), new Long(2) };The compiler could create either an Object array, a Number array, or a Long array, and the code would run fine. Except that somewhere along the line your code might have expected something different and a class-cast exception would get thrown.
    So, to keep it simple, the rule seems to be that arrays can only be created when it is explicit what type is going to be created - in other words when there is no chance for ambiguity. The following lines don't have any ambiguity:
    // a variable declaration gives the explicit type to use
    Object[] o = { new Long(1), new Long(2) };
    Number[] n;
    // the "new" operator explicitly tells what type to use
    n = new Number[] { new Long(1), new Long(2) };SO, although the following seems pretty obvious to a human viewer:
    Object[] o = { new Long(1), new Long(2) };
    // versus
    Object[] o;
       // some code here ..
    o = { new Long(1), new Long(2) };The second part introduces the possibilty of ambiguity, because the array creation isn't part of a statement that explicitly tells the compiler what type of array to create. Take for example:
    Number[] n = { new Long(0), new Long(1)};
    Object[] o;
    o = n;Which shows how an array of one type can be assigned to another that is part of the heirarchy.
    As I mentioned above, I agree that this should be allowed, but I believe it was left out of the language because of the issues I've mentioned.

  • Simple but not for me.. Formatting question

    Is there a way to change to format from the Imovie format DV-NTSC to any of these 3g2, 3gp, 3gp2, 3gpp, 3p, asf, avi, divx, divx, dv, dvx, flv, gif, moov, mov, mp4, mpeg4, mpg4, mpe, mpeg, mpg, qt, swf, wmv, xvid. I have looked around and have not grasped the full use of anything computer related> thanks for any help Sarah

    goto share
    choose Quicktime
    click expert settings
    in the following dialog, you get some of your mentioned codecs in the drop down menu....
    some of your mentioned codecs are not natively supported by Quicktime tecnology.. but plug-ins add some features, as divx, wmv (www.flip4mac.com) etc...
    for some codecs you need thirs party apps, e.g. swf/flv is created by Adobe Flash, ffmpeg etc...
    the codecs depends much on your goal... to what purpose you need a converted file? e.g. 3gp is for use on mobiles...
    in a few days (weeks?) a new all-in-one-plug in will raise its head, called PERIAN.. not available (in public) yet... I'll keep you informed here...

  • FB03 problem, looks simple but tricky

    Hi all,
    Go to FB03, click document list, give company code, fiscal year, execute.
    It shows a list of docs.
    Go to change layout and select “reference” from column set and add to displayed columns. Go to “display” tab and select “print out with date, title and page number”.
    Select “user specific” and “default setting” check boxes and save the layout.
    Come out the screen and execute FB03 again and select the lay out which you saved and go to change layout and then to the display tab. There you will find the “print out with date, title and page number” <b>unchecked</b>. (But it was actually checked and saved).
    Please explain why this is happening and suggest me solution.
    Thanks in advance.

    Hi Eric,
    The user says:
    This issue first came up after the upgrade when the date printed stopped appearing on his FB03 reports.  We found the check box on the display tab of the change layout screen and it properly caused the data to appear at the top of the report.  However, when we tried to save that setting with the layout, we were not successful.
    he says when he could do it befor, why not now?
    Please help.

  • Concatenate " Simple but tricky question "

    Hey guys
    How are u, this looked like easy problem. However, I tried so many things. I want to add a space in front of character. This is 2-character lengths field.
    When I was executing this command, it is not adding up space.
    If I am something wrong correct me
    Here is the code
    DATA:  i type i ,ONE(1) VALUE ' ',FINAL(2) ,TWO(1).
    i = sTRLEN( t_record-trfgr ). “ first it shows 1 for H
    if i LE '1'.
    concatenate  TWO ONE  '.' into final.
    CLEAR:I.
    i = sTRLEN( final ). “ its still say 1
    Thanks

    Saquib,
      <b>Concatenate   '    '
                    t_record-trfgr
             into
             final.</b>
      Following should also work:
    <b> Concatenate  
             space
             t_record-trfgr
             into
             final.</b>
    Thanks
    Kam
    Note: Allot points for all worthful postings

  • Can someone please tell me a simple but effective method for burning a slideshow to DVD? Now that the connection between iPhoto and iDVD no longer exists, I can't figure out a way to get there with an acceptable quality result.

    Can someone please tell me a simple but effective method for burning a slideshow to DVD? Now that the connection between iPhoto and iDVD no longer exists, I can't figure out a way to get there with an acceptable quality result.

    Export the slideshow out of iPhoto as a QT movie file via the Export button in the lower toolbar.  Select Size = Medium or Large.
    Open iDVD, select a theme and drag the exported QT movie file into the open iDVD window being careful to avoid any drop zones.
    Follow this workflow to help assure the best qualty video DVD:
    Once you have the project as you want it save it as a disk image via the File ➙ Save as Disk Image  menu option. This will separate the encoding process from the burn process. 
    To check the encoding mount the disk image, launch DVD Player and play it.  If it plays OK with DVD Player the encoding is good.
    Then burn to disk with Disk Utility or Toast at the slowest speed available (2x-4x) to assure the best burn quality.  Always use top quality media:  Verbatim, Maxell or Taiyo Yuden DVD-R are the most recommended in these forums.
    If iDVD was not preinstalled on your Mac you'll have to obtain it by purchasing a copy of the iLife 09 disk from a 3rd party retailier like Amazon.com: ilife 09: Software or eBay.com.  Why, because iDVD (and iWeb) was discontinued by Apple over a year ago. 
    Why iLife 09 instead of 11?
    If you have to purchase an iLife disc in order to obtain the iDVD application remember that the iLife 11 disc only provides  themes from iDVD 5-7.  The Software Update no longer installs the earlier themes when starting from the iLIfe 11 disk nor do any of the iDVD 7 updaters available from the Apple Downloads website contain them. 
    Currently the only sure fire way to get all themes is to start with the iLife 09 disc:
    This shows the iDVD contents in the iLife 09 disc via Pacifist:
    You then can upgrade from iDVD 7.0.3 to iDVD 7.1.2 via the updaters at the Apple Downloads webpage.
    OT

  • My iPhone's screen black, it does not work and I tied to hold press power and home press but it did not work? By the way for seconds I saw iTunes cabal  simple, but unfortunately, I do not have backup for my iPhone in my mac, so how can I restore my iphon

    My iPhone's screen black, it does not work and I tied to hold press power and home press but it did not work? By the way for seconds I saw iTunes cabal  simple, but unfortunately, I do not have backup for my iPhone in my mac, so how can I restore my iphone without loss my date?
    Thanks

    lbryan1987 wrote:
    I dont want the button problem solved i need to know how to restore the phone without using that button or going into settings
    You don't in the condition it's in. You will either have to get the phone replaced by Apple or pay a 3rd party to repair it.
    there seriously should be more than two ways to solve this other wise apple is useless and we will never buy another apple product.
    Seriously? It's physically broken!

  • Im trying to make a simple 360 rotation for a 3d logo in CC 2014 but when i tried to create the 1st key frame the image when out axis

    im trying to make a simple 360 rotation for a 3d logo in CC 2014 but when i tried to create the 1st key frame the image when out axis

    I find that if you have multiple 3d object  they must be merged into a single 3d layer their positions reset to align to the same axises then sized and positioned along them. The layer should then be able to be animated well around an axis like the y axis. Here a Sphere, Cylinder and ring. http://www.mouseprints.net/old/dpr/McAssey-CC.mp4

  • Simple but reliable small office setup

    Hi group,
    I need some advice on setting up a simple but reliable small office wireless network. Up until now, we had a consumer AP combined with wired connections. However, we're moving to a new office where it's difficult to implement a wired network and we decided to implement a good quality wireless network.
    So, I was looking into business quality wireless AP's and it looks as if the Aironet 1600 is an interesting option. However, I'm not a (wireless) network specialist and have no knowledge of controlled AP's.
    The office is (only) 278 square meters (24 x 11.6), divided in two main areas by a supporting wall with two large doorways. I would like to keep the setup costs to a minimum, ideally using only 1 AP. This might mean placing the AP on the ceiling near the dividing wall (which is roughly in the middle), or on the wall itself.
    We need to support fast wireless connections from 15 laptop computers now, and up to 25 in the near future. Also, we'd like to support 15-25 mobile devices, i.e. tablets or smart phones.
    I've found some info on the differences between the AIR-CAP1602 and AIR-SAP1602 models, as well as the Internal and External antenna versions. It seems to me we could use the Standalone (SAP1602) model. However, I don't have enough knowledge to determine if the Aironet 1600 is actually appropriate for our requirements and if yes, which model.
    I would very much appreciate your advice!

    A 1600 would work or even a 2600. I prefer the 2600/3600 though but cost is your concern. I would also place the AP on the ceiling but belies the ceiling maybe in the middle if possible. Don't place the AP above the ceiling because you will loose coverage. Internal antennas are fine and just to note, rule of thumb is 25 users per AP so just in case you need more throughput, maybe using two separated by 3-5 meters would help also. If the 1600's are the choice for you then look at having one or two APs.
    Sent from Cisco Technical Support iPhone App

  • How do I save to mixdown in mono, 0 db reduction in volume, in 64 bps mp3? Sounds simple, but none of the support staff has been able to do it.

    How do I save to mixdown in mono, 0 db reduction in volume, (Same volume level as in the files-no -3db reduction) in 64 bps mp3? Sounds simple, but none of the support staff has been able to do it.

    Several solutions to this problem.  I believe we may have discussed this over the support e-mail, but I'll share it again here so that it can help others as well.
    First, as I discussed in the e-mail, Audition defaults to support Pan Law which prevents content mixed to the center of a Stereo field from being louder than the same content panned far left or right.  This provides a -3dB drop to center content by default, but you can disable this completely by entering Preferences > Multitrack and setting the Default Panning Mode to Left/Right Cut (Logarithmic)
    Now, when you create a new Multitrack session, there is an option to specify the Master channelization.  Here, you can select Mono, Stereo, or 5.1 and this will be the default channelization mode for a basic mixdown operation regardless of your clip content, though can be overridden when exporting a session mixdown.
    Next, if you just choose the menu item Multitrack > Mixdown Session to New File... it will always default to the Master channelization.  This command does not write to disk, it is a preview or pre-processing step.  If you wish to export your multitrack session mixdown directly to disk, in your desired channelization and file format, please use the command File > Export > Multitrack Mixdown > Entire Session...  You will then have the complete set of output options, including the option to output at any channelization you like and the format you prefer.
    Here, I've disabled the default 5.1 output and selected a Mono mixdown instead.
    I've now changed the file format settings as well to MP3, 64K.
    With most of these configuration details, you should only need to set them once and these will remain the defaults for any subsequent projects, unless modified again.  The Export Multitrack Mixdown dialog will reset the Mixdown options to match the default output, and the MP3 settings may update to reflect the kBps setting nearest your session sample rate.

  • HT1766 I'm trying to update my iphone 4.  I've put everything from the pho          ne into itunes for backup.  I can see that the updated OS is on the phone, but only for a second until the phone asks me again how I want to restore my stuff.  three times

    I'm updating my iphone 4.  I can see that the update has been installed on the phone, but only for a second before it asks me to restore/back up from iCloud or iTunes, which I've done THREE times.  It has to be something really simple...please HELP

    Restore as a NEW device to test. If this solves it, that means there is some corruption in your backup file, or maybe it's one of your apps causing the trouble. If the problem is still there, you should take it to the Genius Bar at an Apple Store for evaluation.

  • The cover art is missing on my playlists songs, but not for songs in the cloud on my iphone 5s

    Ever since I updated to iOS 8, not 8.0.2 (still haven't done that update), the artwork on my music is missing for any songs that are on my phone and in my playlists. My music that is stored in the cloud still has its cover art. All of the songs still play, but I really want the artwork back.

    I am not sure how many of you had to re-os, power off multiple times, or restore. So, try these and hit 'like'  and/or 'This solved my question' or 'This helped me', if it works as explained below.
    What you do on the iTunes is what appears on iPhone. Artwork missing in iPhone is unlikely, if iTunes on PC has them. I am going to be very simple in writing, for everyone to understand as clear as possible. Follow the below steps -
    1. Go to iTunes (On PC). Right Click and select 'Get Info'.
    2. If any error message gets displayed there, try to play it once or locate that song manually, if you have recently changed the location.
    3. Select 'Artwork' tab and ensure the artwork is still there.
    4. (Here is the funny part) - Go to 'Info' tab (the tab between 'Summary' and 'Video')
    5. Ensure for any particular song, the following values are always captured -
    a) Name -
    b) Artist -
    c) Album - (Most of us tend to delete this album data, to avoid seeing duplicate of the name or artist)
        Eg. On my iTunes (PC), a song is categorized -
    a) Name - Bad Day (Ladies and Gents - I did not purposely select this song )
    b) Artist - Daniel Powter
    c) Album - Bad Day
    Try the above simple step and see if it works. If not, reply back to me and mention the exact error message. Can try to help.

  • After downloading a pdf from a website, how can I view the file in Safari 6.0.4 (just as I can in Safari 5.0.6)?  I bet that it's simple, but I've missed something, somewhere, and a solution will be greatly appreciated.

    After downloading a pdf from a website, how can I view the file in Safari 6.0.4 (just as I can in Safari 5.0.6)?  I bet that it's simple, but I've missed something, somewhere, and a solution will be greatly appreciated.

    Hello Kirk,
    Thank's for your efforts, and I just wish that this was the solution.  Unfortunately, it isn't because, after double-clicking on the pdf in the website, it simply "opens" in another Safari window as a black screen - the pdf is there, somewhere, but not visible (either as an icon, or as a document). 
    When I right-click in the black Safari window, where the file is supposed to be, the only option available to display the file is to "Open file in Internet Explorer" (which is not what I want to do).  Other options include saving or printing the pdf, which I don't want until I've confirmed that it's the form that I want.  The same options are offered if I right-click on the file icon in the website.
    Any other suggestions, please?

  • Simple animation software for Arch?

    Can anyone suggest a simple animation program for Linux; something similar to AnimationShop for windows.  I know there's gimp-GAP, but that seems to be fairly advanced for my purposes.  I just want to be able to string together images into .gif or video, perhaps with an 'onion layer' feature so you can see the previous frame transparently; that sort of thing.
    I use gnome, so preferably something for GTK, or at least if it's KDE, that depends only on QT and not KDE packages.
    Any ideas?
    Thanks.
    Fishonadish

    skottish wrote:You don't actually need GAP to do animated Gifs in Gimp. All you need to do is add all the frames that you want as layers in one image, then save as Gif. Gimp will ask you if you want to flatten the image or make an animation out of it. If you choose animation, it will ask you for a frame rate.
    Thanks.  I realised this eventually and got it done that way.
    Still, out of curiosity are there any 'film-strip' type animation programs out there?
    Fishonadish

Maybe you are looking for