Need Help with Address Display

I need help with APEX.
Here's my situation:
I have a report that displays brief employee information. Among the information displayed is the Address. Right now, it's display as:
Mr X
Employee Id
Accounting Department
Address 1
Mr X
Employee Id
Accounting Department
Address 2
I would like it to display
Mr X
Employee Id
Accounting Department
Address 1
Address 2
1) I have thought of using the Break functionality; however, the function only allows break at column 1, 2, 3. As you can see Address starts at column 4. Also, Address has a few columns; Address Line 1, Address Line 2, City, State, Zipcode.
2) Stragg functions - I'm not sure how to implement it since it has more than 1 columns.
Any ideas?
Thanks in advance
Andrew

The example I gave you, using analytic functions is a simple one.
Now, you are saying:
1. some of the employees may have two adresses?
2. if this is the case, your employee appears in the report twice?
3. you don't want his name, employee id and accounting department to appear twice?
4. only his address has to be displayed?
If the answer to all the questions is yes, this kind of query will help you. I repeat:
SELECT CASE
          WHEN LAG (employee_id) OVER (ORDER BY employee_id) =
                                                    employee_id
             THEN NULL
          ELSE employee_name
       END employee_name,
       CASE
          WHEN LAG (employee_id) OVER (ORDER BY employee_id) =
                                                      employee_id
             THEN NULL
          ELSE employee_id
       END employee_id,
       CASE
          WHEN LAG (employee_id) OVER (ORDER BY employee_id) =
                                            employee_id
             THEN NULL
          ELSE accounting_department
       END accounting_department,
       street, postal_code, city, state, country
  FROM your_employees_table;Give it a try.
Denes Kubicek

