Execution sequence of connect by and group by
Hi All,
I know 'connect by' precedes 'where clause'. And I can use a test case to test this.
But I can't figure out which comes first, connect by and group by.
Can someone give me some tips on this, pleaes?
And another confusion of mine is execution sequence of select and order by.
In my opinion, since order by can read the alias of selected column, I think the sequence is that oracle select rows first and then sort them.
Please correct or confirm my statement.
Best regards,
Leon
Hi, Leon,
user12064076 wrote:
Hi All,
I know 'connect by' precedes 'where clause'. And I can use a test case to test this.
But I can't figure out which comes first, connect by and group by. Can you figure out if WHERE precedes GROUP BY?
SELECT job
, COUNT (*) AS cnt
FROM scott.emp
WHERE sal < 2500
GROUP BY job
;Aggregate functions, like COUNT, are evaluated as the GROUP BY clause is being performed. After the GROUP BY clause, only the ABC's (<b>A</b>ggregates, Group <b>B</b>Y expressions, <b>C</b>onstants, and <b>D</b>eterministic combinations of these) can be referenced.
Can someone give me some tips on this, pleaes? Consider this query:
SELECT LEVEL
, COUNT (*) AS cnt
FROM scott.emp
START WITH mgr IS NULL
CONNECT BY mgr = PRIOR empno
GROUP BY LEVEL
;Output:
` LEVEL CNT
1 1
2 3
4 2
3 8
And another confusion of mine is execution sequence of select and order by.
In my opinion, since order by can read the alias of selected column, I think the sequence is that oracle select rows first and then sort them.
Please correct or confirm my statement. Yes, the ORDER BY clause is evaluated after the SELECT clause. The ability to reference column aliases in the ORDER BY clause hints at this. Also, you can say
ORDER BY 1
Similar Messages
-
Maximum number of connection profiles and group policies for Cisco ASA
Hi,
We have a Cisco ASA 5520 running 8.0(2) that we use only for Remote Access VPN.
Does anyone know how many connection profiles and group policies that are supported on the box? I have not been able to find this in the manual.
Thanks in advance for your help!
Best regards,
HarryThere is no limit for connection profiles or group policies that can be configured on ASA. However the numbers do depend upon the memory available in the device as the profiles are stored in memory during execution.
-
Can anyone explain in the Boundary Groups the Setting of Connection SLOW and FAST?
Hello,
we have many locations with DP´s and created Boundary Groups with the Connection FAST.
Now we have some Clients outside they are connected only with UMTS or DSL.
For DSL the connections is set to FAST and for UMTS is set to SLOW.
I must explain that i take over a configuration because i am a new employee here.
Can anyone explain me the different, in detail, of SLOW and FAST?
thank you well and with best regards.
AndréQuote from here:
http://technet.microsoft.com/en-us/library/gg712679.aspx#BKMK_BoudnaryNetworkSpeed
"You can configure the network connection speed of each distribution point in a boundary group. Clients use this value when they connect to the distribution point. By default, the network connection speed is configured as
Fast, but it can also be configured as Slow. The network connection speed and the deployment configuration determine whether a client can download content from a distribution point
when the client is in an associated boundary group."
So basically, when you deploy something, this setting determines does the client download the content or not. Shown in the bellow picture:
For example, if you have a client configured inside boundary group that's 'Slow' and then you deploy something to this client, you can configure does the deployment run or not. -
Execution Sequence of 'Personalization' and 'Standard Form Trigger'
Dear All,
A basic question, How about Execution Sequence of 'Personalization' and 'Standard Form Trigger'?
Which one will be firstly executed? any document about this question?
Thanks a LotHi HTH,
Actually I am not asking for Trigger Execution Sequence, I am asking Sequence between 'Personalization' and 'Standard Form Trigger',Personalization is first or Standard Form Trigger is first.
for example,if i have code at W-N-F-I trigger at standard trigger and Personalization , which code get invoked first?
Tks -
Hi all,
Im little confused with the capacity header in work center. In the capacity header there is one place to give start time, end time, length of break and number of individual capacity. And in grouping key i can define the shift and shift sequence. So if im maintaining both of these ( standard avilable capacity and grouping key), which will be considered to calaculate avilable capacity?Hi
If you are running three shifts ,please maintain the data as given belwo
start :00:00:00
End:23:59:59
Break :03:00:00 ( 1 Hour per shift so 3 hrs for 3 shifts)
No.of individual capacity :1
System will understand that it is round the clock operation with total three hour brak and you will get 21 hour per capacity
Hope this helps
regards
Prakash -
Whats the table name which connects BP and customer group code?
Hi,
Please let me know the table name which connects BP and its customer group code, i tried CRMM_BUT_SET0010 but i am not sure how to get "GUID for sets of business part"
regards
VinayHi Vinay
Try instead table vision CRMV_BUT_SET0010. There you can use as search criteria the business partner number.
However, if you want to understand the partner relation with guid_set value, just study how this table vision join is built.
Kind regards,
Garcia -
How can I stop the execution on a JSP page and start it again
Hi
I am making a program that simulates how to manage transactions when accessing a database by using locks. I have run into a problem and I hope someone has the time to help me.
When a user does an update the transaction commits and releases its locks when the program executes
<%stmt.executeUpdate("commit!"); %>
I need to put a break in to stop the program executing this statement, to illustrate the lock is set correctly.
I have tried to put in an alert box but this does not prevent the rest of the java code being executed.
I have tried to use prompt boxes, JavaScript functions, but these functions cannot have any java code in them.
I have tried using the java.swing JOptionPane boxes but this didn?t work either
I have tried to get input from the user but I don?t know how to retrieve this data on the same page. (As far as I know you have to use submit and even refresh the page or retrieve it on the next page).
Does anyone know how I can stop the execution on a JSP page and start it again (on same page)
MetteI already have another client (Tomcat jsp application) running and it throws a SQLException correctly when I don�t put in a commit=true statement and don't close the database connection.
But the problem is how to get the code above to stop to illustrate I have set this lock.
I have tried to use the JOptionPane but because my program is running in a web browser I cannot use the JOptionPane dialog box.
I have tired using an alert box but it executes the commit statement before the alert box is dispayed. So this does not work
While (i < 2)
if( i==1)
%>alert(�The transactions commits when you press Ok�); <% //what it to stop execution here
else
stmt.executeUpdate(�commit�);
I am not using threads so I cannot use the sleep function.
I am using mysql and have already configured it to detect deadlocks and how long to wait for locks.
Thanks for your help
Mette -
The best way to connect wireless and wired for a WRT160N.
It took me about 4 hours to find out how to connect wireless and wired to a network using model WRT160N. Here is what I have done. First install the CD when it says there is not connection connect your PC, Modem and router Andy any wireless are wired products, after that do what the linksys advisor tells your which is default. When it gives you the security key write it down because you will need it for your wireless and wired Products. Under security mode type your SDD name and where key 1 is type your security password with was given to you. Remember all you wireless products have to have the same SDD Like Linsys and all your wired products have to have a different name like Linsys2 but your Key 1 numbers has to stay the same. That is all you have to do. Remember that wireless and wired has to be in sequence. That should do it.
Hi David Hamilton1;
I guess that all depends on how critical your data is in relation to how much time you want to spend doing the erasure. Those higher level erasure options can take a significant amount of time to complete. Personally I don't have anything on my Mac that I think is worth more time then a simple erasure even if that does leave it some what recoverable. To me it seems some people are going overboard on this issue.
Allan -
Windows 7 DNS and Group Policy Issues
Hi,
We have several suites of Windows 7 domain connected PC's.
In one of the suites I have been called into look at 3 different PC's where the users have not got mapped drives, desktop backgrounds, internet connectivity - because their group policies have not applied.
When I look at the error logs I find DNS 1014 errors, and Group Policy 1054 errors.
I have looked at the logs on the switches, and there is nothing on them - Could a pupil pulling the network cable out cause these errors?... Possibly they could have put it back in before I got back in the room.
The user logs off of the PC and back on again and are fine, as are the users that logon after them.
We have 2 DC's/DNS servers, which I would have thought would be able to cope with the load here.
Please let me know what you think the likely cause could be.Hello John555444,
What is your current situation?
Is this issue resolved?
Best regards,
Fangzhou CHEN
Fangzhou CHEN
TechNet Community Support -
How to get the user and groups information from http header
Hi All,
In my current scneario, we are using Siteminder for SSO setup.. And in this process, after authentication and authorization, they are going to append the user information and group information of the user into a HTTP header and it will be sent back to our presentation services.. We have to extract the user information and group information from the http header.
My HTTP header will look like as follows..
SM_USER XYZ
SM_USERDN CN=Firstname\, Lastname\, xyz, OU=GPO-Low Level Security,OU=Domain Users,OU=BU FDT,
SM_USERGROUPS CN=GG-CA-SiteminderAdmins, OU=Global,OU=Domain Groups, DC=com^CN=GG-ServiceDeskAdmin-TCCORPCEFS
And also if anyone explain me the overall working of SSO in detail like how presentation services will make a connection to BI server( I guess using Impersonator User), and also how our BI server will read the URL from presentation services and the over all working flow in our OBIEE..
Thanks a lot....Please use the search! this topic has come up lots of times already.
-
Trouble Connecting iPad and iPhone to Exchange Server 2010
Exchange Server 2010.
I have found some online instructions for connecting iPhones and iPods (or iPads) to Exchange Server 2010 using activesync. I enter all the information as I understand it (the same info used to successful connect Droids), and I do not get an error
until I try to sync (retrieve mail) the first time. Then it says, "The connection to the server failed."
In the instructions I follwed it has this statement, "Before we get started, please be sure your administartor has purchased you an Activesync license and assigned to
your email address." What the heck does this mean and how can I accomplish it? I know activesync is working. So why do I need a "license"?
Any help will be appreciated.
Doug Pruiett Good News Jail & Prison Ministry Richmond, Virginia www.goodnewsjail.orgWhen I tested with the Microsoft Remote Connectivity Tester, it failed on the last step:
ExRCA is testing Exchange ActiveSync.
The Exchange ActiveSync test failed.
Test Steps
Attempting to resolve the host name mail.goodnewsjail.org in DNS.
The host name resolved successfully.
Additional Details
IP addresses returned: 74.94.213.106
Testing TCP port 443 on host mail.goodnewsjail.org to ensure it's listening and open.
The port was opened successfully.
Testing the SSL certificate to make sure it's valid.
The certificate passed all validation requirements.
Test Steps
ExRCA is attempting to obtain the SSL certificate from remote server mail.goodnewsjail.org on port 443.
ExRCA successfully obtained the remote SSL certificate.
Additional Details
Remote Certificate Subject: CN=mail.goodnewsjail.org, OU=Domain Control Validated, Issuer: SERIALNUMBER=07969287, CN=Go Daddy Secure Certification Authority, OU=http://certificates.godaddy.com/repository, O="GoDaddy.com, Inc.", L=Scottsdale, S=Arizona,
C=US.
Validating the certificate name.
The certificate name was validated successfully.
Additional Details
Host name mail.goodnewsjail.org was found in the Certificate Subject Common name.
Validating certificate trust for Windows Mobile devices.
The certificate is trusted and all certificates are present in the chain.
Test Steps
ExRCA is attempting to build certificate chains for certificate CN=mail.goodnewsjail.org, OU=Domain Control Validated.
One or more certificate chains were constructed successfully.
Additional Details
A total of 1 chains were built. The highest quality chain ends in root certificate OU=Go Daddy Class 2 Certification Authority, O="The Go Daddy Group, Inc.", C=US.
Analyzing the certificate chains for compatibility problems with Windows Phone devices.
Potential compatibility problems were identified with some versions of Windows Phone.
<label for="testSelectWizard_ctl12_ctl06_ctl02_ctl02_ctl01_tmmArrow">Tell
me more about this issue and how to resolve it</label>
Additional Details
The certificate is only trusted on Windows Mobile 6.0 and later versions. Devices running Windows Mobile 5.0 and 5.0 with the Messaging and Security Feature Pack won't be able to sync. Root = OU=Go Daddy Class 2 Certification Authority, O="The Go Daddy
Group, Inc.", C=US.
ExRCA is analyzing intermediate certificates sent by the remote server.
All intermediate certificates are present and valid.
Additional Details
All intermediate certificates were present and valid.
Testing the certificate date to confirm the certificate is valid.
Date validation passed. The certificate hasn't expired.
Additional Details
The certificate is valid. NotBefore = 2/19/2013 3:16:45 PM, NotAfter = 4/13/2016 1:07:13 AM
Checking the IIS configuration for client certificate authentication.
Client certificate authentication wasn't detected.
Additional Details
Accept/Require Client Certificates isn't configured.
Testing HTTP Authentication Methods for URL https://mail.goodnewsjail.org/Microsoft-Server-ActiveSync/.
The HTTP authentication methods are correct.
Additional Details
ExRCA found all expected authentication methods and no disallowed methods. Methods found: Basic
An ActiveSync session is being attempted with the server.
Errors were encountered while testing the Exchange ActiveSync session.
Test Steps
Doug Pruiett Good News Jail & Prison Ministry Richmond, Virginia www.goodnewsjail.org -
Sequence of ABAP code and events.
Hello,
Please tell me the proper sequence of writing ABAP code.
(Event execution sequence and code writing sequence.)
- which event should follow which event?
- which code should be written where?
- Sequence of Includes (e.g. TOP, PBO, PAI, Subroutine,etc.)
Regards,
Sharayu.Sequence of Includes:
TOp Include (All data declarations/Selection screen declared here)
Form Include ( All subroutines are placed inside it)
For a Screen
PBO
PAI
Load of program:When the program is executed
INITIALIZATION: Fill the default values into the fields or we can assign values to the fields in this event. It triggers first.
AT SELECTION-SCREEN: It is commonly used for validations like ON-REQUEST ( for search help) , OUTPUT ( modify screens ).
TOP-OF-PAGE: Header of the report or any data to print on top of the page in list.
END-OF-PAGE: Footer details like page no: / total no: of pages.
START-OF-SELECTION: For processing ur code selects, loops, FM'S and all.
END-OF-SELECTION: Output formating. It is not required to write normally but in some special conditions like to print after the START-OF-SELECTION event. -
Before report trigger execution sequence
Hi,
What is the execution sequence of the before report trigger ?
In the report builder help, the definition says "The Before Report trigger fires before the report is executed *but after queries are parsed and data is fetched*."
But the oracle document "Oracle iDS Reports: Build Internet Reports: Volume 2: Student Guide" says
"Before a report executes; *after queries are parsed, but before records are fetched*
I have built a report where, i am populating a table A with some data in the before report trigger. The data model query is a "select * from A ". But the report o/p is blank since the before report trigger was fired after the query was parsed and fetched. My understanding is that the queries should only be parsed but not fetched before the "before report trigger"
Regards,
SureshHi,
this is an important question.
In fact the online help is right: Before its execution the query is parsed and data fetching is strarted.
Thus any plsql operation that may influence the query and the data accessed is too late in the BEFOREREPORT trigger.
THe issue is that there is no error message or warning. THe problem scenario bandwidth is wide: From "no problem at all" to constant or intermittent error scenarios or worst case unrecognized problems like missing records or any strange behavior in the layout.
So very carefull while using BEFOREREPORT trigger
Ciao
Markus -
Hi,
I am trying to bind LDAP with OBIEE 11G. I am using following Rittman Blog
http://www.rittmanmead.com/2010/11/oracle-bi-ee-11g-security-integration-with-microsoft-active-directory/
whenever i click USERs and GROUPs it takes a hell of time(more than 30 mins) to display users and groups, Please suggest if any thing can be done abou it
All other tabs and setting are working fine.
I did not find any thing in Adminserver.log
Please suggest
Regards
SaurabhHi Kishore,
In 'All User Filter' field is left blank
In 'User Name Attribute' I filled sAMAccountName.
Also i check Adminserver-stdout log, the one which we create after we create windows services. There i can see following error
Jan 18, 2012 6:00:16 PM GMT+05:30> <Error> <Console> <BEA-240003> <Console encountered the following error java.lang.RuntimeException: netscape.ldap.LDAPException: Server or network error (81); Cannot contact LDAP server
I guess its not able to connect LDAP server. But I checked all the attribues twice (on 10G LDAP configuration) they are working. I am not sure if there is problem in attributes or there is some setting I am not aware about.
Please suggest! -
Hello.
in Solaris 10 i need auditing process create, delete, privilege escalation, set and change password and etc... from users account and group.
I set settings:
in file syslog.conf:
*.info;mail.none;cron.none;audit.notice @IP-Remote-syslog-server-SIEM
in file /etc/security/audit_control:
dir:/var/audit
flags:lo,ad,ex,cc,am,no,fc,fd
minfree:20
naflags:lo
plugin:name=audit_syslog.so;p_flags=lo,ad,ex,cc,am,no
in file /etc/security/audit_user:
root:lo,ad:no
Now I see in the logs only the fact of a connection via SSH and run processes on behalf of users. Creation. delete users, change passwords for some reason do not is logged.
Many users. For each individual write permissions in the file /etc/security/audit_user not possible, it is likely to forget any new user (or there is a possibility in this file one line to describe the audits for all accounts?)
Where is the mistake?You are most likely hitting Bug 15779000 user/role/groupadd/mod/del don't audit their use.
And the fix is only available in S11.2.
-- Renaud
Maybe you are looking for
-
When I print a 4x6 color picture using an iMac with the latest operating system using a Canon MX892 printer, faint black lines appear every 3/16 of an inch. When I print the same picture using iPhoto there is no problem. Any suggestions?
-
When i double click on an item in the firefox dowloads window the item dos'nt open.Left clicking on the item dose not give me the choice to "open" the item. the downloaded item is a pdf file of 59 kb, and was downloaded using adobe acrobat version 5
-
Can I use existing SSD in new 2013 macbook pro?
Hi I have a 2009 macbook pro intel core 2 duo, and need more computing power to run Lightroom, as i'm a photographer. I upgraded my RAM to 8gb, and bought a 500Gb SSD but my MBP still struggles with Lightroom. I was thinking to upgrade to the lates
-
Problem in creating client database..
hi all, I am trying to add publicaion Items by using APIs and then publishing it by Packaging Wizard.how can i create client data snapshot by using APIs.Beacuse I am not able to create any client database on downloading this application on client mac
-
"anniversary" field in my iphone contact with an funny date
My iphone 4 contact sync with outlook 2007 and my outlook sync with google contact. However, I noticed that my iphone shown a field "anniversary" in the iphone contact which I did not enter in either iphone, outlook 2007 or google contact. This happe