GROUP BY problems

Hi everyone,
I am reasonably new to Oracle databases, and I am having a bit of trouble with ApEx. I'm trying to query a table I have made, but it doesn't like the way I'm using group by: ORA-00979: not a GROUP BY expression
The basic structure is that I have a WEEK table with a DATE_END column, and a TIMERECORDING table which has a WEEK_ENDING column referencing the WEEK table. The TIMERECORDING also has the other following columns: DAY_DATE, TIME_IN, LUNCH (amount of time taken for lunch) and TIME_OUT.
I'm making a time recording application, and I need to make a query which returns the the amount of time worked each day, summed up and grouped by WEEK.DATE_END.
Here is the query that is generating the error:
select     "WEEK"."DATE_END" as "DATE_END",
TIMERECORDING.DAY_DATE,
     SUM(TO_CHAR("TIMERECORDING"."TIME_OUT" - ("TIMERECORDING"."TIME_IN" - "TIMERECORDING"."LUNCH"), 'HH24:MI')) as "Hours"
from     "WEEK" "WEEK",
     "TIMERECORDING" "TIMERECORDING"
where "WEEK"."DATE_END"="TIMERECORDING"."WEEK_ENDING"
group by "WEEK"."DATE_END"

u miss timerecording.day_date in group by clause,
SELECT "WEEK"."DATE_END" AS "DATE_END", timerecording.day_date,
  SUM(to_char("TIMERECORDING"."TIME_OUT" -("TIMERECORDING"."TIME_IN" - "TIMERECORDING"."LUNCH"), 'HH24:MI')) AS "Hours"
FROM "WEEK" "WEEK", "TIMERECORDING" "TIMERECORDING"
WHERE "WEEK"."DATE_END" = "TIMERECORDING"."WEEK_ENDING"
GROUP BY "WEEK"."DATE_END", timerecording.day_date

