Level and Connect by
Hello all,
Can anyone define LEVEL and CONNECT BY as i'm unable to figure out its concept.
Thank You
KK
Perhaps an example may clarify...
SQL> ed
Wrote file afiedt.buf
1 select empno, level, lpad(' ',(level-1)*2,' ')||ename as ename
2 from emp
3 connect by mgr = prior empno
4* start with mgr is null
SQL> /
EMPNO LEVEL ENAME
7839 1 KING
7566 2 JONES
7788 3 SCOTT
7876 4 ADAMS
7902 3 FORD
7369 4 SMITH
7698 2 BLAKE
7499 3 ALLEN
7521 3 WARD
7654 3 MARTIN
7844 3 TURNER
7900 3 JAMES
7782 2 CLARK
7934 3 MILLER
14 rows selected.
SQL>
Similar Messages
-
Hi Friends,
I have table TEST_REP with below data
DA SUMA
2011 2
2011 3
2011 5
2012 2
2012 7
2014 2
2014 10
2015 2
2016 33
2015 26
2017 21
2017 2
2018 23
13 rows selected
I have used following query to get the below output:
select
br_mat MAT_YEAR,
sum(br_par) TOTAL
from (
(select to_char(da) br_mat,suma br_par from test_rep)
UNION ALL
select to_char(seeddate + level-1),0
from dual d, (select min(da) min_maturity_year,
max(da) max_maturity_year,
TO_Number(TO_CHAR(sysdate,'YYYY')) seeddate
from test_rep
) t
connect by level <= (t.max_maturity_year - t.min_maturity_year) + 1
group by br_mat
order by br_mat;
Output :
MAT_YEAR TOTAL
2011 10
2012 9
2013 0
2014 12
2015 28
2016 33
2017 23
2018 23
2019 0
2020 0
10 rows selected
Expected Output :
MAT_YEAR TOTAL
2011 10
2012 9
2013 0
2014 12
2015 28
2016 33
2017 and Greater 46
Please help .Adapt your query using something like (the following won't list missing years - 2013) NOT TESTED!
select case when da >= :upper_limit
then :upper_limit || ' and Greater'
else to_char(da)
end mat_year,
sum(sumA) total
from test_rep
group by case when da >= :upper_limit
then :upper_limit || ' and Greater'
else to_char(da)
end
order by 1
Regards
Etbin -
I have plugged a portable battery to the USB and my macbook pro stopped working after that, right before it shut down there was a message on the screen that said something like " USB device is withdrawing so much power, please disconnect and connect again?
if the device I connected have caused this, shouldn't the macbook itself have some type of protection that should prevent this from happening.
because when I took it to an apple certified maintenance shop, the guy said that now it could only run while connected to the power. it won't run on batteries. and that I have to change the motherboard.
can I just replace the damaged part only, would apple consider this as a design issue and they could pay for it, or should I just buy a new motherboard for 800$.
Help.BB1B2,
The problem is in finding a tech shop that will/can do board level repairs on Macs. They are few. And I certainly wouldn't spend $800 on a new logic board - I would replace the computer if I had to pay that much!
You could call around to a few repair shops and see if they feel competent to isolate the problem and do a board level repair - but I'm afraid, in the end, that your search will be futile.
Sorry,
Clinton -
I can't connect to the router in my home. The Ipad seeks the network but nothing happens. I went to school and connected to their WiFi network as usual with no problems. When I returned home I could not connect to my home router. The Ipad seeks the router number but nothing happens. I rebooted the Ipad a few times in the school. The numbers identifying the router, etc. on my Ipad no longer appear there.
TThe Ipad guide says to connect to the WiFi use setup but I can't find the setup program in the Ipad.
I reset the network settings to the factory defaults but this doesn't fix the problem.
What can I do to reconnect to my home router?Some things to try first:
1. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
2. Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
3. Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
4. Go into your router security settings and change from WEP to WPA with AES.
5. Renew IP Address: (especially if you are droping internet connection)
• Launch Settings app
• Tap on Wi-Fi
• Tap on the blue arrow of the Wi-Fi network that you connect to from the list
• In the window that opens, tap on the Renew Lease button
~~~~~~~~~~~~~~~~~~~~~~~~~
iOS 6 Wifi Problems/Fixes
How To: Workaround iPad Wi-Fi Issues
http://www.theipadfan.com/workaround-ipad-wifi-issues/
Another Fix For iOS 6 WiFi Problems
http://tabletcrunch.com/2012/10/27/fix-ios-6-wifi-problems-ssid/
Wifi Doesn't Connect After Waking From Sleep - Sometimes increasing screen brightness prevents the failure to reconnect after waking from sleep. According to Apple, “If brightness is at lowest level, increase it by moving the slider to the right and set auto brightness to off.”
Fix For iOS 6 WiFi Problems?
http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
iOS 6 iPad 3 wi-fi "connection fix" for netgear router
http://www.youtube.com/watch?v=XsWS4ha-dn0
Apple's iOS 6 Wi-Fi problems
http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
~~~~~~~~~~~~~~~~~~~~~~~
How to Fix a Poor Wi-Fi Signal on Your iPad
http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Fix-A-Poor-Wi-Fi-Signal-O n-Your-iPad.htm
iOS Troubleshooting Wi-Fi networks and connections http://support.apple.com/kb/TS1398
iPad: Issues connecting to Wi-Fi networks http://support.apple.com/kb/ts3304
WiFi Connecting/Troubleshooting http://www.apple.com/support/ipad/wifi/
How to Fix: My iPad Won't Connect to WiFi
http://ipad.about.com/od/iPad_Troubleshooting/ss/How-To-Fix-My-Ipad-Wont-Connect -To-Wi-Fi.htm
iOS: Connecting to the Internet http://support.apple.com/kb/HT1695
iOS: Recommended settings for Wi-Fi routers and access points http://support.apple.com/kb/HT4199
How to Quickly Fix iPad 3 Wi-Fi Reception Problems
http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
iPad Wi-Fi Problems: Comprehensive List of Fixes
http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
Connect iPad to Wi-Fi (with troubleshooting info)
http://thehowto.wikidot.com/wifi-connect-ipad
Fix iPad Wifi Connection and Signal Issues http://www.youtube.com/watch?v=uwWtIG5jUxE
Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
How To Fix iPhone, iPad, iPod Touch Wi-Fi Connectivity Issue http://tinyurl.com/7nvxbmz
Unable to Connect After iOS Update - saw this solution on another post.
https://discussions.apple.com/thread/4010130
Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
~~~~~~~~~~~~~~~
If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
Cheers, Tom -
I am working with Georgia DOT and we have created an app to track our state vehicles using IPhone 5. My question is: will an iPhone automatically turn off location services? If it goes below a certain battery power level, and if so how do you disable this in settings.
Message was edited by: mickyelI don't believe that this will happen, however, the entire iPhone will shut down when the iPhone reaches the auto-shutdown power level. There is no way to turn that Off other that connecting the iPhone to power.
-
Using START WITH and CONNECT BY PRIOR in a report
Hi - I am using Oracle 9i and reports 10g. Does anyone know of a reason why running my sql in TOAD will produce the correct results, but the report is dropping records? I am using start with and connect by prior to build a hierarchy of linked records. The report is dropping the "child records" and only returning records from the route level.
Thanks you for your help.Hi user574499
Could u pls share us ur Query...?
Regards,
Abdetu... -
I want to upgrade a SQL Server from 2008 R2 to 2012. When I run upgrade advisor, I get the following error messages:
Rule "Valid Database compatibility level and successful connection" failed.
The report server database is not a supported compatibility level or a connection cannot be established. Use Reporting Services Configuration Manager to verify the report server configuration and SQL Server management tools to verify the compatibility
level.
Rule "Valid Database server collation and successful connection" failed.
The SQL Server Database Engine is not configured with a valid server collation and cannot be used as the Reporting Services SharePoint Shared Service catalog database.
The database called ReportServer has Collation = Latin1_General_Cl_AS_KS_WS and Compatibility level = 100Hi Andrew,
Regarding to the first error message, please check the Reporting Service Configuration Manager, make sure that you connect to ReportServer database from the correct server
and use servername\instancename format connection string. For more details, please review this similar
thread.
Regarding to the second error, it is caused by that the current SQL Server Database Engine server is using an incompatible server collation.
SQL Server 2012 Reporting Services SharePoint mode utilizes the SharePoint shared services architecture. SharePoint does not support SQL Server Database Engine configured for case sensitive or server collations or binary server collations.
And since the SQL Server Database Engine server collation property cannot be changed, you will not be able to complete an upgrade of Reporting Services. You will need to migrate your Reporting Services installation to a new server which is using a compatible
server collation. For more details, please review the following article:
Incompatible Database Engine Server Collation:
https://msdn.microsoft.com/en-us/library/hh759335%28v=sql.110%29.aspx?f=255&MSPPError=-2147217396
Thanks,
Lydia Zhang
Lydia Zhang
TechNet Community Support -
Should my iPhone 1 (iOS 3.1.3) with Bluetooth 2.0 (Handset HSP?) work with wireless earbuds with BT 4.0 and the Headset (and Handsfree, A2DP, AVRCP) protocol? They pair and connect as expected (with a PIN); status bar looks good and shows Bluetooth active, and I even see the iPhone displays the battery levels of the wireless earbuds. But audio always comes out the speaker. (If I plug in wired headphones into the headphone jack then audio comes into the wired headphones, as expected.) I have rebooted the iPhone; I have had it forget about the wireless earbuds, and repaired and reconnected; I have reset all network settings. Thx in advance.
PS: I understand that more recent versions of iOS have a way to choose where audio output goes (speaker, headphone jack, Bluetooth device). Does this older version of iOS? I could not find an option or setting.I've noticed this lately as well, with my iPhone 4. I couldn't confidently pin it directly on any particular iOS update, but my iPhone used to automatically connect up via Bluetooth with my Prius's handsfree feature, and now it doesn't. I work with a CE-based device at my job, with Bluetooth capability, and I used to test out that feature by having it discover my iPhone. This no longer works either.
What I have found (not really a solution, but it does work and may be a clue for Apple) is that if I simply go to the Settings app then the General -> Bluetooth screen and let it sit there, it will pair right up with my car within a few seconds. Bluetooth is always on, and always says "Now Discoverable" at the bottom of the settings screen. -
Motorolla RF scanners getting disconnect and connecting back
Hi i have deployed wlc 5508 with software 6.0.199.4 . AP 1142 . Customer have few motorola RF scanners which i added the mac address
in mac filter and its working. Now cust informed that these scanners get sometime diconected in between and connects back .
and its using telnet application .
Can anybody help me out do we need to do any other configuration in WLC .Just to add.... have you done a post site survey to verify coverage? Since its scanners you mentioned, I'm guessing it might be in a warehouse environment. Well how high are your ap's placed and what power level is RRM setting your TX power. You might have to tweak that so that the TX power doesn't drop too low. On the WLC, the lower the number the more power (1-8, 8 being the lowest power). Take a loot at the power levels and if you see 4-8, then I would maybe set the max and min power levels for both the 2.4ghz and the 5ghz. Or else you can manually set the TX power level on each AP:
Depending on how old these scanners are, make sure your data rates are at default with 1 & 2 mbps set to mandatory. You can also issue a debug client and post the output when the client is having issues and also post the client monitor detail when the issue is happening. -
Sorry last question got knocked back my ipad and iPhone on two different levels and I am not able to play through Facebook so not able to progress or unlock next level through Apple store. Don't know how to resolve problem
Thank you again for all of your help!! I really appreciate it!
I think I am following -- I was able to upload to my iPhoto and all photos and videos are there that is a plus! I tried to create an Event in my iPhoto and put all of my photos in that event but for some reason, now my iTunes it not recognizing that Event in my iPhoto. It is not allowing me to import just that event at the moment but I may be doing something wrong. At least all of my pics and vids are in iPhoto so that is a plus and I know they are at least saved somewhere. Just for some reason, my iTunes it not locating the event that I created with only those photos.
Thank you for letting me know about my contacts! How do I know if I have the contacts app?
Also, I had no clue that my iCloud could be backed up via cellular data! However, is this a new feature with the most updated iOS?? Unforutnatly I am like 2 iOS updates behind because I don't have enough storage on my phone. I still get the notification that my phone needs to be plugged in and connected to wifi in order to back up to the cloud :-(
How can I sync using USB? Right now when i click on the info tab for my iPhone in my iTunes this is the answer that I get -- I am a little unclear as to what it means.
Sync Contacts:
Your contacts are being synced with you iPhone over the air from iCloud. Over-the-air sync settings can be changed on you iPhone
Sync Calendars:
Your calendars are being synced with you iPhone over the air from iCloud. Over-the-air sync settings can be changed on you iPhone -
Satellite M300: Low sound microphone levels and crackle sound using Skype
Brand new machine, and tried to use Skype.
Low sound levels and a crackle through it.
Tried it in sound recorder, and low sound, but no crackle.
Can not get the sound levels up.
Driver for Conexant HD SmartAudio 221 shows as up to date (4.36.7.0)
Any assistance would be appreciated.Do you use Toshiba factory settings? YES
Which OS do you use? VISTA
Do you have the same problem using headset? NO
I have narrowed it down a little more. It is only when I am connected to my wireless network. I can have Wi-Fi enabled, and connected to the internet via a mobile internet connection and there are no issues.
When I am connected via the router, I have this issue. You could say it is the router, however I have various other machines connected to the same router, without issue.
So, to clarify.
WiFi on - not connected to internet via router, however connect by other means - All ok
WiFi on - connected to the internet via router, issue.
Router is Thomson SpeedTouch 570 -
My iPhone 4 randomly powers down while charging via USB to my MacBook Air. This has happened twice while I was sleeping and always makes for a great morning. Here's what happens:
I keep my iPhone 4 ON and connect it to my MacBook Air - battery charge level is typically around 20%
I keep my MacBook Air connected to AC power
I go to sleep
I wake up without my alarm and find my iPhone is now OFF
I turn it on and find the charge level to be at 100%
It seems to only happen when connected to the MacBook Air. Has anyone else seen this or have a potential remedy to this issue?Try the power related troubleshooting suggestions in this Apple article -> iPhone: Hardware troubleshooting
If that doesn't work, have a Genius take a look at it. -
Our Century Link Modem/Router supplied at set up, has poor range. It is in the kitchen ( main level ) and won't reach our studio fully at 30-40ft away. Will setting up my time capsule in the studio improve this signal? If not, what can I do!???
Will setting up my time capsule in the studio improve this signal?
Yes, if the Time Capsule remains connected to your Century Link modem/router using a permanent, wired Ethernet cable connection.
Any other option will involve the purchase of more hardware.
One option would be to keep the Time Capsule connected to the modem/router using a short Ethernet cable, and configure the Time Capsule to provide a wireless network. Add an AirPort Express about half way between the kitchen and the studio to wirelessly extend the signal from the Time Capsule to provide a much stronger signal in the studio.
Another option might be to use a wireless repeater that is compatible with the modem/router. Century Link might have a solution, or be able to recommend a compatible device for that purpose. -
3rd node is taking 15% of CPU without any load and connection on the server
Hi,
I am struggling to resolve the 3rd node is taking 15% of CPU without any load and connection on the server. but not find clues for this. Please give me some inputs.
The issue is:
We have 8 databases on our 3node RAC (11.2.0.1). One of the performance team guy reported that 3rd node is taking 15%cpu utilization when there is no load and connection to the database and at that time the other 2 node are taking only 1%cpu. even i have checked it by using top command and it is almost given same results.
To come out of this issue, i have two solution in my mind, but i am not sure whether this approach is good or bad. the plans are
(1). shutdown the databases and check the cpu usage. --to findout is there any thing wrong with Kernel parameters or at system level.
(2). Shutdown the databases and CRS on the 3rd node and reboot the server.
If above process is correct then i need to take permission from my manager.
I am total stuck, what i need to do. Is there any other approach to resolve this issue. Please help me, this is very critical issue for me.
Also i have checked from GV$SESSION for the active session, but i didn't find any connection apart from oracle processes.
Thanks in advance.Thank you Guzma for your suggestion,
When i checked the gv$session for the active sessions from only 2databases, Do i need to check in all the databases and make sure there are no active session and try for the 1st solution.
-more over i have observed that one of the oracle process is taking 99% of the 15%cpu when i checked from top command. i have tried to find out the what the session is from below, but it given no results from the 2of the DB's.
top - 13:43:27 up 28 days, 2:44, 1 user, load average: 8.62, 7.90, 6.46
Tasks: 1275 total, 11 running, 1264 sleeping, 0 stopped, 0 zombie
Cpu(s): 37.3%us, 6.9%sy, 0.0%ni, 44.3%id, 3.9%wa, 0.2%hi, 7.4%si, 0.0%st
Mem: 32830792k total, 32440660k used, 390132k free, 2888k buffers
Swap: 32764556k total, 9553692k used, 23210864k free, 20920068k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
17870 oracle 25 0 4254m 111m 102m R 94.6 0.3 35345:34 oracle
8332 oracle 15 0 9151m 676m 639m R 27.9 2.1 2:03.00 oracle
18062 oracle -2 0 9151m 4.5g 4.5g S 13.5 14.5 3049:49 oracle
18058 oracle -2 0 9151m 4.5g 4.5g S 12.8 14.5 2948:39 oracle
SQL>select p.spid,s.sid,s.serial#,s.username,s.status,s.last_call_et,p.program,p.terminal,logon_time,module,s.osuser
from gV$process p,gV$session s where s.paddr = p.addr and p.spid=17870 ; 2
no rows selected.
in database level, will some of the session or processes hangups fro some reason?
thanks,
Hari -
Required - Battery Level and network signal strent...
It would be very useful if there was a Battery Level and network signal strenth indicators in OVi Suite. IMO even free mobile management apps have this useful feature.So it shouldnt be a problem for Nokia to add this to Ovi suite.
When I connect my N8 to the PC I get the below window pop up.
So it seems the function you describe already exists.
Thanks
Ray
Maybe you are looking for
-
WHEN I USED TO CONNECT INTERNET FROM MY IPHONE 4S PERSONAL HOTSPOT VIA USB, AN ICON IN THE NETWORK PREFERENCE NAMED "IPHONE" APPEARS.... BUT NOW THIS IS NOT HAPPENING AND I AM NOT ABLE TO CONNECT PERSONAL HOTSPOT VIA USB CABLE. PLEASE HELP ME OUT???
-
Feature P0002, can not see Gender info on the IT0002 screen 2000.
Hi, I m new to SAP HR. I need to fill gender information into info type 0002 and found that in the info type 0002, the Gender information is missing from the screen 2000. Then I checked in the info type screen control (Change Screen Modifications), a
-
How to convert XML to Binary in OSB Message flow
Dear All, Can you please help me in converting XML to Binary in OSB Message flow. Please help. Thanks,
-
Monitor is blank white when trying to view full screen youtube video.
''locking as a duplicate - https://support.mozilla.com/en-US/questions/783757'' I have an HP w2207h widescreen flat-panel Monitor. When I try to view videos ONLINE, such as YouTube, in full screen mode, the screen goes to a blank white screen. Audio
-
Safari Simple Finder Parental Control
I set up a Simple Finder type account for my son on my iMac. Tried to configure Safari but couldn't get anywhere as: a) when I launched Safari, it appeared without any windows open b) nothing happens when I select 'New Window' from the file menu in S