Union Issue

Hi ,
I've created for the Current Quarter, Month, Week n Day prompts here.
Sql are
the SQL:
SELECT CASE WHEN 1=0 THEN TMP_VAC."Activity ID" ELSE 'Current Quarter' END FROM "Dashboard"
UNION
SELECT CASE WHEN 1=0 THEN TMP_VAC."Activity ID" ELSE 'Current Month' END FROM " Dashboard"
UNION
SELECT CASE WHEN 1=0 THEN TMP_VAC."Activity ID" ELSE 'Current Week' END FROM "Dashboard"
UNION
SELECT CASE WHEN 1=0 THEN TMP_VAC."Activity ID" ELSE 'Current Day' END FROM "Dashboard"
i'm getting error here .
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P:OI2DL65P
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 59019] All of the input streams to the Union operator should have an identical number of columns and union compatible data types. (HY000)
SQL Issued: {call NQSGetQueryColumnInfo('SELECT CASE WHEN 1=0 THEN TMP_VAC."Activity ID" ELSE ''Current Quarter'' END FROM "FTOPTY Dashboard" UNION SELECT CASE WHEN 1=0 THEN TMP_VAC."Activity ID" ELSE ''Current Month'' END FROM "FTOPTY Dashboard" UNION SELECT CASE WHEN 1=0 THEN TMP_VAC."Activity ID" ELSE ''Current Week'' END FROM "FTOPTY Dashboard" UNION SELECT CASE WHEN 1=0 THEN TMP_VAC."Activity ID" ELSE ''Current Day'' END , MV_IW_EMP_HIERARCHY."Manager Name" FROM "FTOPTY Dashboard"')}
SQL Issued: SELECT CASE WHEN 1=0 THEN TMP_VAC."Activity ID" ELSE 'Current Quarter' END FROM "FTOPTY Dashboard" UNION SELECT CASE WHEN 1=0 THEN TMP_VAC."Activity ID" ELSE 'Current Month' END FROM "FTOPTY Dashboard" UNION SELECT CASE WHEN 1=0 THEN TMP_VAC."Activity ID" ELSE 'Current Week' END FROM "FTOPTY Dashboard" UNION SELECT CASE WHEN 1=0 THEN TMP_VAC."Activity ID" ELSE 'Current Day' END , MV_IW_EMP_HIERARCHY."Manager Name" FROM "FTOPTY Dashboard"

Hi,
>[nQSError: 59019] All of the input streams to the Union operator should have an identical number of columns and union compatible data types. (HY000)
Problem is with data type.All of the input streams to the Union operator should have an identical number of columns
and union compatible data types,it mean columns should be of same data types.
Regards,
Srikanth