Similar Messages

  • Group by problem at pivot table

    Hi,
    firstly i am making a table, everything is ok,
    after i click pivot table, st_desc column writes same value again, i couldnt understand the reason.
    please check my screen shots below,
    http://www.odilibrary.com/index.php/oracle-data-integrator/99-group-by-problem
    kindly advise please

    that my fault
    there is a null at the beginning of the value, they are different,
    sorry

  • Local calendars group ​disappeared - problem with saving in the local calendars group

    Hello, I ​have been working with calendars. ​​I wanted to add ​a ​new calendar to ​the iCloud calendars group or to local calendars ("On my iPhone").​ ​
    I found that when I am switch​ing​ off the iCloud for calendars, the iCloud ​calendar ​group ​disappears and don'​t create the ​local​ storage ("On my iPhone"). ​I ​did exactly the same on the iPhone 4S, and​ it ​create​d the​ local group. I don't know ​why it​ is​ different ​on iPhone 5, ​especially as I was using iOS 7.1 ​on both.
    Has ​anyone else had this problem before? Do you know how to restore my calendar to the local storage?
    Thanks for help.

    Solved this:
    Turns out that we now require at least "List" permissions for "Everyone" for the root of the partition where the User profiles reside.
    This was not the case on our previous images.
    Hopes this helps someone else.

  • ACS 3.3 Windows group mapping problem

    Hi,
    I?m running Cisco Secure ACS v.3.3 at Win 2000 server(sp4). ACS server is member of AD domain X. Additional there are two AD forests, so: domains X and Y are in the same forest, but domain Z is member of the second one. Trust relationships between all domains are established (AD Domain Controllers are w2k3 srv). I need to add Windows AD group mapping and that's no problem in domains X & Y. But when I'm trying to map some groups from Z domain, the "Failed to enumerate Windows groups. If you are using Active Directory consult the installation guide for information." error appears. In ACS documentation I have found information "ACS can only perform group mapping by using the local and global groups to which a user belongs in the domain that authenticated the user. You cannot use group membership in domains that the authenticated domain trusts that is for ACS group mapping. This restriction is not removed by adding a remote group to a group that is local to the domain providing the authentication." As I understand it's impossible to add mapping from the second forest? Am I right? If problem is solved in newer versions of ACS (4.0, 4.1)? Are there any fixes that can help?
    Thanks,
    Peter

    You need to set up proxy.
    http://www.microsoft.com/technet/prodtechnol/winxppro/deploy/ed80211.mspx
    Look for "Cross-Forest Authentication" in above link. And you get the Idea of what I mean. Though in above link its depicted with IAS server, but same is possible with ACS, as both can act as Radius server.
    There is a known bug, CSCsi04187
    PEAP MS-CHAP machine authentication will fail with machine not found if host/ format is sent from client. This only happens if the machine is autenticating to a domain forest that the ACS is not a member of.
    Conditions:
    The Machine authenticating to ACS is in a different domain forest then the ACS and the supplicant is using host/ as the machine name format. You also have to be using PEAP MS-CHAPv2.
    Workaround:
    If the supplicant has the option you can send the macine name in hos/ format.
    Many supplicants do not have this option.
    It is to be fixed for ACS 4.2 release.
    Regards,
    ~JG

  • Nokia lumia 610 group msg problem

    I tried many time to send msg to multiple receipients but every time getting error, "can't send, try again"
    Please help

    Hi kishorloveu,
    Thanks for posting and welcome.
    From your description it sounds like you have Group Texting enabled while not having set up MMS. As you appear to be from India unfortunately at this time the Network Setup app is not available for you meaning that unless your carrier has MMS settings included on your SIM and you initially started your phone with this SIM inserted you can't  setup MMS.
    Please make sure your have the option Group text in Messaging>...>Settings turned off.
    Press the 'Accept As Solution' icon if I have solved your problem, click on the Star Icon below if my advice has helped you!

  • CostCenter Group Aggregation problem. High Priority Issue.

    Hi Experts,
    I have very crital issue in the report, Help needed.
       I had some kind of requirement in one of the Overhead cost report, need to combine the COPA data and Costcenter(Over Head cost) data.  I have a problem with Costcenter Group aggregation on the report.
    I have Restricted 2-Keyfigures  want to derive the 3rd Keyfigure values. I given the below exmaple of the data. In my report I just want to display the KeyFigure(KF-A,B,C). I dont want to Display the Cost Center group/Costcenter Number in my report. My report ouput will be one line. But If I removed the costcenter Group I am seeing different values of the Keyfigure C, If I display the Costcenter comng with differnt Values. I am expecting the values in the column C is 1400 but it is coming like 3600.
    Please guide me how to design the Keyfigures if I want to get the value 1400 in theKeyFigre C with out Showing the Costcenter In the report.
    Cost-Center Group  R00048                         
                      Costcenter     KF-A     KF-B           KF-C
         10113     10     10          100
         10114     20     20          400
         10115     30     30          900
              60     60          1400(Insted of this its comming like 3600)
    Appreciate the response.
    Thanks,
    Venkata

    Hi,
    Check the display properties of key figure in Query Designer/Info object level.
    Set the property accordingly.
    I hope it will help.
    Thanks,
    S

  • Year Ago Measure group by problem.

    Hi,
    In my report I have two measures Revenue and Revenue Year Ago.
    Revenue Year ago is calculated based on the Ago functionalty and the time dimension level is "Year"
    AGO(Fact.Revenue, TimeDimnesion."Year", 1).
    The problem is that the column measure Revenue Year Ago is not getting added up to display data when we select based on the time dimension.
    e.g.
    Dimnesion Month-Code Revenue Revenue Year Ago
    A Jan-10 100 90
    A Feb-10 200 160
    B Feb-10 250 200
    In my report I want to display the Dimension, Revenue and Revenue Year Ago for the month of 'Jan-10' and 'Feb-10'
    so that automatic group by happens for the measures like this.
    Dimnesion Revenue Revenue Year Ago
    A 300 250
    B 250 200
    But this is not happening when I apply the filter for Month-Code in ('Jan-10' and 'Feb-10') and the result what OBIEE gives is null value for Revenue Year Ago.
    Dimnesion Revenue Revenue Year Ago
    A 300 NULL
    B 250 200
    But when I remove the Month-Code filter it gives the correct result.
    So is there something that I am missing out. Please advice.
    TimeDimnesion Hierarchy is Total(Grand Total) -> Year (Year Id, Year Code) -> Qtr (Qtr Id, Qtr code) -> Month
    (Month-Id,Month-Code) -> Detail (Day-Id, Day-Code)
    Regards,
    Bhavik

    if you can give a small test case to play around, it
    might be helpfule.
    put the data in the table and show the output you
    desire.An example-
    STORE
    StoreID StoreName Location
    s1 ABC NY
    s2 XYZ LA
    PRODUCT
    ProdID ProdName
    p1 foo
    p2 moo
    TRANSACTION
    TransID Fiscal_Yr StoreID ProdID Rating Price
    t1 2002 s1 p1 A 10
    t2 2002 s1 p1 A 80
    t3 2002 s1 p2 A 15
    t4 2002 s1 p1 B 20
    t5 2003 s2 p1 B 50
    If the query below is executed-
    SELECT t.Fiscal_Yr, s.StoreName, p.ProdName, t.Rating, SUM(t.Price) Revenue
    FROM STORE s, PRODUCT p, TRANSACTION t
    WHERE s.StoreID = t.StoreID
    AND p.ProdID = t.ProdID
    GROUP BY t.Fiscal_Yr, s.StoreName, p.ProdName, t.Rating
    ORDER BY t.Fiscal_Yr, Revenue DESC
    then, we get
    Fiscal_Yr StoreName ProdName Rating Revenue
    2002 s1 foo A 90
    2002 s1 foo B 20
    2002 s1 moo A 15
    2003 s2 foo B 50
    But, irrespective of different ratings for the same product, the revenue should be added and I should get rating as listed in the first transaction for that product for a particular store and Fiscal_Yr. So, my desired result should be-
    Fiscal_Yr StoreName ProdName Rating Revenue
    2002 s1 foo A 110
    2002 s1 moo A 15
    2003 s2 foo B 50

  • SCCM 2012 Update Group inconsistency Problem with Red marked Updates

    Hi everybody,
    we have a big Problem with our SCCM 2012 R2 CU3 Enviroment, regarding of Update Groups which got out of sync.
    we have a SCCM Site Infastructure with one CAS and 4 Primary Sites and on every Site is the SUP Role installed.
    I don't know when this failure occours but i think it was after the CU3 Installation. The Installation itself went smooth without any Errors or Warnings.
    The Problem is as following. We have some updates in Update Groups (all of them are Core XML Updates) which are out of sync and marked red as an invalid Update on 2 Primary Sites. On the CAS Site and the 2 other Primary SItes they are marked as green (downloaded
    yes and deployed yes)
    We have no Replication issues regarding the Replication Status (everything is synchronized to 100%) and the Replication Link Analyzer does also show no Problems at all.
    I now deleted the Deployments and the SW Update Group waited until the replication was fine and created a new one and downloaded these patches on one of the Primary Sites which had shown this Failure.
    The Result was not good. It looks like before. On the CAS and 2 Primary Sites the Deplyment is shown as downloaded but on the other 2 Sites the Status is again Downloaded=no.
    Does anybody have any idea what to do now ? I checked objmgr.log and rcmctr. log but found nothing what shows me the way in the right direction.
    Thx for your time, and it would be fine if anybody can share knowledge about this failure and how to fix it.
    All other Ideas are also welcome.
    Thx a lot in advance and have a nice bug free day :-)
    Bastian

    Hi,
    Please try to manually synchronize software updates from the CAS and monitor the WSUSCtrl.log, WCM.log and wsyncmgr.log on the CAS and Primary sites.
    Best Regards,
    Joyce
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • AD group resolution problems

    Hello all,
    I'm trying to bind 10.4.7 boxes to AD and use OD for system management. Often it's working just right, but after some time, anywhere from a few minutes to a few days of uptime, many desktops will loose the ability to resolve AD groups, causing group-based management to fail. I've been looking for a cause or a pattern, but it's beyond me. Here's what I've found so far:
    When a machine is having a problem, like a user in an OD group made up of nested AD groups can't log in to a machine with group-based access controls, I can always do a command line 'groups myusername' and get back a list of IDs instead of names.
    I started looking through logs, and found this in console.log:
    Aug 5 14:46:17 [hostname] memberd[42]: GetGroups couldn't find uid 845214537
    That got me looking at memberd. 'memberd -u myusername' returns what looks like a normal GUID:
    Found GUID = B260F349-9C6E-4933-9551-BAF662ED426E
    average time 5.1 mSecs
    But I try dumping the memberd log and found:
    2006-08-05 14:43:10 CDT User not found using id 845214537 (result is from cache)
    2006-08-05 14:43:21 CDT User 'myusername' found by name (result added to cache)
    Resetting the memberd cache (memberd -r) doesn't seem to help. Often, rebooting the machine will fix it, at least for a few minutes. It seems that I can often replicate the condition by unplugging the network connection then plugging it back in, though that doesn't always work. Sometimes the machines are already failing immediately after a reboot. Sometimes (rarely) only one of the many groups I belong to comes back as a number and the rest resolve just fine.
    I know it's not much info to go on, but I'm hoping that someone may have seen this before and knows exactly what I'm talking about, and that this someone happens to be checking this forum during WWDC (bad timing on my part). I can't get much detailed info about our AD setup, that's run by a different department.
    Clues anyone?
    Thanks,
    Joe
    iMac DualCores, G5 towers, G4 towers, you name it   Mac OS X (10.4.7)   AD on Win 2003, OD master on Server 10.4.7 on G5 tower

    Be specific! What update, what display?

  • User's Group Membership problem with enterprise domain

    Hi
    I have some problems synchronizing Active Directory in LiveCycle ES 8.0.1.
    I'm able to import the users and groups from an active directory to a enterprise domain... but the asociation user to group is not keeped.
    The problem could be why the DN of users is different to the DN of the group?
    the DN users is something like this:
    OU=CED,OU=CDC Utent,DC=house,DC=lan
    and the DN of the group:
    DC=house,DC=lan
    Thanks

    Ok, I think that is not DN value the problem... I tried with another active directory and the association user to group is keeped! But why?
    In the users details of active directory that doesn't synchronize well I have 2 more attribute:
    dSCorePropagationData
    profilePath
    But really I don't understand where is the problem. Maybe the version of Active Directory?
    Does anybody else have this weird issue?
    Thanks.

  • Group Messaging Problem

    When I send a group message and people in the group respond their responses come in as individual message rather than the response happening under the group thread.  It's something new that is going on because there are others having the same problem.  I was in a group message that was started by another individual and it happened with all of us, some iPhone some non iPhone users.  I checked the settings on the phone of the group text originator and group messaging and MMS was on, so that can't be the issue.  I think it may be a problem with the new update.

    Hello titussmith,
    Welcome to the Apple Support Communities!
    I understand that responses to a group text thread are coming into you as individual text messages. There may be an explanation for this behavior which is described in the attached article. I would recommend reading over the article and using it as a resource. 
    Send a group message with your iPhone, iPad, or iPod touch - Apple Support
    Why is Messages sending my group messages as individual texts?
    If you send a message to multiple people and at least one person isn't using group messaging, an individual message will go to each recipient using either SMS or MMS. Only the original sender will get any responses to these messages, in separate message threads.
    Have a great day,
    Joe

  • Wireless Group Policy Problem - Half the policy applying

    Hi
    I'm at a loss for where to investigate this one so I'm hoping for some suggestions.
    We have a single GPO to send out settings for wireless access to our network. On the wireless we have two SSIDs as below.
    1. Staff SSID
    My manager wanted to reduce the security issues with this as much as possible, so I've generated a GUID for the SSID name, set it not to broadcast the SSID and set the group policy to show the network as "<company
    name> Staff". It uses WPA2-Enterprise with RADUIS authentication to silently pass the authentication credentials of the currently logged on user providing SSO.
    2. Guests SSID
    This uses a preshared WPA2 key and provides guests with internet access and is blocked from the local LAN.
    The GPO is applied in such a way that company laptops are have the Staff SSID displayed in the available connection list, they're allowed to connect to it (as long as they're in the appropriate AD group for RADIUS authentication) but they are blocked from
    connecting their laptops to the Guests SSID. The important thing is that this single GPO controls both settings.
    On a few laptops we have been noticing that the blocking of the Guests SSID is working fine, but the Staff SSID is failing to show. Its as if only half the policy is applying. This is happening to only a small number of laptops which reside in the same AD
    OUs and it doesn't matter who logs on, the same problem occurs. The laptop is able to view all other wireless networks in the vicinity.
    I have logged in to one as myself (with Domain Admin permissions) and I get this problem, but on other laptops, the policy applies completely allowing me to connect to the Staff SSID while blocking the Guests SSID, as it should.
    I've run a RSOP against the laptop which shows that the policy is applying (confirmed by the fact that the Guests SSID is blocked) and the only problem I can find in the event logs are for the EapHost service with event ID of 2002. I've followed the advice
    in a few forum posts below but have been unsucccessful (not even sure if it's related to the GPO issue).
    http://www.eventid.net/display-eventid-2002-source-Microsoft-Windows-EapHost-eventno-10874-phase-1.htm
    http://www.sevenforums.com/network-sharing/336450-event-id-2002-source-eaphost-eap-method-dll-path-name-failed.html
    Any suggestion would be greatly appreciated.

    Hi Daverino,
    Since RSOP shows that the policy has been applied, it should not be a grouppolicy issue.
    According yourdescription, it seems that the system of the laptop has been changedby the user data.
    Could you please post the original information about event 2002? It is useful for further troubleshooting.
    Best Regards.
    Steven Lee
    TechNet Community Support

  • Large group mailout problem...

    I am trying to send a mail to a large group from mail v 2.0.5 but it will not send. I have tried various accounts but it will not go from any. I constantly get a message saying that it cannot be sent with that server after a very long wait.
    Can anyone help with this?
    Is there a maximum amount of people that you can send a group message to?

    I had already tried that, my isp says it has a limit of 200 recipients for any single mail, i have therefore changed one big group to blocks of 150 recipients per group.
    This still does not work! I have tried every account i own & still no joy, i have also tried every other fix i can find on this forum but none seem to work.
    i have uncovered another much longer thread than this with a few other people reporting similar problems so this leads me to believe it is a mail/ osx issue that needs resolving.
    Come on apple, listen to your users here, this is ridiculous! no other mail app has this sort of problem !
    any other workarounds that people may have would be gladly tried!

  • Person or Group column problem

    Hi, I have quite tricky problem with Person or Group column. We use that column in quite many places. When I create new item or edit list item properties I can find person just fine for example with lastname and choose it but when I save that
    item the persons name changes to someone else of our users.
    What I noticed is that if I search person with beginning of their email address (firstname.lastname) everything is good even after I save the item. With some persons it works even if I find them with lastname.
    Is there something to do with users ID in Site Collection hidden user information list vs User Profile Database?
    Any ideas. Thank you.
    Miikka

    Hi Miikka,
    can you try cleaning up the user information list via powershell and reconfigure the userprofile sync.  following url contains the powershell script for user information clean up
    http://blog.fpweb.net/how-to-clean-up-sharepoint-user-information-list-with-powershell/#.VPrbn_mUeSo
    Regards  Roy Joyson
    Please remember to mark your question as "answered"/"Vote helpful" if this solves/helps your problem.
    Roy Joyson

  • Iphone and droid group message problem

    I recently got the iphone 6.  I have a group text comprised of iphone and non iphone users.  If the discussion is just between the non iphone users the messages send properly (as a sms).  However, when an iphone user responds it automatically converts to iMessage and non iphone users stop receiving the group txt.  HELP!?!?!

    I had an iphone 5 and switched to Samsung galaxy S5 in August 2014.  Went through all the processes of de-registering number with apple imessage and had no problems with getting group messages from iPhone users.  Then, about beginning of January, no longer could receive group messages from my iPhone friends.  A couple have upgraded to the 6 but others had not.  I have a pending case with ATT support, worked with Samsung support and did a factory reset, still no fix.  I had two of my friends turn off iMessage today and send the group text, guess what?  IT WORKED.  So I totally agree, something has happened, maybe with a recent iOS update, not sure.  But, they cannot send me group texts with iMessage turned on.  Need help because I cannot afford to switch back to iPhone just so I can group text, but I'm getting left out of important information and events.  VERY FRUSTRATED!!!!!!

  • Group Message Problem

    If a picture message is sent to a group, I don't receive the message.  The other people do, but it does not come to my phone.  I don't know where to look to see what the problem is.????????

        Receiving pictures messages is important to staying connected and updated with friends and family LakeGal777. I recommend checking your message settings to ensure group messaging is enabled. Do you receive an error message when you receive a  picture or text message? Let's start here and get this resolved.
    KinquanaH_VZW
    Follow us on Twitter @VZWsupport

Maybe you are looking for

  • Follow up control action for Training and Event Management

    Dear Expert, I am new to TEM module. After the training course, I would like to set the course result to each participant (pass or fail) I tried to set the "Follow-up control options" for the selected course type and then execute tcode pv15, but stil

  • I can't activate my phone after updating to iOS 5.

    iupdated my phone to iOS 5..earlier i was so excited to use 200 new features..but now m realy v.ngry..m iphone 3GS is not geting activated...it shows..iphone update server temprorily unavailable..arrgghh... i hve tried bout a 50 times to activate it.

  • Workflow process locked by admin

    Hi I was using WLI BPM and suddenly the worklist application got hung. I killed the server and brought it up and the studio again. Now when I try to open the workflow in the studio, I get the message that 'The workflow is locked by admin'. I want to

  • Get skype call log from a year ago

    Dear Skype friends, i'm in a middle of a huge law suit and i need to show my skype chat logs for a specific contact i chat with from June 2012 untill September 2013. Please, is there any way to get that info from my account?

  • To replace SAP script with smartform in customer statement using t-code F.27

    Hi, I have a requirement to replace SAP script while generating a customer statement form using F.27 with Smartform. The standard program which triggers the SAP script is RFKORD11. Can anyone tell me how can we achieve this. Thanks in advance. BR, Ka