Similar Messages

  • Need help with address book

    Can someone please tell me how to save my address book on my pearl to my sim card? I just got a new phone and need my contacts on my sim card!!!
    Thanks
    cece

    Scroll and enter to 'address book' icon.
    Press Menu button (the one to the left of the trackball with the little dots on it)
    A menu should come up, scroll to 'Sim Phone Book' and there you have it..
    If your issue is resolved, put a checkmark in the green box that contains the resolution.
    OR
    If it was just/or also really helpful - Give it a Kudos.. Go on Mate.. Help the rest of the clueless blackberry user world find their answer too..
    ~Gday from Down Under~

  • Need help with page display URGENTLY!!!

    Hey,
    I'm trying to start up my new iPod nano. I've got the songs for it, but the page won't display all the way. Where it says the licence of agreement it won't show the o.k. button and before that it doesn't say the register button either. It doesn't do this on my internet. Or on anything else. So now I can't put anything on my iPod because I can't get it started up.
    Please help! I really need to put some songs on my new iPod!!!!
    Please and thank you.
    xKeegaNx

    Try increasing the resolution of your computer's screen (right-click on the desktop -> Properties - Settings; you want 1024x768 or higher) and perhaps then you'll be able to see all the buttons and controls in iTunes.

  • Need Help with external display...

    First, let me explain what is happening. I'm using an external 19" Gateway LCD display with my Powerbook G4 1.25Ghz. Via DVI-D input. Everthing from connection to correct resolution is working fine. But the moment I change the refresh rate from 75Hz to 60Hz, the monitor starts to jitter or seems to have a nervous condition. The problem corrects itself only after a restart but I can change from 60Hz to 75Hz with no problem.
    Now, from my understanding refresh rate has no bearing on LCD monitors, is this correct? and why would the monitors manual say that the native refresh rate is 60Hz. So, I'm concerned if running the monitor at 75Hz will degrade or hurt it. And once again why does the monitor image shake when going from 75Hz to 60Hz but not vice versa.
    Any and all response with your experience is greatly appreciated.
    David

    You shouldn't need to adjust the refresh rate on an LCD display. Just leave it at it's default.

  • Need help with Firefox display issue on one page of site

    I have a page that W3C validates, displays properly in IE and Netscape, but does not display properly in Firefox. The issue is with a style class applied to the inner centered table. class= "vert_table" This class works on all of the other pages in the site, but not in this one.
    The page:
    http://www.redshift.com/~lorac/sdy-46-49.html
    The issue:
    < table class="vert_table" width="760" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#f1ebe8" >
    The vertical rule does not display, and further down the page a dark left-right border appears starting with this text.
    my mother, when I was wasting my life away not knowing who I was,
    and ends with:
    Mojin: (hugging him) I don't expect you to love me. I just want you to live, that's all.
    I have been looking through this code for two days, searching for any offending omission in code or redundancy that would break the page. I've searched for missing div tags but none are apparent to me. I'm hoping someone with fresh eyes can spot it right away.
    It's odd that the page validates but Firefox cannot display it properly.
    Sample page of code working properly:
    http://www.redshift.com/~lorac/sdy-41-45.html
    Any help is appreciated.

    Hi Jim, thanks for the reply. Your suggestions sound interesting but I'd like to figure out why this particular page doesn't work when all of the others do. I'm sure it's just a little code thing that I'm overlooking.
    I could revert back to a saved page, but I updated text and images on this page before the verticle border broke, so I don't want to lose those edits. And that is why I'd like to fix this one instead of redesigning the page.
    BTW, I forgot to mention in my first post, GoLive CS, W2K.

  • Soldier in Afghanistan needs help with MBPro display problem

    My son is in the Army Infantry (Airborne). His unit is currently stationed in southern Afghanistan on a small Combat Outpost (COP), where he will be for about 8 more months. He has had a MBPro since mid-2008, and his AppleCare Extended warranty is still in affect. This is his description of the state of his MBPro:
    "hey dad, an update. I got the mac to boot using PRM reset. Now, it makes the boot noise and the keyboard lights up but the LCD screen still wont come up. From my online research it seems my nvidia graphics card has gone out. Something which can be repaired cheaply at an apple store. However, i have no way to mail back my computer and the repair involves tearing apart the logic board to replace the video card."
    I called Apple and was told Apple must receive the laptop stateside. As my son said, it is impossible for him, a lowly Specialist, to ship anything home. The guys in his unit are resourceful, and they do have the tools needed to attempt repairs (spuds, etc.). However, we would have to get a replacement logic board to him (at our expense), and we've looked at www.ifixit.com and found the tutorial for replacing a logic board. I personally would never attempt such a repair, even though I have myself replaced a hard drive in my PB and the power port in my wife's laptop. The logic board is WAY under everything else, and the chances of a screw-up are great. And, of course, the Apple warranty would be voided.
    Does anyone have enough experience with logic board repairs to say they SHOULD attempt the repair on site? OR, is there anyone in the military who can suggest a way to actually get this Apple "brick" stateside for repair under the warranty?

    To be fair to Apple, their warranty does state that the need for a repair/replacement must be shown to be necessary to their satisfaction. That means they have to have the MBPro in their hands to examine it. At this time, we cannot prove that the Nvidia card on the LB has failed. Over the 20+ years I've used Apple computers, they've been very good at honoring their warranties. It's not Apple's fault that my son is in a rather faraway place. How many other high tech companies do you know of who have coverage arrangements in this kind of situation? We're not expecting Apple to do anything more for us right now. If we can get the MBPro stateside, I'm sure Apple will treat us well.
    As for a cheap PC laptop, well, that probably wouldn't be a good solution, either. My son is a gamer and uses Windows on the MBPro only for games not available under OS X. The MBPro is an OK, but not great, PC game laptop. However, a cheap PC laptop would probably be WORSE for gaming, so it wouldn't be a good buy. An expensive gamer PC is not an option, as my son hates Windows!
    So, there's our conundrum. Right now, it looks like our best solution would be to get a used MBPro (non-Nvidia!), ship it (hoping it gets there in one piece), then swap the memory from the broken machine into the replacement. This will not void the Extended Warranty. Then my son can re-install his data (and Windows) from the external drive that he uses for Time Machine. That's the current idea, anyway.
    All-in-all, while this is a complicated problem with no easy solution, it's not that big a deal, relative to everything that's going on in my son's life.
    Thanks for your suggestions!

  • Need help with Apple Display 20" going black

    There support and mac comrades,
    I was wondering if anyone has this following problem and had it fixed.
    I am currently using double 20" Apple display on a Mac Pro, and suddenly one of the screen start to turn black and get back to normal after few seconds. A week later, the screen goes totally black and won't turn on anymore. However, after shutting down the computer and removing and re-pluging all cables, the screen comes back alive for couple hours. In the beginning I taught that it was the cables so I swap the cable of the two screens around but the same screen is having the same problem. Then I start to think that it is because of the graphic cards, so I tried on another Power G5 and same problem occur after couple hours.
    Now I know, that this screen is defect and not caused by cables or graphic cards, is there any troubleshooting for this kind of problem?
    Please help!
    Sincerly,
    Jean

    The display is brighter in the upper half then the lower one.
    This indicates the lower back light is out, or a component called an inverter has failed, or a connector to these things has failed, and the short/short/long flashing power button is a signal telling you that.  There is no way to stop the flashing unless you fix the failed component.
    I do not recommend attempting fixing this problem yourself.  Inverters can have relatively high voltage and could be dangerous if you don't know what you are doing.

  • Need help with new display screen

    I'm using premier pro and want to get a large display screen, I've heard a lot about the new Apple 24" LCD and the Dell 24" UltraSharp 2408WFP...anything else out there thats as good?? Pros? Cons?
    Thanks!
    Nick

    I found this happened to my phone too after the ios7 updates. Solved by  turning off auto-brightness. Since then all has been fine, just have to  manually brighten/dim screen when I need to

  • Need help with conditional display

    I found a older thread (704012) that explains how to conditionally display a link using style.  Which is what I want to do.  The part I'm having trouble with is that part of the instructions say to put
    class="row_has_values_#HAS_VALUES#"
    in the Link Attributes which I have done.  I also have a column in the report called HAS_VALUES and I'm properly populating it in my select.  I know because I left it displayed while I'm testing.  I can run the report and I have Y's and N's showing up in that column but the conditional part does not work.  When I look at the page source (below) I see that in the html the #HAS_VALUES# has not been replaced by the actual Y or N.  I think that's where I'm having trouble?  I think it might work if there was a Y or N in that but I don't understand why that didn't happen.
    <tr class="odd"><td headers="LINK"><a href="f?p=125:3:12628966088981::NO::P3_PROGRAM_KEY:2" class="row_has_values_#HAS_VALUES#"><img src="/i/e2.gif"  border="0"></a></td><td  align="left"

    LawrenceJ wrote:
    I've continued to snoop around and see lots of posts on conditional display in reports.  Common desire I guess.  I saw some stuff that I interpreted to suggest that what I'm trying to do may not work in interactive reports, only in classic reports.  Does that sound familiar?
    That would certainly apply to anything template-related. However there have been enhancements to IRs (like adding HTML Expressions) that might supersede information in older posts. If you provide a link to the sources you've found and the APEX version you're using someone will be able to confirm whether that information is relevant.
    Many other posts on doing things conditionally in reports seemed to lean towards "selecting" the html based on data values and then just letting that get put in the report column.  That looks promising but sure is a bit ugly.  I've very little apex experience but lots of mod pl/sql and that sort of solution was pretty common when I did stuff with it.  I saw a little suggesting using templates as a solution but I'll confess to not understanding it at all.
    As I pointed out in the original thread, if the conditional display of the link is in any way security related then CSS or JS/jQuery methods are not acceptable. If the user is not supposed to be able to click the link or see any data contained in it, then you have to use a method that ensures that the link element never reaches the browser.
    Hard-coding the link HTML in the report query is the common approach, but is as you say a bit ugly. Using a custom report template (my favourite APEX subject) enables clean separation of the report query, conditional logic and HTML structure. If you know HTML then you're advised to get familiar with using templates in APEX. You'll find this a major advance on the PL/SQL web toolkit. What is it that you're not understanding about using templates?

  • Need help with address book and forewarding mail

    a box with e mail pops up when I hit foreward. also there is no address list there

    Seriously? This is the third time asking the same question. See your original for the answer and continue any discussion there.https://support.mozilla.org/en-US/questions/1049470

  • New mac user needs help with default display

    hi, i am a new mac user and i accidentally changed the default display. I want to change it back to the default display but it doesnt seem like any of the options in "system preferences" - "display" change it back to the default out of the box display. please point me in the right direction. thank you!

    im talking about the screen resolution. I went under "system preferences" then clicked on "display" and somehow the mouse clicked on another resolution which stretched everything out. so I went threw all of the difference resolutions and nothing seems to be like the default one. am i missing something? thanks

  • Need help with dual display configuration

    I have just connected a HD, widescreen monitor to my Mac tower and am having trouble getting video from FCP to show up on it. It's connected to the mini port and is displaying the same desktop image as my primary monitor but I can't seem to get it to display the video when editing. What am I missing?

    The "mirror" box was already unchecked. The best I could get after trying every conceivable combination was just one frame at a time whenever I stopped playing the timeline. The screen then refreshes to show whatever that last frame is, but it will not play the video, it just displays the very last frame.

  • I need help with Address & datebook

    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

    I have been having a similar problem that just started on my Vista laptop.  I could open the desktop, but only Media and Install appeared.  I tried a lot of things, but nothing worked until just now I right clicked on the icon for the Palm Desktop and selected Run as Administrator.  Then some popup windows asked if I really meant it.   I kept saying that I really, really did.  Finally Desktop opened, and all my data is there!  I am not sure what is magical about running the application as Administrator, but at least my problem seems to be solved.

  • Need help with Address Book---trying to print first names first???

    I am trying to print address labels from the Address Book but the last name keeps coming up first.  Entered correctly using First and Last name boxes.  Also checked the Preferences-General and marked the box to put First names first but no luck.  Am I missing something?

    See the Address Book Preferences/General tab.  Is the the "Sort by" dropdown box set to Last Name?

  • Need help with container display / states

    Greetings!
    I am trying to use states to change the contents of a canvas
    which is the second of two within a tab navigator. Buttons trigger
    functions to change the state and change the selectedIndex of the
    navigator to the second tab.
    The functions work fine if you first view the second tab. If
    you click the buttons before viewing the second tab, the whole
    thing blows up. Heres a link to app:
    http://test.arsandbox.com/player.cfm
    Any insight would be appreciated!
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="initApp();">
    <mx:Script><![CDATA[
    private function initApp():void {
    private function displayDirectory():void {
    switchTab();
    currentState = "stateDirectory";
    private function displayWriter(selectedWriter:String):void {
    currentState = "stateWriter";
    switchTab();
    private function displaySong(selectedSong:String):void {
    currentState = "stateSong";
    switchTab();
    private function switchTab():void {
    ContentTabs.selectedIndex = 1;
    ]]></mx:Script>
    <mx:states>
    <mx:State name="stateDirectory">
    <mx:SetProperty target="{directoryBox}" name="visible"
    value="true"/>
    <mx:SetProperty target="{writerBox}" name="visible"
    value="false"/>
    <mx:SetProperty target="{songBox}" name="visible"
    value="false"/>
    </mx:State>
    <mx:State name="stateWriter">
    <mx:SetProperty target="{directoryBox}" name="visible"
    value="false"/>
    <mx:SetProperty target="{writerBox}" name="visible"
    value="true"/>
    <mx:SetProperty target="{songBox}" name="visible"
    value="false"/>
    </mx:State>
    <mx:State name="stateSong">
    <mx:SetProperty target="{directoryBox}" name="visible"
    value="false"/>
    <mx:SetProperty target="{writerBox}" name="visible"
    value="false"/>
    <mx:SetProperty target="{songBox}" name="visible"
    value="true"/>
    </mx:State>
    </mx:states>
    <mx:Panel id="MainPanel" width="100%" height="100%"
    layout="horizontal" title="Example" horizontalAlign="center"
    verticalAlign="middle" backgroundColor="0xB3C0C6">
    <mx:DividedBox direction="horizontal" width="100%"
    height="100%">
    <mx:VBox width="250" height="100%"
    backgroundColor="#ffffff">
    <mx:Button label="Directory"
    click="displayDirectory();"/>
    <mx:Button label="Writer"
    click="displayWriter('1');"/>
    <mx:Button label="Song" click="displaySong('1');"/>
    </mx:VBox>
    <mx:TabNavigator id="ContentTabs" width="100%"
    height="100%" visible="true">
    <mx:Canvas label="Homepage" width="100%" height="100%"
    horizontalScrollPolicy="off">
    </mx:Canvas>
    <mx:Canvas label="Writers" width="100%" height="100%"
    horizontalScrollPolicy="off">
    <mx:VBox id="directoryBox" width="100%" height="100%"
    visible="true" top="0" left="0">
    <mx:Label text="Directory Box"/>
    </mx:VBox>
    <mx:VBox id="writerBox" width="100%" height="100%"
    visible="false" top="0" left="0">
    <mx:Label text="Writer Box"/>
    </mx:VBox>
    <mx:VBox id="songBox" width="100%" height="100%"
    visible="false" top="0" left="0">
    <mx:Label text="Song Box"/>
    </mx:VBox>
    </mx:Canvas>
    </mx:TabNavigator>
    </mx:DividedBox>
    </mx:Panel>
    </mx:Application>

    The items in the second tab aren't actually created or
    instantiated until they are first viewed. This is a performance
    setting built into Flex. You can however over-ride the setting and
    force all the tab contents to render immediately when the tab
    navigator is created. To do this, you define the creationPolicy on
    the TabNavigator and set the value to "all". Warning, this will
    hurt performance if the tab navigator has a lot of large child
    items.

Maybe you are looking for