Similar Messages

  • Order By Parameter UNION Issue!!

    Hi All,
    i have a query in which i have to order by a parameter.
    but my problem is order by works only for non-union query if i add union to the query it gives error.
    please see following..
    SQL> SELECT   H.BOL_NUMBER BOL_NUMBER,
      2           H.PICKUP_NUMBER,
      3     to_char(H.PICKUP_DATE,'DD-MON-YYYY') PICKUP_DATE,
      4           RAC.CUSTOMER_NAME CUSTOMER_NAME,
      5           L.SALES_ORDER,
      6    to_char(MAX(PH.DATE_CONFIRMED),'DD-MON-YYYY HH24:MI:SS') DATE_CONFIRMED
      7  FROM     APPS.SO_PICKING_HEADERS_ALL PH,
      8    SMCOE.SMCOE_BOL_HEADERS H,
      9           SMCOE.SMCOE_BOL_LINES L,
    10           SO_HEADERS_ALL SHA,
    11           SO_ORDER_TYPES_ALL SOTA,
    12           APPS.RA_CUSTOMERS RAC,
    13    APPS.SO_PICKING_LINES_ALL PL,
    14    APPS.SO_PICKING_LINE_DETAILS PLD
    15  WHERE    H.BOL_HEADER_ID = L.BOL_HEADER_ID
    16           AND L.SO_HEADER_ID = SHA.HEADER_ID
    17           AND SHA.ORDER_TYPE_ID = SOTA.ORDER_TYPE_ID
    18           AND L.CUSTOMER_ID = RAC.CUSTOMER_ID
    19           AND H.PICKUP_DATE >= TO_DATE('3-NOV-2006 00:00:00','DD-MON-YYYY HH24:MI:SS')
    20           AND H.PICKUP_DATE < TO_DATE('4-NOV-2006 00:00:00','DD-MON-YYYY HH24:MI:SS')
    21           AND DECODE(NULL,NULL,'X',
    22                                 RAC.CUSTOMER_NAME) = DECODE(NULL,NULL,'X',
    23                                                                        NULL)
    24           AND DECODE(634307,NULL,1,
    25                            H.BOL_NUMBER) = DECODE(634307,NULL,1,
    26                                                         634307)
    27    AND decode('Only SO','Only SO','Z',RAC.CUSTOMER_NAME)=decode('Only SO','Only SO','Z','XXX')
    28    AND PH.DATE_CONFIRMED IS NOT NULL
    29    AND PH.PICKING_HEADER_ID=PL.PICKING_HEADER_ID
    30    AND PL.PICKING_LINE_ID=PLD.PICKING_LINE_ID
    31    AND PLD.PICKING_LINE_DETAIL_ID=L.PICKING_LINE_DETAIL_ID
    32    AND NOT EXISTS (SELECT 1
    33         FROM SO_PICKING_LINE_DETAILS SPLD,WSH_DELIVERIES WD
    34         WHERE SPLD.DELIVERY_ID=WD.DELIVERY_ID
    35         AND SPLD.PICKING_LINE_DETAIL_ID =L.PICKING_LINE_DETAIL_ID
    36         AND WD.STATUS_CODE='OP'
    37        )
    38   GROUP BY H.BOL_NUMBER ,
    39           H.PICKUP_NUMBER,
    40           H.PICKUP_DATE ,
    41           RAC.CUSTOMER_NAME ,
    42           L.SALES_ORDER,
    43           L.LINE_NUMBER,
    44           L.GROSS_WEIGHT,
    45           L.NET_WEIGHT,
    46           L.TARE_WEIGHT
    47  ORDER BY decode('CUSTOMER','DATE',PICKUP_DATE,'CUSTOMER',CUSTOMER_NAME,'PN',PICKUP_NUMBER,SALES_ORDER);
    BOL_NUMBER PICKUP_N PICKUP_DATE CUSTOMER_NAME                                                      
    SALES_ORDER                                                                                        
    DATE_CONFIRMED                                                                                     
        634307 SC22862  03-NOV-2006 A M CASTLE & CO                                                    
    300014511                                                                                          
    03-NOV-2006 19:05:01                                                                               
        634307 SC22862  03-NOV-2006 A M CASTLE & CO                                                    
    300014542                                                                                          
    03-NOV-2006 19:04:55                                                                               
        634307 SC22862  03-NOV-2006 A M CASTLE & CO                                                    
    300014599                                                                                          
    03-NOV-2006 19:04:56                                                                               
        634307 SC22862  03-NOV-2006 A M CASTLE & CO                                                    
    300014637                                                                                          
    03-NOV-2006 19:05:04                                                                               
        634307 SC22862  03-NOV-2006 CORROSION MATERIALS INC                                            
    14 rows selected.
    SQL> ed
    Wrote file afiedt.buf
    line 72 truncated.
      1  SELECT   H.BOL_NUMBER BOL_NUMBER,
      2           H.PICKUP_NUMBER,
      3             to_char(H.PICKUP_DATE,'DD-MON-YYYY') PICKUP_DATE,
      4           RAC.CUSTOMER_NAME CUSTOMER_NAME,
      5           L.SALES_ORDER,
      6              ' ' DATE_CONFIRMED
      7  FROM     SMCOE.SMCOE_BOL_HEADERS H,
      8           SMCOE.SMCOE_BOL_LINES L,
      9           APPS.RA_CUSTOMERS RAC
    10  WHERE    H.BOL_HEADER_ID = L.BOL_HEADER_ID
    11           AND L.CUSTOMER_ID = RAC.CUSTOMER_ID
    12           AND H.PICKUP_DATE >= TO_DATE('3-NOV-2006 00:00:00','DD-MON-YYYY HH24:MI:SS')
    13           AND H.PICKUP_DATE < TO_DATE('4-NOV-2006 00:00:00','DD-MON-YYYY HH24:MI:SS')
    14           AND DECODE(NULL,NULL,'X',
    15                                 RAC.CUSTOMER_NAME) = DECODE(NULL,NULL,'X',
    16                                                                        NULL)
    17           AND DECODE(NULL,NULL,1,
    18                            H.BOL_NUMBER) = DECODE(NULL,NULL,1,
    19                                                        NULL)
    20           AND SALES_ORDER NOT LIKE '4%'
    21           AND SALES_ORDER NOT LIKE 'PO%'
    22           AND SALES_ORDER <> '1'
    23           AND L.CUSTOMER_NAME NOT LIKE 'REC%'
    24        AND decode('Only SO','Product','Y',RAC.CUSTOMER_NAME)=decode('Only SO','Product','Y','XXX')
    25  UNION
    26  SELECT   H.BOL_NUMBER BOL_NUMBER,
    27           H.PICKUP_NUMBER,
    28             to_char(H.PICKUP_DATE,'DD-MON-YYYY') PICKUP_DATE,
    29           RAC.CUSTOMER_NAME CUSTOMER_NAME,
    30           L.SALES_ORDER,
    31        to_char(MAX(PH.DATE_CONFIRMED),'DD-MON-YYYY HH24:MI:SS') DATE_CONFIRMED
    32  FROM     APPS.SO_PICKING_HEADERS_ALL PH,
    33        SMCOE.SMCOE_BOL_HEADERS H,
    34           SMCOE.SMCOE_BOL_LINES L,
    35           SO_HEADERS_ALL SHA,
    36           SO_ORDER_TYPES_ALL SOTA,
    37           APPS.RA_CUSTOMERS RAC,
    38        APPS.SO_PICKING_LINES_ALL PL,
    39        APPS.SO_PICKING_LINE_DETAILS PLD
    40  WHERE    H.BOL_HEADER_ID = L.BOL_HEADER_ID
    41           AND L.SO_HEADER_ID = SHA.HEADER_ID
    42           AND SHA.ORDER_TYPE_ID = SOTA.ORDER_TYPE_ID
    43           AND L.CUSTOMER_ID = RAC.CUSTOMER_ID
    44           AND H.PICKUP_DATE >= TO_DATE('3-NOV-2006 00:00:00','DD-MON-YYYY HH24:MI:SS')
    45           AND H.PICKUP_DATE < TO_DATE('4-NOV-2006 00:00:00','DD-MON-YYYY HH24:MI:SS')
    46           AND DECODE(NULL,NULL,'X',
    47                                 RAC.CUSTOMER_NAME) = DECODE(NULL,NULL,'X',
    48                                                                        NULL)
    49           AND DECODE(634307,NULL,1,
    50                            H.BOL_NUMBER) = DECODE(634307,NULL,1,
    51                                                         634307)
    52        AND decode('Only SO','Only SO','Z',RAC.CUSTOMER_NAME)=decode('Only SO','Only SO','Z','XXX')
    53        AND PH.DATE_CONFIRMED IS NOT NULL
    54        AND PH.PICKING_HEADER_ID=PL.PICKING_HEADER_ID
    55        AND PL.PICKING_LINE_ID=PLD.PICKING_LINE_ID
    56        AND PLD.PICKING_LINE_DETAIL_ID=L.PICKING_LINE_DETAIL_ID
    57        AND NOT EXISTS (SELECT 1
    58                 FROM SO_PICKING_LINE_DETAILS SPLD,WSH_DELIVERIES WD
    59                 WHERE SPLD.DELIVERY_ID=WD.DELIVERY_ID
    60                 AND SPLD.PICKING_LINE_DETAIL_ID =L.PICKING_LINE_DETAIL_ID     
    61                 AND WD.STATUS_CODE='OP'
    62                )
    63       GROUP BY H.BOL_NUMBER ,
    64           H.PICKUP_NUMBER,
    65           H.PICKUP_DATE ,
    66           RAC.CUSTOMER_NAME ,
    67           L.SALES_ORDER,
    68           L.LINE_NUMBER,
    69           L.GROSS_WEIGHT,
    70           L.NET_WEIGHT,
    71           L.TARE_WEIGHT           
    72* ORDER BY decode('CUSTOMER','DATE',PICKUP_DATE,'CUSTOMER',CUSTOMER_NAME,'PN',PICKUP_NUMBER,SALES_ORDER)
    SQL> /
    OERROR at line 72:
    ORA-01785: ORDER BY item must be the number of a SELECT-list expression
    SQL> spool off;

    Maybe you could try this:
    select ...
    from
       select ...
       from ..
       UNION
       select ...
       from ...
    order by ...                                                                                                                                                                                                                                                                                   

  • World of Warcraft: Cataclysm Chat Transcript

    Hey all you World of Warcraft Gamers! @Dorothy-BBY and I talked with J. Allen Brack and Tom Chilton from the Blizzard Development team. They shared some time with gamers on our forum and here's the transcript of what they discussed!
    Transcript for: 'World
    of Warcraft: Cataclysm', Thu Nov 18 6PM CST 2010
    Dorothy-BBY: Welcome to our World of Warcraft: Cataclysm chat
    with Blizzard Developers Tom Chilton and J. Allen Brack, as well as moderators
    Lylirra and Zarhym. Thank you all for joining us and the chat will start
    shortly. Sit back, and enjoy asking some questions about Blizzard's newest
    release! Game on!
    JABrack: Hey there! 
    Tacgnol: Will the heirloom items scale to 85?
    JABrack: The current plan is to
    have heirloom items stop at level 80 at the moment. 
    palondon: Right now, up to 50% of Ignite damage disappears
    due to the technical limitations of spells critting within certain timeframes.
    This has implications for Mage dps and the value of Mastery as a stat. Is
    overall damage being balanced to compensate and can we expect a solution in the
    near future?
    TomChil: We're resolving that by
    rolling up any "lost" ignite damage into the next ignite that
    overwrote it
    deathmane: Has Blizzard considered adding a "Tabards
    Tab" to the UI, so that tabard collectors can switch out tabards more
    effectively without having to take up bank and bag space? --Thanks! Deathunholy
    of Galakrond
    JABrack: Hi. We have talked about
    adding a tabard tab. We've talked about doing a closet tab to handle it. It
    isn't something we are adding for Cataclysm though.
    SenyoPanda: Will it be as long of a wait to fight Deathwing
    as it was for Lich King?
    TomChil: Hopefully not, we
    definitely have a goal to get our content patches out more quickly than we have
    in the past without sacrificing quality of course, we plan for deathwing to be
    the most amazing encounter we've ever made! =]
    Guest-124: Are there any plans to
    potentially add queueing to the rated battlegrounds instead of it having to be
    a pre-made raid team? I was really excited when I first heard about this
    feature, but after reading the FAQ i was a bit disappointed with that design.
    TomChil: we're currently looking
    into the possibility of having players in the honor battleground queue be able
    to be called to action by groups that aren't quite full, but we're going to see how the current queue'ing
    works out first - that isn't something that would be available just yet 
    Guest-85: Will you allow players to fill their quest log
    with say, 25 dailies, and then turn them in right after Midnight on December
    7th to get a quick boost towards 85? This is how it worked in the beta, but
    some players are confused on whether it will work on Live. Thanks!
    JABrack: Regarding 25 daily
    quests to turn in when the expansion goes live, this is something players have
    been able to do for the last 2 expansions and we aren't talking about changing
    it now.
    Guest-224: Is Hit rating intended to tramp all other stats
    but Str for Fury till the 27% hardcap? Seems excessive
    TomChil: generally speaking, we
    do balance hit rating to be the "best" stat until you're at the hit
    rating cap
    Josh-BBY: Quick note about the moderation of the chat.
    Every magician has their secrets. We unfortunately cannot answer some of
    your questions. If yours wasn't selected ask another burning question and we'll
    see if our hosts can get to them!
    Guest-96: I understand the decision from an economic
    perspective but I was wondering if the deveopers were disappointed in the
    decision to allow race changes immediately following the release of the
    expansion.
    JABrack: Regarding allowing
    race/faction change on day one. Actually this wasn't an economic decision at
    all. This was a decision that the leadership team made. Our priority as a dev
    team is to allow players to play the game with their friends, the way they want
    too. 
    We also talked about the
    fact that this is a week one problem. So we made the decision not to restrict
    anything.
    felixlevron: Will darnasus be re built to be a real tree or
    will it always look like a dead stump with trees at the top.
    TomChil: ...but now that
    Deathwing is doing his thing it makes much more sense than it used to! ;]
    Zarhym: Deathwing hates trees.
    axelumog: A lot of players I know are trying to plan out
    what characters to roll for the new expansion, and the big question is: Will
    there be ANY new realms tagging along with the release of Cataclysm? Some point
    to low pop realms as a reason against, but surely with the redux'd 1-60
    experience and the droves of returning players desiring clean slates, there has
    never been a better time for a fresh realm or two?
    JABrack: We haven't decided
    exactly what the new realm decisions are yet, but we open new realms when there
    is player demand for them. One thing we can't do is plan all realms for day
    one. The goal is for realms to have good concurrency so everyone has a great
    game/matchmaking experience.
    Guest-138: Could you comment on the plan for raids in
    cataclysm? If i remember it was said that there would be smaller raids in cata
    but more of them. Would that mean like two small raids per patch or more
    patches in total? 
    TomChil: the idea is that we'll
    have more raid environments, but fewer bosses in each environment, but a similar
    total number of raid bosses overall... if that makes sense. =] So, for cataclysm launch we have the skywall
    environment, the twilight bastion environment, and blackwing descent versus
    having almost all the bosses in one environment like we did with naxrammas
    Wikehaja: With the changes to the game environment itself,
    what new computer requirements will be optimal to run the game smoothly?
    JABrack: One of the things that
    is really important to us is a great gaming experience regardless of your
    hardware. While the system requirements do go up over time, we do want the
    experience on slower machines to be great. We do this by trying to add a lot of
    graphical options to allow players to control the experience from "runs
    fast" all the way to "looks great". 
    Retro94: Will there be more than one Legendary weapon in
    Cata? Will there be a Caster DPS legendary? Any info or plans would be awesome
    =) Thanks!
    TomChil: It's likely there will
    be more than one legendary weapon, although it's too early to say for sure. We
    do, however, have a plan to do a caster dps staff soon.
    Guest-226: where did Uldum come from?
    TomChil: Egypt ;]
    JABrack: The idea with Uldum is
    that it has always been there, cloaked from the eyes of the players. The
    emergence of Deathwing has damaged some of the technology that kept it hidden.
    There is a story in the zone that explains this and what has been happening in
    the player absence. 
    MatthewRhino: With resource systems now broadened to include
    focus, rage, energy, and runic power as well as mana, and there being
    conditionals like enrages, holy power, combo points and runes, will classes
    that just use mana be getting similar treatment or remaining as they are?
    TomChil: Really that decision is
    made on a class-by-class, talent tree-by-tree basis. If we feel like the talent
    spec in question needs a broader resource management then we do it, but we
    don't like to unnecessarily complicate a spec's resource management if it isn't
    absolutely necessary.
    Guest-14: Is the Moonkin form for troll and worgen on the
    beta and ptr the final form or is it just a placeholder?
    JABrack: Final!
    Guest-12: Why is it that we are
    not able to use Archeaology before the exspansion? I thought it was really cool
    how you guys released Inscription last time and would love to have the
    opportunity to level it before the exspansion drops.
    JABrack: Using archeology before
    the expansion was something we talked about, but ended up adding everything
    about the profession to the "post sundered" world. Thus, you won't be
    able to use archeology before the sundering happens. 
    Josh|Community Connector | Best Buy® Corporate

    Sair77: The first tier of Cataclysm raiding has 3 seperate instances to tackle. Are you guys planning on keeping with the Burning Crusade model (SSC/TK, BT/Hyjal) and having multiple instances per raid tier? Will Deathwing have to share the spotlight with some other instance?
    TomChil: We'll evaluate that on a tier by tier basis. When we have awesome ideas that we can successfully make happen we'll do multiple environments, but it won't necessarily always be the case. We do have a super cool idea for the deathwing tier though... or at least so we hope. =]
    Zuesian: Are there any plans for a new Lock mount? I would love to see a possible flying mount for Locks. Fireion Gnomeragen.
    JABrack: One of the things we look at with mounts is broad appeal. While we do specific class mounts from time to time, most of the time we look to have mounts that all classes can use. 
    Arakiba: What happened with the Worgen district in Stormwind?
    TomChil: We decided it didn't really fit very well, it was looking kind of awkwardly forced into the city. Plus deathwing would have destroyed it anwyays.
    Dorothy-BBY: RAWR!!!
    Guest-128: As the world of Azeroth is changing I was wondering if the Death Knight zone will stay the same or will it also be affected by the cataclysm?
    JABrack: The death knight zone doesn't have any changes for Cataclysm. 
    Guest-310: I have been confused from the different posts for tier gear. Will there be three levels within each tier still or just heroic and normal and in either case will u just be getting them with points or will u still have to get certain things off drops off certain bosses to get the higher more heroic version of the tier gear?
    TomChil: There is still just normal and heroic difficulty for the raid and dungeon content, and the heroic gear has a higher item level than the corresponding normal gear
    Guest-392: Do you feel faction imbalance is a problem at the moment? My queue is around 10-15 min at prime time as a member of the Horde and I know this is the case on at least two of the battlegroups. If so, do you think Worgen will fix the problem? And if they do not, will free faction changes ever be a possibility in the future on battlegroups or servers with a major problem?
    JABrack: We are working on some technology to further combine the PVP queues at server sites. This has been going on behind the scenes for a few weeks now in preparation for Cataclysm. Queue time is one of those things that gets a lot of attention and time, but will change significantly post Cata. Really good question.
    IanG: What would you say was the hardest and/or easiest parts of developing this expansion? After all, many are saying this is the best expansion to date... So, what was the biggest challenge/easiest feat in creating it?
    JABrack: There have been huge challanges with this expansion, unlike any we've seen in the other two expansions. The scale of Cataclym is huge for us, and something we didn't really expect when we started development. But we certainly feel like the effort has been worth it, and feel it's our best expansion so far. 
    Guest-202: Why does it seem the scorpion guild mount doesn't have a guild flag where the lion does? I was hoping to see Hordes of scorpions from our guild walking around with our tabard hanging from the tail like a flag behind them. ~ Sorenji of khaz modan
    TomChil: When riding a scorpion mount, your character displays holding a large standard with your guild symbol on it. 
    Guest-127: Why did you decide to make 310% mount speed purchasable in 4.0? It's a huge price for such a tiny speed upgrade, and used to work well as a just-above-vanity perk for people who completed the toughest achievements. 
    JABrack: The primary reason was to equalize the awesome vanity mounts players had, and change the mechanic to one where you used the mount you were most excited about using. We wanted players to be able to see the mount players want, without considering the speed differential as a factor. 
    Guest-411: Will you allow players to change their login screen? I'd love to be able to use the Classic login screen, the unreleased one that was shown at Blizzcon, or perhaps a login screen of a previous expansion.
    JABrack: Players are not able to change their login screen.
    barretrifle: How would a person get a Guild Mount? Would it be guild rep? If so how would that be calculated or obtained?
    TomChil: Once your guild gets to a high enough level and unlocks the guild mount, any player in the guild with a high enough guild reputation is able to buy the mount.
    gandclynn: Will heirloom items work for goblins and worgens leveling from 1-80 at release? 
    JABrack: Heirloom items will work perfectly for Worgen and Goblin characters! Enjoy! 
    Dorothy-BBY: Woot!
    Guest-124: Has there been any discussion of changing the heirloom items to true "Bind on Account" instead of the bind on server limitation that it has currently?.
    JABrack: That is something we would like to do. Currently the servers mail carriers refuse to work together, and haven't worked out the economic terms from transferring mail from one server to another. One day we hope to resolve the union issues. 
    Dorothy-BBY: Thanks for all the awesome questions! Keep them coming!
    Wikehaja: Will the option ever be available to change ones class, contingent upon what's currently available to the race restrictions at the time?
    TomChil: Never say never, but we don't currently have plans to do that. 
    Guest-451: There's any through about making account wise achievement, like starcraft ones? It a reason for many players to not reroll/change mains since its look like a lot of work wasted when you switch your main char. Even changing to another char to help with one fight look a bit wrong now, if you are after achievements.
    JABrack: We do have plans to solve this problem, as it is limiting people from re-rolling for sure. This is something we want to solve, but don't have a good solution on how to do it at the moment. 
    Josh-BBY: It's great to see how engaged you all are with this seriously rad game series!
    Dorothy-BBY: EL OH EL Rad. 
    Guest-314: Was there anything you guys regret not being able to include at launch? Possibly something that didn't have enough polish to it that me way see in the future? (You don't need to mention the Dance Studio at this point, really, it's okay) Teln - Misha
    TomChil: Well... there is the dance studio. ;] There are of course always things we'd hoped to get into any patch/expansion that get pushed out until later. One example would be the idea to have a built-in atlas that details every encounter in each dungeon/raid. We're not super happy about the fact that the first time anyone encounters a new boss, the only way to learn about it (other than looking up strategies on the web) is to charge in and die a lot. 
    We'd love to give players some idea of what they're about to fight before they engage the boss. =]
    ZeroG56: Do honor points and Badges roll over into CATA, or do they reset to zero?
    TomChil: Yes, honor points and justice points carry over into cataclysm. Stock up now!
    Spyykke: Is there any talks of maybe some faction cooperative campaigns? Since the cataclysm is threatening to destroy all life of azeroth, to me a logical response from the heroes of azeroth would be to set aside their differences and be able to work together in a raid. An Idea to maybe lessen the frequency of such groups is make the raid difficulty increase by choosing to work with the other faction, a sort of Heroic mode. Possibly even dual faction specific raids. Has there been any talks of such poss...
    JABrack: This is a common request, but not something we are looking to do. While there is a singular main bad guy in this expansion, the Horde and Alliance have their own unique challenges and agendas, and typically don't look to team up. After all it's the World of Warcraft, not the World of Peacecraft. 
    Guest-87: When designing expansions and content patches, do you have a list of new features to choose from that are planned out in advance or is there more of a brain storm session?
    TomChil: The feature set for each patch is determined by a combination of doing things (or finishing things) that we've been wanting to do for a while, along with completely new ideas that emerge as a result of the immediate needs of the game
    JABrack: The primary things you won't be able to do if you don't have Cataclysm are create a new Goblin/Worgen, level to 85, and fly in the orld world.
    TomChil: We like to stay as flexible as possible, so it's important to us to make sure that we aren't "over planned" into the future even though the real needs players have are changing
    SirHaakon: With the previous two expansions, the new content was actually on other continents, so if you didn't have the expansion, you just couldn't visit the continent. Since Cata is largely reworking of old-world content, however, how do you differentiate between someone with or without the xpac? What kinds of things will and won't be available to players don't have the upgrade?
    JABrack: See my answer above!
    Guest-16: Will the 80 to 85 experience be closer to the 18hr mark or the 5 day mark that was 70-80? 
    TomChil: That totally depends on the player to be honest, you'd be amazed by the differences in play patterns. That being said, somebody usually finds a way to level up very quickly.
    Dorothy-BBY: Just so folks know, the Ustream is only for viewing the chat. Only folks in the initial 500 range are going to possibly have questions displayed. Thanks!
    Guest-348: What new feature(s) in WoW: Cataclysm are you guys most proud of?
    TomChil: I would have to say the 1-60 revamp, it's a ton of fun to play through the zones and an incredible amount of new content.
    JABrack: I'm most happy with the new Worgen and Goblin starting experiences. I think they are the best starting experience we've ever done, and that includes the death knight. 
    Zarhym: I'm most proud of J. and Tom.
    Guest-908: Question i have is why not have this latest expansion as a new territory like a Southrend similar to Northrend or a Moon body like Outlands instead of destroying Azeroth and Kalimdor? Were there limitations to expanding outwards or was this just to facelift the original game?
    TomChil: We make decisions like this on a case by case basis.. again depending on the needs of the game. In the case of Cataclysm, the world was due in for an overhaul, and we wanted to make everything fly-able, so it was important to flesh out any areas that were originally unfinished.
    Guest-441: Can you clarify and confirm what will be available to players when 4.0.3a hits and what will be unavailable until 7th Dec?
    JABrack: 4.0.3a will be the patch that actually causes the world to shatter and change forever. At that point you will be able to experience the new 1-60 leveling experience, as well as the new race/class combinations. Very exciting!
    milesd21: Is there an alternative mount for worgens that other races can ride 
    TomChil: Worgen can ride the other mounts in the game, if that's what you're asking. They're not limited to their feral run.
    mikewho3: With the level 1-80 Heirloom items, when Cataclysm is released will the xp gain work while leveling until you hit level 81? Or will XP gain be disabled for those on release?
    JABrack: They will not. Heirlooms stop granting their XP bonus at level 80. Not level 80.9999999.
    gandclynn: Will achievment points ever be able to be used to purchase any perks? 
    JABrack: We have no plans to allow this. Achievements are a badge of honor only. 
    Josh-BBY: Hey everyone! Thank you for joining us for this chat!
    JABrack: Thanks to all for everyone and their participation! Really appreciate you coming out! See you all in the game!
    Dorothy-BBY: Thank you all! For the Horde!
    Zarhym: Thanks all. We <3 you.
    Dorothy-BBY: shameless plug for horde. 
    Josh-BBY: Please check back to view the chat transcript. We'll have it up here on our Forum and Blizzard will be hosting it too.
    Lylirra: Thanks everyone!
    Josh-BBY: Be sure to stop by http://wowc.bestbuysweepstakes.com/?h=488 for a chance to win an Ultimate PC Setup! And preorder your copy today! http://bbyurl.us/Cataclysm
    Josh|Community Connector | Best Buy® Corporate

  • Email Problem with Mac

    Hi, I am new to FIOS so I hope this is the proper board to post in.  I set up 2 subaccounts for verizon.net email and configured them for my Mac Mail program. Everything worked well for about 2 days, and all of a sudden the Mail program keeps asking for my password (even though it was saved in my Mail settings) and says the the incoming mail server is offline.  I've Googled this issue and see that others have posted about the same authentication error. Has anyone else here experienced - and solved - this problem? Thanks. 

    I am having the same problems with Mac eMail.  I have two Macs, one that is running Lion and the other is running Snow Leopard.  I have spent days on the phone with Apple and Verizon and they are blaming each other and neither have a solution.  Have you been able to get a response?  It looks like this is something that happens from time to time but never really gets fixed.
    Please let me know if there has been a fix since the Mac Mail update in July?  With the Union Issues Verizon doesn't have enough people to address the issues both in person ( I had a tech come to the house and he didn't know anything about software ) or on the phone.  They keep kicking it back to Apple.  I also have a couple iPhones and both are working fine. So this seems to be OS X specific.  I've had Macs and iPhones for 3 years or more. 
    Just makes me think something was done to the mail servers they didn't get correct.

  • Problem with editing primary email keeps asking fo...

    Why does a security password window come up when I try to edit profile information such as the primary email, and when I type in my password it doesnt accept it? Ive reset my password and have logged in to my skype account but this keeps happening when I go to change the primary email.

    I am having the same problems with Mac eMail.  I have two Macs, one that is running Lion and the other is running Snow Leopard.  I have spent days on the phone with Apple and Verizon and they are blaming each other and neither have a solution.  Have you been able to get a response?  It looks like this is something that happens from time to time but never really gets fixed.
    Please let me know if there has been a fix since the Mac Mail update in July?  With the Union Issues Verizon doesn't have enough people to address the issues both in person ( I had a tech come to the house and he didn't know anything about software ) or on the phone.  They keep kicking it back to Apple.  I also have a couple iPhones and both are working fine. So this seems to be OS X specific.  I've had Macs and iPhones for 3 years or more. 
    Just makes me think something was done to the mail servers they didn't get correct.

  • OBIEE 11g Union Report Issue

    Hi all,
    Did one any of you started development work on 11g? If so have you created Union reports in 11g?
    I am facing two issues afte creating Union reports.
    1.I am unable to sort the columns. (Report is automatically sorted according to alphabatical order)
    2. I am unable to create New calculation Item.
    Thanks

    Hi there. Does anybody noticed this issue on calendars?! That only occurs when the month is october....
    Just updating, the correct version of OBIEE is 11.1.1.5.0.
    Thanks in advance.
    Marcos

  • Performance Issue in UNION ALL....

    Hi,
    I have a performance issue in a query using select.. union all .
    There are few select statements which are joined by union all.
    I need to re-frame the query such that the records from each individual select
    statement can be appended into a collection variable.
    I need to avoid the use of UNION ALL.
    Can anyone please help me out in this issue?
    Please find the select statement below.
    SELECT *
    FROM v_gfd1_asset_allocation
    WHERE NVL(value,0) <> 0
    AND scheme = p_scheme_id
    UNION ALL
    SELECT *
    FROM v_gfd1_capitalization_alloc
    WHERE NVL(value,0) <> 0
    AND scheme = p_scheme_id
    UNION ALL
    SELECT *
    FROM v_gfd1_currency_allocation
    WHERE NVL(value,0) <> 0
    AND scheme = p_scheme_id
    Thanks,
    Santhosh

    The UNION ALL takes the result set of one query, appends the result set of the next, and so forth. No sorting or filtering takes place. So, as each query has to be executed to completion, I do not think there is another way - that is what union all is for.
    You would probably do well to examine each query's access path. Would an index on NVL( value, 0 ), scheme help, for instance? Understanding the data distribution in the table and how it affects the execution plan would help you improve query performance.

  • Issue with Alias and Union of CTEs

    I have a query that works in SQL Server but I'm having issues with it in PL/SQL.  I keep running into the error saying "invalid identifier" when I try to reference PlantNumber or Plant_No or any other piece of the CTE or subquery.  Is this not possible with Oracle?
    Here's a shortened version of my query:
    WITH RemoveData AS
       SELECT a.PLANT_NO,a.ALLOC_WHDV_VOL,a.KW_CTR_REDELIVERED_HV, a.MTR_NO, a.MTR_SFX, a.TRNX_ID, a.REC_STATUS_CD,
    MAX(a.ACCT_DT) ACCT_DT
       FROM GasStmt a
       WHERE a.REC_STATUS_CD = 'RR'
       GROUP BY a.PLANT_NO,a.ALLOC_WHDV_VOL,a.KW_CTR_REDELIVERED_HV, a.MTR_NO, a.MTR_SFX, a.TRNX_ID, a.REC_STATUS_CD
       HAVING COUNT(a.REC_STATUS_CD) > 2
      RemoveData2 AS
       SELECT plant_no "PlantNumber"
       ,SUM(-a.ALLOC_WHDV_VOL) "PlantStandardGrossWellheadMcf"
       ,SUM(KW_CTR_REDELIVERED_HV) "KeepWholeResidueMMBtu"
       FROM RemoveData a
       GROUP BY plant_no
      OriginalData AS
       SELECT a.PLANT_NO "PlantNumber"
       ,SUM(a.ALLOC_WHDV_VOL) "PlantStandardGrossWellheadMcf"
       ,SUM(CASE WHEN a.REC_STATUS_CD = 'RR' THEN -a.KW_CTR_REDELIVERED_HV ELSE a.KW_CTR_REDELIVERED_HV END) "KeepWholeResidueMMBtu"
       FROM GasStmt a
       LEFT OUTER JOIN (SELECT MTR_NO, MTR_SFX, TRNX_ID, REC_STATUS_CD, MAX(ACCT_DT) ACCT_DT
       FROM GasStmt
       WHERE REC_STATUS_CD = 'RR'
       GROUP BY MTR_NO, MTR_SFX, TRNX_ID, REC_STATUS_CD
       HAVING COUNT(TRNX_ID) > 1) b
       ON a.MTR_NO = b.MTR_NO
       AND a.TRNX_ID = b.TRNX_ID
       AND a.Rec_Status_Cd = b.REC_STATUS_CD
       AND a.Acct_Dt = b.ACCT_DT
       WHERE a.ACCT_DT > '1/1/2010'
       AND b.MTR_NO IS NULL
       GROUP BY a.PLANT_NO
    UnionCTE AS (  
    SELECT *
    FROM RemoveData2
    UNION
    SELECT *
    FROM OriginalData
    SELECT PlantNumber, SUM(PlantStandardGrossWellheadMcf) AS PlantStandardGrossWellheadMcf,SUM(KeepWholeResidueMMBtu) AS KeepWholeResidueMMBtu
    FROM UnionCTE
    GROUP BY PlantNumber
    It's the bottom select from UnionCTE that's causing the issue.  Any tips would be appreciated!

    I can't check it at the moment, but here's some code I forgot to post.  Thanks for your response, I'll let you know if it works for me.
    CREATE TABLE STG.GasStmt
    (PLANT_NO varchar(100),
    ALLOC_WHDV_VOL numeric(29, 5),
    KW_CTR_REDELIVERED_HV numeric(29, 5),
    MTR_NO varchar(100),
    MTR_SFX varchar(100),
    TRNX_ID bigint,
    REC_STATUS_CD varchar(100),
    ACCT_DT DateTime)
    insert into STG.GasStmt
    select '043','0','50','36563','','83062200','OR','12/1/2011' union all
    select '002','0','100','36563','','83062222','OR','12/1/2011' union all
    select '002','0','-.99','36563','','-83062299','RR','12/1/2011' union all
    select '002','0','-.99','36563','','-83062299','RR','2/1/2013' union all
    select '002','0','-.99','36563','','-83062299','RR','4/1/2013' union all
    select '002','0','-.99','36563','','83062299','OR','2/1/2011' union all
    select '002','0','-.99','36563','','-86768195','RR','12/1/2011' union all
    select '002','0','-.99','36563','','-86768195','RR','2/1/2013' union all
    select '002','0','-.99','36563','','-86768195','RR','4/1/2013' union all
    select '002','0','-.99','36563','','86768195','OR','3/1/2011' union all
    select '002','0','-.99','36563','','-90467786','RR','1/1/2012' union all
    select '002','0','-.99','36563','','-90467786','RR','2/1/2013' union all
    select '002','0','-.99','36563','','-90467786','RR','4/1/2013' union all
    select '002','0','-.99','36563','','90467786','OR','4/1/2011' union all
    select '002','0','-.99','36563','','-77671301','RR','2/1/2013' union all
    select '002','0','-.99','36563','','-77671301','RR','4/1/2013' union all
    select '002','0','-.99','36563','','77671301','OR','1/1/2011' union all
    select '002','0','-.99','36563','','-68420423','RR','2/1/2013' union all
    select '002','0','-.99','36563','','68420423','OR','4/1/2013' union all
    select '002','0','-.99','36563','','-188808446','RR','3/1/2013' union all
    select '002','0','-.99','36563','','188808446','OR','1/1/2013' union all
    select '002','1205.15','0','36563','A','138365544','OR','2/1/2012'

  • I can't see a message from my union because of problems with changed adress for pop-upwindows and some other issue

    Hi,
    I'm from Sweden and I'm having problems with a website my union has. I have been able to see messages from them before but they've changed their adress and on the site they tell people they have to put the new adress on the approved list for pop-up windows. I have done so but it's still not working. Maybe I've done it wrong, I don't know but it's annoying as hell that I can't see the messages they send.
    I really need help with this.
    Best regards,
    Lena

    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''

  • Navy Federal Credit Union App Issue

    When setting up the Navy Federal Credit Union (NFCU) Application through NFCU site... I am supposed to get a number sent to my phone.  I never receive the number so I can complete the Verification process.  Do I need to talk to NFCU or Verizon?

    I'm having the same issue and it appears to be that our iPhone 4s can't receive shortcode SMS messages.
    I can't get anything from Google (466453), Twittter (40404) or 4NFCU (46328).  Google voice also fails to forward my GV SMSes to my phone.
    I don't think it's a NFCU problem.

  • Customer Service Issue - Aberdeen Union Sq

    I've been having issues with battery of my iphone 5 for a few weeks now but due to the nature of my job I've not been able to get into the store until Sunday. I was told they were fully booked so booked an appointment for this evening at 6:30.
    The guy ran some tests and told me the battery needs serviced / replaced. Now this issue is complicated by the fact I dropped the phone on Sunday and cracked the screen - not too fussed about that as it's am easy repair.
    My problem was identified and all set for repair util the boy notices my phone is now 12 days out of warranty. As I'd explained my situation and for how long this had been an issue I felt there might be some sort if grace period. The buck was passed immediately to a manager who was less than delightful to speak to and quite frankly rude. She was not interested in the slightest and wanted me to pay for all the repairs and was adamant that Apple do not bend when it comes to warranty and it's tough.
    I know this is bollocks as I had a phone replaced some time ago that was a month out of warranty with a proximity sensor issue.
    Does anyone have any contact information for complaints because I think people like these ones I dealt with are ruining what used to be a great service from Apple. I've had umpteen products from them over the years even with the fact their warranties are laughable yet due to work commitments I'm now going to have to fork out for a new phone or repair despite it being a problem for a long time now!
    The money isn't the issue, it's the manner in which I was dealt with that's riled me and I'm not usually the type of person that complains about things like this!
    Any help would be greatly appreciated :-)

    RMO wrote:
    I didn't expect a reply either but did receive an email and a call from Verizon. They have given me an address to send a written dispute and are suppose to respond within 30 days.  My only reason for posting this was to inform other customers because I have read a lot of similiar issues on other sites about really old collections showing up on reports from Verizon.  As far as my credit goes I have a credit freeze on all 3 bureaus and check it regularly. 
    Awesome on all counts. Let us know the outcome!

  • Issue with union all in sql

    Hi All,
    I have a requirement as below.
    SELECT 'A' AS 'XXX' FROM DUAL
    UNION ALL
    SELECT 'B' AS 'XXX' FROM DUAL
    I need to check in such a way in my second sql query if 'B'='A' then i need to print 'A' else 'B' , means in my second query i need to compare the value of XXX with the first query value of XXX if it is same then i need to print first query's value of XXX or else need to print second queries XXX value.
    Please help me on this

    user13424229 wrote:
    Hi All,
    I have a requirement as below.
    SELECT 'A' AS 'XXX' FROM DUAL
    UNION ALL
    SELECT 'B' AS 'XXX' FROM DUAL
    I need to check in such a way in my second sql query if 'B'='A' then i need to print 'A' else 'B' , means in my second query i need to compare the value of XXX with the first query value of XXX if it is same then i need to print first query's value of XXX or else need to print second queries XXX value.
    Please help me on thisYour quesiton is not very clear, I would suggest you read {message:id=9360002}.
    If you are looking at a way to see the next or previous row from your current row then you can use LEAD or LAG analytical function. They are well documented. You can read all about it there.

  • Union Order by causing issue in SetWhereClause

    Hi,
    I am extending a CO and adding new query to the VO query.
    I added where clause to the VO query. Also added Union. The Union is the same VO query with another where condition. VO query default had a Order by clause.
    Now the total query looks like this.
    select * from
    (select a, b
    from x, y) QRSLT
    where ...
    UNION
    select * from
    (select a, b
    from x, y) QRSLT1
    where ...
    order by upper(a)
    "Order by" is getting added since it is there in the original VO query.
    Now I am getting the error as "java.sql.SQLException: ORA-01785: ORDER BY item must be the number of a SELECT-list expression"
    The above query without the order by is working good. What is the best way to fix this?
    Thanks,
    HC

    The problem is that you're using a UNION. The ORDER BY clause has to refer to a column in the query as a whole rather than just the second part of the UNION. In that situation, Oracle expects either a column position or the name of one of the selected columns.
    Thanks
    --Anil
    http://oracleanil.blogspot.com/

  • Materialized view issue with spatial index and UNION all.

    Hi guys,
    I'm trying to build the following materialized view:
    create materialized VIEW MV_ElectricalStuffs
      refresh fast
      AS
      SELECT jb.ROWID,
        jb.FID,
        JB.NAME_NUMBER
      FROM EL_BUS_BAR jb
      UNION ALL
      SELECT INC.ROWID,
        INC.FID,
        NULL,
        INC.NAME_NUMBER
      FROM EL_INTERNAL_CELL INC;
    I have this error showing up:
    ORA-12015: cannot create a fast refresh materialized view from a complex query
    This is because the table EL_INTERNAL_CELL has a SDO_GEOMETRY column that has a spatial index, whose ddl is
    CREATE INDEX EL_INTERNAL_CELL_S ON EL_INTERNAL_CELL (GEOM) INDEXTYPE IS MDSYS.SPATIAL_INDEX
    PARAMETERS('SDO_INDX_DIMS=2 TABLESPACE=USERS LAYER_GTYPE=COLLECTION');
    When I remove the spatial index from EL_INTERNAL_CELL column GEOM, Oracle is very happy and creates the view.
    Is there a mean however to keep the spatial index in the materialized view?

    I've managed to drop the spatial index prior to create the materialized view and it is ok. After the materialized view creation, I've recreated the spatial index on the table and all ran smooth. Hope nothing will go bad in the future because of this trick on spatial index..

  • SQL: GROUP BY and UNION addition issue..

    I'm looking to to get the TOTALS of the grouping. What I'm getting now is either a 1 or a 2 whether or not each PRIMARY_ASSIGMENT_GROUP appears in each query. when I run the
    SELECT a.PRIMARY_ASSIGNMENT_GROUP,GROUP(a.PRIMARY_ASSIGNMENT_GROUP) from
    SELECT
    COUNT(PRIMARY_ASSIGNMENT_GROUP),PRIMARY_ASSIGNMENT_GROUP
    from
    SMINCREQ
    LEFT JOIN SMOPERATOR on SMINCREQ.OPENED_BY=SMOPERATOR.NAME
    WHERE
    open_time BETWEEN to_date(:P246_SDATEB,'DD-MON-YYYY') AND to_date(:P246_EDATEB,'DD-MON-YYYY') and
    ((to_char(CAST((FROM_TZ(CAST(open_time AS TIMESTAMP),'+00:00') AT TIME ZONE 'US/Eastern') AS DATE),'HH24') between '00' and '08') or (to_char(CAST((FROM_TZ(CAST(open_time AS TIMESTAMP),'+00:00') AT TIME ZONE 'US/Eastern') AS DATE),'HH24') between '19' and '24')) GROUP BY PRIMARY_ASSIGNMENT_GROUP
    UNION ALL
    SELECT
    COUNT(PRIMARY_ASSIGNMENT_GROUP),PRIMARY_ASSIGNMENT_GROUP
    from SMINTERACTIONS
    WHERE
    open_time BETWEEN to_date(:P246_SDATEB,'DD-MON-YYYY') AND to_date(:P246_EDATEB,'DD-MON-YYYY') and
    ((to_char(CAST((FROM_TZ(CAST(open_time AS TIMESTAMP),'+00:00') AT TIME ZONE 'US/Eastern') AS DATE),'HH24') between '00' and '08') or (to_char(CAST((FROM_TZ(CAST(open_time AS TIMESTAMP),'+00:00') AT TIME ZONE 'US/Eastern') AS DATE),'HH24') between '19' and '24')) GROUP BY PRIMARY_ASSIGNMENT_GROUP
    ) a
    GROUP BY (a.PRIMARY_ASSIGNMENT_GROUP)
    ORDER by COUNT(a.PRIMARY_ASSIGNMENT_GROUP)

    bostonmacosx wrote:
    I'm looking to to get the TOTALS of the grouping. What I'm getting now is either a 1 or a 2 whether or not each PRIMARY_ASSIGMENT_GROUP appears in each query. when I run the
    SELECT a.PRIMARY_ASSIGNMENT_GROUP,GROUP(a.PRIMARY_ASSIGNMENT_GROUP) from
    SELECT
    COUNT(PRIMARY_ASSIGNMENT_GROUP),PRIMARY_ASSIGNMENT_GROUP
    from
    SMINCREQ
    LEFT JOIN SMOPERATOR on SMINCREQ.OPENED_BY=SMOPERATOR.NAME
    WHERE
    open_time BETWEEN to_date(:P246_SDATEB,'DD-MON-YYYY') AND to_date(:P246_EDATEB,'DD-MON-YYYY') and
    ((to_char(CAST((FROM_TZ(CAST(open_time AS TIMESTAMP),'+00:00') AT TIME ZONE 'US/Eastern') AS DATE),'HH24') between '00' and '08') or (to_char(CAST((FROM_TZ(CAST(open_time AS TIMESTAMP),'+00:00') AT TIME ZONE 'US/Eastern') AS DATE),'HH24') between '19' and '24')) GROUP BY PRIMARY_ASSIGNMENT_GROUP
    UNION ALL
    SELECT
    COUNT(PRIMARY_ASSIGNMENT_GROUP),PRIMARY_ASSIGNMENT_GROUP
    from SMINTERACTIONS
    WHERE
    open_time BETWEEN to_date(:P246_SDATEB,'DD-MON-YYYY') AND to_date(:P246_EDATEB,'DD-MON-YYYY') and
    ((to_char(CAST((FROM_TZ(CAST(open_time AS TIMESTAMP),'+00:00') AT TIME ZONE 'US/Eastern') AS DATE),'HH24') between '00' and '08') or (to_char(CAST((FROM_TZ(CAST(open_time AS TIMESTAMP),'+00:00') AT TIME ZONE 'US/Eastern') AS DATE),'HH24') between '19' and '24')) GROUP BY PRIMARY_ASSIGNMENT_GROUP
    ) a
    GROUP BY (a.PRIMARY_ASSIGNMENT_GROUP)
    ORDER by COUNT(a.PRIMARY_ASSIGNMENT_GROUP)Instead of using UNION ALL you should be able to get by with GROUPING SETS or ROLLUP.
    If you'd care to put together a small test case with data (representing what you have) and some sample output (what you need) along with your Oracle version
    select * from v$versionI'm sure someone will help you out.
    Cheers,

