Can someone break the logic of this request a little for me
What this global query essentially tells me. Could someone explain it to me a little.
WITH emp_count (eid, emp_last, mgr_id, mgrLevel, salary, cnt_employees) AS)
SELECT employe_id, last_name, manager_id, 0 mgrLevel, salary, 0 cnt_employees
Employees
UNION all
SELECT select, e.manager_id, r.mgrLevel + 1 mgrLevel, e.employee_id, e.salary, 1
cnt_employees
Emp_count r, e employees
WHERE e.employee_id = r.mgr_id)
Select * from emp_count;
I see only the managers here... ?
Also I was wondering why there wasn't more than 300 lines.
Thank you.
Hello
2776946 wrote:
What this global query essentially tells me. Could someone explain it to me a little.
WITH emp_count (eid, emp_last, mgr_id, mgrLevel, salary, cnt_employees) AS)
SELECT employe_id, last_name, manager_id, 0 mgrLevel, salary, 0 cnt_employees
Employees
UNION all
SELECT select, e.manager_id, r.mgrLevel + 1 mgrLevel, e.employee_id, e.salary, 1
cnt_employees
Emp_count r, e employees
WHERE e.employee_id = r.mgr_id)
Select * from emp_count;
I see only the managers here... ?
...
You tell me. I don't know what data you use, what results see you, or what you consider a "Manager".
If there are rows in the table that are not "managers", then no, you see not only managers. Each row in the table is included in the first half of the UNION, and there is nothing in the main query that removes all of these lines.
It seems that the query shows information about a hierarchy. Assuming that each row in the table represents an employee and manager_id is a foreign key referencing employee_id number is unique, then all rows in the result set with mgrlevel = 0 represents a line in the table and all rows in the result set with mgrlevel = N (N > 0) will be the Manager of a person with mgrlevel = N-1. Lines mgrlevel > 0 is not unique, and they're always going to duplicate some row with mgrlevel = 0.
Also I was wondering why there wasn't more than 300 lines.
Thank you.
Again, this depends on your data.
You may have more than 300 lines in the table.
Or you may have more than 150 lines, and they all have mgr_id that points to another row in the table.
Or you could have more than 100 lines and nearly all of them have a mgr_id and almost all these lines have a mgr_id and so on.
Tags: Database
Similar Questions
-
Reinstall Windows 2003 MS site
My CD drive is broken and I want to reinstall Windows 2003 however, I can't find the link on this site. Can someone direct me to it?
Thanks in advance.Hello ShazDongargon,
Are you referring to Windows Server 2003? If so, please post in our forums Windows Server on TechNet:
http://social.technet.Microsoft.com/forums/en/category/WindowsServer/
-
someone stole my computer. How can I disable the program on this computer... or stop the license for this computer/serialnr. ?
Hello
to my knowledge which is one of the benefits of the creative Cloud: just change the password and after a month, the thief can no longer work with her, maybe you can leave same block by Adobe customer service.
And please see Deaktivierung auf einem PC auf den man keinen Zugriff mehr Hat > answer is written in English
If necessary and for any other question, click on through http://helpx.adobe.com/contact.html and 'open' Please use the cat, I for my part had the best experiences. An employee of Adobe Preran I quote: the chat button is enabled as soon as there is an available agent to help.
Hans-Günter
-
Can someone copy the solitaiare program shipped with XP and send it to me?
Can someone copy the solitaiare program shipped with XP and send it to me?
The original fix told to look for "Windows setup" in Add/Remove programs - I have not this to be listed. I searched my computer whole looking for 'sol.exe' does not exist. It must have been removed for cleaning upwards, I have no other games. Who knows, it is an old computer, I give my people JUST TO PLAY SOLITAIRE. Any other ideas?
Can someone copy the solitaiare program shipped with XP and send it to me?
Hello
· Did you try clicking Add/Remove Windows components in Add or remove program?
Solitaire game is built into Windows XP, you can install it via Add/Remove Windows components in Add / Remove Program:
(a) Insert Windows XP CD
(b) open the Control Panel
(c) open Add or remove programs
(d) on the left side of the window Add or remove programs , you will see Add/Remove Windows components.
(e) click on Add/Remove Windows components , it will open Windows Components Wizard.
(f) double click on Accessories and utilities it will open window utility and accessories.
(g) games -double-click and select the box checkbox on Solitaire.
(h) click Ok and Next to reinstall the game of Solitaire.
If the check box is already selected for the games, you can try if you deselect and rechecked the games area, then check if it helps.
How do I add or remove games in Windows XP
-
I am aware that for UMAX 4100 is not driver in windows 7.
I tried to use the parameter enable XP windowsd programs 7. But I came back with
Do not support the installation of operating system: 0
Cannot Init RunDRV7 times in the other sequence. Later the installation of the scanner fails.
Can someone guide how to overcome this problem?
TKS in advance.
Shekhar
Original title: umax 4100
A driver exist when the company ceased in favor of their scanner then it is unlikely.
However, if you have W7 32 bit then some people seem to say that they can get away with the old driver in XP compatibility mode.
In addition, this article can help - http://www.umax.com/support/knowledge/search.jsp?docs=SC00339 which, with its related links, suggests it can run in a virtual XP on your W7 and you can use that.
I don't have a scanner to test or try so not say how accurate these articles or suggestions are. But at the end of the day, it may be time to consider an upgrade of the scanner.
-
I have CS5, I can't get the updates on this topic. When I try, I get an error saying that some updates could not be installed. I have uninstalled and reinstalled, tried several updates and called and chatted with adobe support. they sent me to you all. Can someone please help me update my CS5?
update by downloading the files directly and then apply them:
-
The customer service is terrible. Can someone answer the simplest questions?
The customer service is terrible. Can someone answer the simplest questions?
Here's how to get this shortcut. With respect to offline behavior, disconnect your Internet connection and see how it goes before go you on the field.
-
I worked on a large document for several years and all of a sudden I can't scroll to the bottom of the screen with my two fingers on the touchpad, well that I have no problem scrolling to the bottom of this page to search for similar issues. I can navigate only to go up and down with the arrow keys.
What version of Pages is running on your MBP?
What version of Mac OS X is running on your MBP?
The MBP is not iOS running.
-
Computer XP does not start all of a sudden.
My computer is a HP Lap Top Model zd8000 bought in 2006. Never had a problem with it before.
Drive hard Self Test error #1-07 Fail.
How can I find the meaning of this disc hard test error message?
Thank you
I tried the suggestion using chkdsk/r
The computer ran for a long time, but the computer worked once the process is complete.
First thing I did was back up my data, I was real worried.
Thank you very much!!!
-
How can I get the rest of this virus off the coast? Ive found a bunch and them came down until I can get online but I can 't get to work stations or other programs. I have to run in safe mode to do anything properly. This is where I removed the malware and other viruses but I'm not sure it fixed stuff I need in normal mode.
How can I get the rest of this virus off the coast? Ive found a bunch and them came down until I can get online but I can 't get to work stations or other programs. I have to run in safe mode to do anything properly. This is where I removed the malware and other viruses but I'm not sure it fixed stuff I need in normal mode.
Just to add to the answer above, once you have completed the scan with Malwarebytes in SafeMode with network, restart the computer in normal mode, look for the Malwarebytes updates, then perform another analysis.
-
Hi, I hope you can help with this problem. A friend has 6 computers networked to a Tower Server and have a problem. A worker student put computers into hibernation, and since then, nobody can connect to the network on this computer. The error indicates, "the trust relationship between this device and the network is no longer valid. I tried to get into the pc to try removing network and replace it, but I can't get on the Administrators account because it has been disabled. I'm at a loss on how to proceed. My friend cannot afford a service call, so I'll try to help him. Thank you
If the computer is on a domain then there are at least two accounts that can be used to remove the computer from the domain:
- A domain administrator account.
- A local administrator account.
When your friend has launched Windows for the first time after buying the machine, he was prompted to enter the name of an account. This account is created automatically with administrator privileges. He should use it now.
-
InDesign CS5 and can not find the download of this version
I need to re - install indesign CS5 and can not find the download of this version - I can find CS5.5 and my serial number is not valid for this version
Available downloadable Setup files:
- Suites and programs: CC 2015 | CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4, CS4 Web Standard | CS3
- Acrobat: DC, XI, X | Suite X | 9,8 | 9 standard | 8 standard
- Captivate: 9 | 8 | 7 | 6 | 5.5, 5 | 1
- Cold Fusion: 11: 10 | 9.0.2 version 9.0.0, 9.0.1, 8.0.1, 8.0.0, 7.0, 6.1, 6.0, 5.0, 4.0
- Contribute: CS5 | CS4, CS3 | 3,2
- FrameMaker: 12, 11, 10, 9, 8, 7.2
- Lightroom: 6.4| 6| 5.7.1| 5 | 4 | 3
- Photoshop Elements: 14,13,12,11,10 | 9,8,7 win | 8 mac | 7 mac
- Premiere Elements: 14,13,12,11,10| 9, 8, 7 win | 8 mac | 7 mac
Download and installation help links Adobe
Help download and installation to Prodesigntools links can be found on the most linked pages. They are essential; especially steps 1, 2 and 3. If you click on a link that does not have these listed steps, open a second window by using the link to Lightroom 3 to see these "important Instructions".
-
already have adobe CS6 downloaded on an old mac computer that is now dead, I can't open the application on this computer to turn it off, but I wand to download my CS6 even on my new mac laptop
The license allows 2 activations, so you should be able to install on a 2nd computer
If you receive a message that you have exceeded your activation, you must communicate directly with Adobe
Chat/phone: Mon - Fri 05:00-19:00 (US Pacific time) <===>===> NOTE DAYS AND TIME
Don't forget to stay signed with your Adobe ID before accessing the link below
Serial number and activation support (non - CC)
-
I have download and install creative cloud with no problems. In the window of creative cloud cannot display the APPS page (while other 'Home', 'Community' can be seen. This is why I can't select the application to be updated. Thanks for your help
Please refer to the threads below where the issue has been addressed:
-
Installed CC 30-day trial. Getting the error "Lightroom can't create a catalog named"ightroom catalog on volume OC (c) because Lightroom can't save the changes to this place". Tried to "Choose a different catalog" same mistake several times.
Hello
Try resetting preferences
Note:-back up your Lightroom Catalog beforehand and save Photoshop preferences
* Now reset preferences Hold Down CTRL + ALT + SHIFT (WIN) CMD + OPTION + SHIFT (MAC) while starting Lightroom. A dialog box appears prompting you to restore Preferences (LR)
Once done open again Lightroom
Make sure you have a lot of read/write of the location where you save the catalog... To create a folder on your desktop, confirm, then try to create the catalog again it
I would like to know if there is a question...
Thank you
Assani
Maybe you are looking for
-
I just bought a new macpro refurb 2010 in Hong KONG. I have a raid array on my quad 2.5 powerpc running on a HighPoint Rocket Raid 4320. To move the map to the Macpro, I put the card in a PC and re flash a ROM EFI. That being said, there isn't much c
-
I upgraded to El Capitan, and now I've lost my photos! Help!
Hi all! I have a problem, that can be very easy to fix. I've recently updated to OSX El Capitan. OK, I got that now iPhoto is replaced by pictures, which is great and so on BUT... I had many, many pictures saved and stored in iPhoto, and given that t
-
Can I configure find my mac if it executes window 10
My MacBook and my brother "s retina pro 15 inch end 2013 I have this drive problem hard C02MD7T8FD56 is because change us it window?" Both our MacBook with the same problem. always have a message telling us this problem and save. And can we define Ma
-
I lost my icon of sky from my office?
I have the icon for Sky on my desk for me to go straight to heaven when I connect.
-
Fujifilm finepix xp60 camera and windows 7
All of a sudden my computer doesn't recognize and read the memory card from my camera or player. It has worked well in the past and work on other computers. I am really frustrated and would appreciate your help.