Autogenerate Group By, only on demand?

Hi,
I find SQL Developer's "Autogenerate Group By" function very useful. But it can be quite annoying as well, especially when I'm editing an existing query. It would be great if I could create my own code up to a point, and then invoke the "autogenerate" function when I'm ready.
I saw this blog post by Jeff Smith: http://www.thatjeffsmith.com/archive/2012/07/auto-generate-group-by-clauses-with-oracle-sql-developer/. It seems to indicate that this is in fact possible, quote: "I disable the automatic bits and just call it on demand with ctrl+spacebar". Ctrl-spacebar doesn't seem to do anything with "auto-group by" for me. Am I missing something?
TIA!

This is one of the changes coming in SQL Developer 4.0, with the "Semantic Advisor" feature (the early adopter release is out if you want to play with it).
See Jeff Smith's blog post for more info.
http://www.thatjeffsmith.com/archive/2013/07/semantic-analysis-info-tips-in-oracle-sql-developer-4-0/

Similar Messages

  • Effective Permissions to send email to distribution group having "only senders in the following list"

    Our environment is a mixed Exchange 2007 and Exchange 2010 server environment, still in transition (after 4 years). Users have Exchange 2007 mailboxes. A recent problem has been reported in a distribution group access model that has been working without
    complaint for several years.
    [email protected] has member John Doe ([email protected]), Jane Doe ([email protected]), "only senders in the following list" is set to GroupA
    [email protected] has member Rob Smith ([email protected]), Diane Smith ([email protected]), "only senders in the following list" is set to GroupB
    [email protected] has members GroupA, GroupB, "only senders in the following list" is set to GroupC
    When designed, we thought that when [email protected] sends an email to [email protected] it would be resolved to the user members of GroupC and delivered to everyone ([email protected], [email protected], [email protected], [email protected]). (While
    it seems unlikely, that this model has functioned for several years without experiencing this problem, it is conceivable that until recently [email protected] and [email protected] have with few exceptions always had the same membership. Recent changes in
    our organizational model have caused this to have some exceptions, and may be the root cause of this problem.)
    What we are experiencing is that users [email protected] and [email protected] receive the original email. Users [email protected], [email protected] do not receive the email. [email protected] receives an email "Undeliverable: test
    Delivery has failed to these recipients or distribution lists:
    [email protected]
    Your message wasn't delivered because of security policies. Microsoft will not try to redeliver this message for you. Please provide the following diagnostic text to your system administrator. Sent by Microsoft Exchange Server 2007.
    Diagnostic information for administrators
    Generating server: mail3.domain.com
    [email protected]
    #550 5.7.1 RESOLVER.RST.NotAuthorized; not authorized ##
    Original message headers:
    Received: from MAIL7.domain.com ([::1]) by mail3.domain.com ([::1]) with
    mapi; Mon 9 Mar 2015 07:00:30 -500
    Content-Type: application/ms-tnef;name="winmail.dat"
    Content-Transfer-Encoding: binary
    From: Jane Doe <[email protected]>
    To: GroupC <[email protected]>
    Date: Mon 9 Mar 2015 07:00:29 -500
    Subject: test
    What is the expected behavior?
    Does Exchange resolve the "To" distribution group to member mailboxes for delivery purposes, or does it walk the subordinate child groups and check security at each level?
    Is this a configurable behavior that may have recently changed as we have a "new" Exchange Admin poking around?
    Might this be related to the mixed Exchange 2007 / 2010 environment?
    Is there a way to obtain "effective permissions" for delivery restrictions?
    emc2

    Hi,
    From your description, I would like to verify if you have done some changes for GroupB distribution group. Ensure that "[email protected]" is added to the "accept list" in GroupB's message delivery
    restrictions.
    What's more, are GroupA GroupB and GroupC Exchange 2010 distribution groups?
    Best regards,
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Amy Wang
    TechNet Community Support

  • How do I group by only one column in a SELECT statement?

    Hi everyone,
    Here is my novice question:
    I would like to run a query where I select (display) several columns from my table, yet group (categorize) by one of these columns.
    For example:
    SELECT A, B, COUNT(A)
    FROM TableX
    GROUP BY A
    I realize now that this is not valid. My first question is why? Doesn't it make sense that you would want to group by only one of the columns? To me, it seems natural that you would most often want to categorize by one attribute, which is why it seems odd that this is not valid. I realize that I can remove column B, but I do want to display that info. I could also change the last statement to GROUP BY A, B to avoid errors, but this will also not display what I am looking for.
    In addition to understanding why Oracle is set up this way, I guess I also need to know how I can legally accomplish this query, grouping by A but also displaying the values of B.
    Thank you very much for your help!
    Holly

    Hi everyone,
    Thank you for your responses... very interesting and useful. Since I came across inline views in my reading, I tried the approach recommended by g feng, although I am eager to try the other approaches too.
    I ended up using an inner join simply to get more descriptive info. on the column that was being counted. With Y representing this second table, Y.B being the column containing the descriptive info., and A being the common key between X and Y, here is the simple code I came up with.
    SELECT Y.B, V.*
    FROM Y,
    SELECT A AV, COUNT (*)
    FROM X
    GROUP BY A
    ) V
    WHERE V.AV = Y.A
    Does this seem correct... anything I need to watch out for?
    Thanks again to everyone for your help!!
    Holly

  • SharePoint Hosted App to Read members of Site owner group, if "Who can view the membership of the group? " is set to Group members only

    Hi,
    Is there a way to read group members of site owner group via SharePoint hosted app . The "Who can view the membership of the group? " is set to Group members only. As per my research SCA can only view the group members of site owner group
    if this settings is applied.
    Thanks,
    Sudhir
    Sudhir rawat

    See this.
    Avoid changing the MaxPageSize LDAP query policy
    http://jeftek.com/219/avoid-changing-the-maxpagesize-ldap-query-policy/
    Regards~Biswajit
    Disclaimer: This posting is provided & with no warranties or guarantees and confers no rights.
    MCP 2003,MCSA 2003, MCSA:M 2003, CCNA, MCTS, Enterprise Admin
    MY BLOG
    Domain Controllers inventory-Quest Powershell
    Generate Report for Bulk Servers-LastBootUpTime,SerialNumber,InstallDate
    Generate a Report for installed Hotfix for Bulk Servers

  • BUG?: Code Editor – Completion Insight  - Autogenerate GROUP BY clause

    With the “Autogenerate GROUP BY clause” enabled the following problem occurs:
    Coding an inline select in an aggregate query:
      SELECT   (SELECT   DEPARTMENT_NAME
                  FROM   departments d
                 WHERE   d.department_id = e.department_id) dep
            , JOB_ID
            , SUM (salary)
        FROM   employees e
    GROUP BY   department_id, job_idCode group-by-autogenerate transforms this from time to time into:
      SELECT   (SELECT   DEPARTMENT_NAME
                  FROM   departments d
                 WHERE   d.department_id = e.department_id) dep
                 , JOB_ID
                 , SUM (salary)
        FROM   employees e
        GROUP BY (SELECT   DEPARTMENT_NAME
                  FROM   departments d
                 WHERE   d.department_id = e.department_id), JOB_IDWhich results in:
    ORA-22818. 00000 - "subquery expressions not allowed here"
    *Cause:    An attempt was made to use a subquery expression where these
    are not supported.
    *Action:   Rewrite the statement without the subquery expression.
    when trying to run it.
    (version 2.1.0.6.3; build MAIN-63.73; Windows XP)

    Duplicate of
    2.1 EA1 - Auto Group By inserted when unwanted/expected

  • How do I get an only on demand business package

    How do I download the business package for web editing as it says it is "only on demand" for download?
    Thanks
    Patrick

    HI Patrick
    Check out the following link
    https://www.sdn.sap.com/sdn/collaboration.sdn?node=linkFnode6-1&contenttype=url&content=https://Business package for web editing
    Regards
    Rajeev.

  • Run a macro on grouped worksheets only

    The Title says it all really:
    I want to run a macro on Grouped worksheets only, not on all worksheets in the workbook (I know how to code for all sheets in a workbook)
    Anyone give me a hand with the code I need to use?
    Many thanks

    Sub Macro1()
    Dim sh As Worksheet
    For Each sh In ActiveWindow.SelectedSheets
    'Use sh as an object in your code
    MsgBox sh.Name
    Next sh
    End Sub

  • ORA-15072: command requires at least 2 regular failure groups, discovered only 1

    Hi,
    I'm trying to create a diskgroup for a temporary purpose. I didnt mention the type of redundancy. When i ran the below command i got the mentioned errors.
    SQL> Create diskgroup temp_dg disk '/dev/mapper/003w1_e2p5' attribute 'compatible.asm' = '11.2.0.0.0';
    Create diskgroup temp_dg disk '/dev/mapper/003w1_e2p5' attribute 'compatible.asm' = '11.2.0.0.0'
    ERROR at line 1:
    ORA-15018: diskgroup cannot be created
    ORA-15072: command requires at least 2 regular failure groups, discovered only 1
    When i used two disks, then diskgroup got created.
    All the diskgroups in ASM are of EXTERNAL redundancy.
    SQL> Select distinct type from v$asm_diskgroup;
    TYPE
    EXTERN
    I would like to know why it was asking to create diskgroup of NORMAL redundancy. Is there some thing like default REDUNDANCY in ASM.
    Please share your views.
    By,
    Step Into Oracle DBA

    Hi,
    When i used two disks, then diskgroup got created.
    Becuase default redundancy for create diskgroup is NORMAL.
    SQL> Select distinct type from v$asm_diskgroup;
    TYPE
    EXTERN
    Did you  sure your diskgroup is created?
    Mahir

  • CRM ORG is supporting only one sales group to only one sales office,

    Hi Users,
    CRM system is supporting only one sales group to only one  sales office, not supported to multiple sales offices.
    Per ex : Sales Organization     Distribution Channel     Division        South Sales Office     South Sales Group
                                         AJE                                 EX                        BP        S100                            S01
                                         AJE                                 EX                        BP     S101                             S01
                                         AJE                                 EX                        BP     S103                             S01
                                          AJE                                 EX                        BP     S104                             S01
                                         AJE                                 EX                        BP     S105                             S01
    Sales group S01 assigned to sales office S100, but i need to assign my south sales group S01 to different sales offices in South region. in PPOMA_CRM is not supporting for multiple assignment.
    Anyone can provide solution for above issue?

    HI Denic,
    I have got your point, already done all settings for enhanced.
    Myside :
    Under Sales, based on client requirement created as ( N E W S ) regions, under each region made 4 offices.
    in SOUTH : OFFICE 1, OFFICE 2, OFFICE 3, OFFICE 4
    IN NORTH : OFFICE5, OFFICE 6, OFFICE 7, OFFICE 8
    IN EAST :     OFFICE 9, OFFICE 10, OFFICE 11, OFFICE 12
    IN WEST :  OFFICE 13, OFFICE 14, OFFICE 15, OFFICE 16
    *BUT SALES GROUPS MAINTAINED ONLY 4 LIKE SOUTH GROUP, NORTH GROUP, EAST GROUP, WEST GROUP.*
    IN ENHANSED ORG I HAVE MADE UNDER FUNCTION TAB IN PPOMA_CRM
    FOR SALES -
    > ASSIGNED SLS ORG & R/3 DIST CHAN, R/3 DIVI
       UNDER SALES --> SOUTH  ---> ALREADY ORG INHERITED FROM SALES  AND
              UNDER SOUTH  --> OFFICE1 --> IN FUNCTION TAB SALES ORG INHERITED, SALES OFFICE           SELECTED AS OFFICE 1 AND CHOOSEN R/3SLSORG, R/3 DISTRCHN, R/3DIVI.
    IN THE SAME FUNCTION TAB FOR SALES GROUP SELECTED SOUTHGROUP till THIS ITS WORKING FINE.
    PROBLEM IS : -
    For Office2 which is also belonged to south region, in Funtion tab inherited the sals org and assigned sales office but sales group i have to select southgroup only again for office2 also.
    But system not supported bcoz southgroup already assigned to Office1.
    Is there any solution inside PPOMA_CRM or we need to change the hierarchy of my client sales structure?

  • VBScript does not retrieve Member details if a Distribution/Security Group have only one Member

    Hi,
    VBScript does not retrieve Member details if a Distribution/Security Group have only one Member. I have tried several Scripts even changed the coding in it, also tried few External Script by created by other Scriptor's. Any suggestion on why this is happening. 

    Perfect... Thank you. I reworked on the Script and it is showing up. One more info required. I know my script is having another bug. Can you help me getting the member list of a User Group. When i pull it retrieves all the Group info for a user
    but no "Domain Users" Group.
    Sorry for the lame humor but it was getting late.
    As for you new request.  I do not understand what you are asking. Can you post your script and any error messages you are getting.
    ¯\_(ツ)_/¯

  • Group Message only sends iMessages not SMS

    Hello all. I just recently moved to Android but my spouse is still on an iPhone. For some reason, when she group messages it is only sending responses to those with imessage on their phone.  However if she sends me a non group message (only me) it recognizes it as a SMS, turns green and sends the text perfectly. However it will not recognize that I do not have imessage when sending a group text.
    She has iMessage, Send as SMS, MMS Messaging and Group Messaging all turned all, but no luck.
    The other people with iphones in the group, can send the group texts and their iphones are converting my text to SMS. Its just my wifes phone not sending me SMS when I am in a group, only sending me a SMS when direct to me only..
    The phone is updated to the latest software, and I even rebooted her phone with no luck..
    Anyone have any idea what is happening?
    Arghh...........

    You can only send imessage to other iphone user running IOS 5.0 or higher.
    Other phone will send as a text.  http://support.apple.com/kb/HT3529

  • How to display group data only when the particular group is clicked

    Hi frnds,
    I want to design my report as follows:
    Data is grouped by country, and for each country it is showing details for that country. I need to find out a way to display all group names first.  E.g.
    Argentina
    Aruba
    Australia
    And on click of particular country name it should display its details below it
    e.g.
    -Argentina
         BBB            Mendoza          123456
    +Aruba
    +Australia
    Has anyone done that before??? Is it possible to achieve it through Crystal Report Designer (2008)?? If yes then how???
    A prompt reply would be appriciated as i need this information urgently.
    Thanx.

    Thanx Jehanzeb,
    The sample u suggested did not solve my problem since it is opening the group data in new window.
    My question is - can we show/hide group data by clicking on that particular group (under that group name).
    e.g.
    ->(initial display - only groups)
    + Australia
    + America
    + Bhutan
    ->(on clicking a group)
    + Australia
    \- America
    abc    xyx    12213213    wqe9090
    dsd    dcv     90eur90e    ifjjdioifdoi
    + Bhutan
    In short, I am looking for on-demand display of records grouped by some field and the expansion of data must be done in the same page.
    Edited by: Kuldeep Chitrakar on Aug 6, 2008 12:44 PM
    Edited by: Kuldeep Chitrakar on Aug 6, 2008 12:45 PM
    Edited by: Kuldeep Chitrakar on Aug 6, 2008 12:46 PM

  • I have created a group in my address book, but when I try to use it to send out a group email, only a comma shows up. How do I send out an email using my new group contact list?

    I have created a group in my address book, but when I try to use it to send mail, only a comma shows up. How can I send mail using my new group? I have an IMac with OSLion.

    I will agree with you on this one. Version 31 and all the fixes so far are a mess. Since I have been here answering questions for a little more than a year now I have learned to wait to upgrade until all the dust settles. I see no end to the dust storm version 31 has caused. I am still on version 24.6 and plan on staying there for the duration. At least until the developers comes to their senses and put out a working product.

  • Exchange rate difference posted to Group currency only during MIRO

    Hi SAP Gurus,
    We're activating parallel currency in ML and USD is the group currency. GR/IR clearing acct is managed in local currency only.
    OB22
    Crcy Type  30    Group currency                               Currency   USD
    Valuation        Legal Valuation
    ER Type    M     Standard translation at average rate
    Srce curr. 1     Translation taking transaction currency as a basis
    TrsDte typ 3     Translation date
    Please find below scenario:
    Co code currency: ZAR
    PO: ZAR
    Upon GR:
    Posting date- 04/14/2009 exch. rate 1ZAR= 0.11099 USD
    Entry: debit Expense - 4,078.19 ZAR/ 452.64 USD
              credit GR/IR acct -   4,078.19 ZAR/ 452.64 USD
    Upon IR:
    Posting date- 04/20/2009 exch. rate 1 ZAR= 0.11279 USD
    Entry: debit GR/IR acct - 4,078.19 ZAR/ 452.64 USD
              credit Vendor acct - 4,078.19 ZAR/ 460.02 USD
    automatic additional debit Expense - 0.00 ZAR/ 7.38 USD
    Here are my questions:
    1.) Where would I check the setting for the GL account used in the automatic line entry posted in group currency during IR? (3rd line item above)
    2.) Can this be changed? Say instead of the original acct assignment, the management want to change it to FX gain/loss account
    3.) How?
    I have checked several notes (331910,etc) but I can't seem to find the answers to my questions.
    Appreciate your help. Thanks!
    Regards
    Dru

    Just an update to this issue- I just found out that the system is pointing to KBS when posting the
    exchange rate difference in group currency upon IR, hence, PO account
    assignment is adopted. I'd like to rephrase my question- is there any
    way we can change SAP behaviour such that it will point to other
    transaction key (e.g. KDG) other than KDM? Bottomline is we want it
    charged to other GL account not the one in the PO.
    Thanks so much for your assistance.
    Regards,
    Dru

  • Radio group read only problem

    Hi,
    I have three radio group items that are defined EXACTLY the same except for the label and associated database column. Each radio group item uses the same named LOV for "Yes" and "No". Each field contains either a "Y" or "N" value.
    When the "read-only" condition is satisfied, two of the three radio group items incorrectly do not have either the "Yes" or "No" radio button checked. When I change all three fields from "radio group" to "select list" then all three fields display either a "Yes" or "No" value correctly.
    Doesn't the radio group work when the read-only condition is satisfied? Is there a work-around to it?
    Thanks, Andy

    We are using APEX version 2.0.
    Has this been fixed in version 2.2?

Maybe you are looking for

  • Scheduling in Warehouse Builder

    Hi all, There is an urgent requirement for scheduling in warehouse builder in my project. Can any one provide me the doucument for the scheduling processes in warehouse builder.

  • 11g ADF TaskFlow Exception Handling in BPM

    Hi Guys BPM 11g I have a human task that is implemented as an ADF task flow. I would like to be able to throw an exception from the ADF application and have it handled by the BPM process, does anyone know if this is possible or how I would do that? A

  • Help Using the InfoSwing ComboBoxControl

    I'd like to use ComboBoxControl as a quick find/navaigation feature, possibly within a Navigation component. E.g., go to a contact record by Last Name. I have created a Lookup rowset but I am unable to even get the LOV from this rowset to appear in t

  • ADF Mobile App integration with webservices, connection refused error

    I created an ADF application for department search with business components and exposed this as a webservice. I can access the WSDL locally from a browser. Then created an ADF mobile application and deployed it to android emulator. I am able to deplo

  • I have a signwave icon showing on my inbox in mail. What does it mean?

    On the Inbox line in Mail, I often have a circle with a sinewave in it, other times there is another triangle looking icon and at other times no icon. Could someone explain the meaning of the icons please?