Maybe you are looking for

  • Read file from local disk (little bit urgent, thanks)

    Hi all. We're facing a problem using a signed applet. We think it's a matter of versions of the java plugin. The fact is that with version 1.4.0 there's no problem on reading a local file from the applet. Not the same can be said when using version 1

  • Artist search is broken for MP3 files in iTunes 11?

    I am having a first world problem. I am using iTunes 11.01 on 2 Macs - an old 2006 iMac running 10.7.5, and a new MacBook Pro running 10.8.2. Both exhibit the same odd behavior. If I add new MP3 files to iTunes (such as tracks from Amazon), artist na

  • ORA-01017: invalid username/password after DB copy

    I am trying in my DR server. i am getting the following error ORA-01017: invalid username/password. I have install SAP 4.7, windows 2000 adv , Oracle 9.2 (same as my Productin). then copied only the control files and the data files to the new locatio

  • Passing String values in the Function module

    Hi i am using a coustom made RFC, here i am usnig input parameter 'jobnature' of string type of length 720. the values is getting from the portal, i send a string of length of 720 charater from portal, but inside the RFC only 132 charaters are gettin

  • Matlab code for NI 4472

    Hi, Can anyone help me with Matlab code to stream data from NI 4472 board to disk. I am using an IEPE microphone, single board, 8 channels. Reju