Why this request is the problem?
Why my request is bad? no fault of strike.Thank you
---------
Write a query to find products including the amount sold in one year should be higher than the average of the quantities of the product sold through all these years?
select * from products p
where exists(select 1 from sales s where s.product_id = p.product_id group by s.product_id having avg(s.quantity) > p.quantity)
SQL Error: ORA-00904: "P"."QUANTITY": invalid identifier
00904. 00000 - "%s: invalid identifier"
>
Yes, it's
CREATE TABLE 'TEST '. "" SALES ".
(NUMBER(*,0) "SALE_ID",
'PRODUCT_ID' NUMBER(*,0),
NUMBER(*,0) 'YEAR ',.
'QUANTITY' NUMBER(*,0),
'PRICE' NUMBER(*,0)
)
>
What about your table of products, the error message points to your PRODUCTS don't table not the SALES table.
Tags: Database
Similar Questions
-
Original title: - what the heck is - this?
Can someone tell me what this means - in English?
Filter event with the query "SELECT * FROM __InstanceModificationEvent WITHIN 60 WHERE TargetInstance ISA 'Win32_Processor' AND TargetInstance.LoadPercentage > 99" could not be reactivated in namespace '//./root/CIMV2' because of error 0 x 80041003.» Events cannot be delivered through this filter until the problem is resolved.
I get this topic once per hour in my diary of events 'Application '. The Source is: Microsoft-Windows-WMI and the event number is: 10
Every word is understandable and I know what they mean, but how they are threaded and beat me to the syntax.
Bill
Thanks for the reply, Gerry. I'm no stranger to computer, having started in 1962 in the Navy for 20 years. The HD is fine. I used the Hitachi software testing to verify this. RAM is also fine after running MEMTest for about 17 hours. CHKDSK shows up at all no error.
I agree it could be caused by a hardware fault and looking for that I ran some tension and trials of O-scope on the motherboard. The only discrepancy I found was Aida64 Pro told me that the 3.3V rail was only 1.75 v. My DS was told that the rail was 3.327. This led to the conclusion that maybe the sensor was messed up. I have an almost identical computer with a motherboard in the same series and Aida reports that rail even as 3.319v. So, I think that the motherboard may be offset slightly.
The re - install is an easier way to remove a large number of applications I just didn't need more and had not touched in over a year. Revo even would have struggled to clear the registry after such massive uninstall.
I found that the results from a command prompt is quite easy if you issue the command once, read the results on the screen, and then do it again but to redirect the output to a text file ("' do_whatever > test_output.txt '"). All you have to do is cop0y and paste a post.
This re - install and the subsequent installation of SP2, seems to have solved the error of the event: for now.
Bill
-
I'm not tech guru when it comes to computers. I don't really know enough to get into trouble. Here's my problem.
For the last six weeks or so, I keep getting dropped offline. AOL is my browser and I get the message "your AOL software has encountered a problem" or words to that effect. Tech AOL were useless to solve the problem. I checked my error messages and noticed that when I fell off line, most of them involved a WININET problem. I know little or nothing of WININET, but it seems that this may be the problem based on the error messages 9 out of 10 say involve this part of the Microsoft software. It's just a guess on my part, but the problem becomes very irritating to say the least. So, if someone can you please throw some light on my problem it will be greatly appreciated? This WININET error message might have nothing to do at all with hit his offline, but thought I'd ask at least satisfy my limited knowledge of computer programs.
Thank you
Gordon
Gordon
To see if your system or software from AOL, what happens if you connect to AOL by using another browser (like Firefox or IE)?
Wininit is part of the operating system and usually if it was the problem you would have other problems on your computer then I suspect it's an AOL software
-
Title: event id 10 original
my PC (Vista Home premium SP2, 2 GB of Ram) is suddenly restart and get a blue screen. What can I do to fix this error? It is after 2 weeks after reinstalling windows.
Here is the error message:
Filter event with the query "SELECT * FROM __InstanceModificationEvent WITHIN 60 WHERE TargetInstance ISA 'Win32_Processor' AND TargetInstance.LoadPercentage > 99" could not be reactivated in namespace '//./root/CIMV2' because of error 0 x 80041003.» Events cannot be
sent through the filter until the problem is resolved.
Hello
- Faced with this issue specific request?
Try the methods provided below and check if the problem persists.
Method 1:
This problem occurs if the WMI filter is accessible without the necessary permissions.
To resolve this problem, run a script to stop the event ID 10 messages.
You can check the link below to solve the problem.
10 the event ID is logged in the application log after you install Windows Vista Service Pack 1 or Windows Server 2008
http://support.Microsoft.com/kb/950375
Method 2:
You can try to perform a startup repair if the system still hangs after trying this article.
Startup Repair will try to repair startup issues in Windows Vista. To run the Startup Repair tool, follow these steps:
(a) Insert the Windows Vista DVD into the DVD drive, and then restart your computer from the DVD.
Note
When you receive the prompt press any key to boot from the CD or DVD, press any key on the keyboard to restart your computer by using the Windows Vista DVD.
(b) select your language setting, and then click Next.
(c) select repair your computer.
(d) select the installation of Windows Vista to be repaired, and then click Next.
(e) under System Recovery Options, select the Startup Repair tool, and then press ENTER.
Note
If the repair process detects a problem starting in Windows Vista, it will run Startup Repair to automatically fix problems. If this happens, click Cancel, and then click view the advanced management and system recovery.
(f) click Finish when the Startup Repair tool is completed.
(g) under System Recovery Options, click on restart.
Startup Repair: frequently asked questions
http://Windows.Microsoft.com/en-us/Windows-Vista/startup-repair-frequently-asked-questions
Method 3:
I also suggest you to run memory diagnostic tool to check if the RAM is good.
To run the Windows Memory Diagnostic tool
(a) click Start, click programs principally made and then expand accessories.
(b) right click on command prompt and select run high on the shortcut menu.
(c) at the command prompt, type mdsched.exe. If you are prompted, allow the action. You can choose to restart the computer and run the tool immediately or schedule the tool to run at the next reboot.
(d) the Windows Memory Diagnostic runs automatically after the computer restarts. Windows Memory Diagnostic allows you to choose among three suites of tests of varying rigour.
-
Original title: Windows 64-bit clean
Ive recently done my 2nd attempt to install windows 7 64 bit and ive met the same problem, I have formatted and deleted all the data ln my drive hard amd decided to do a clean install of windows, but when the disc it stops expanding windows files 0% I don't know why this is happening is the disc
You have all the features non-essential connected to the computer during installation? If you have external storage media connected, disconnect them.
It is also possible to reinstall your Windows 7 media is corrupt. You can try to download a new copy and try again.
-
Why this request required 2 additional columns in GROUP BY
Hi all
This is my query:
In this query for the initial section where I select the part "ORIGINAL_PRESENT_VALUE".SELECT "parent_level_id", "parent_level_name" "parent_level_id", "child_level_id", "child_level_name", "scenario_id", "scenario_name", "exported", "regress_cob", "scn_status_id", "tgt_scenario_name", "load_status_id", "load_count", "PRESENT_VALUE", "DELTA", "GAMMA", "VEGA", "PNL", "ORIGINAL_PRESENT_VALUE" FROM ( select 0-fssPV.feed_id as "parent_level_id", fssPV.feed_description as "parent_level_name", fssPV.book_id as "child_level_id", fssPV.book_display_name as "child_level_name", fssPV.parent_scenario_id as "scenario_id", fssPV.scenario_display_name as "scenario_name", nvl(sc.exported, 'N') as "exported", nvl(fssPV.parent_regressed_cob_date, fssPV.parent_cob_date) as "regress_cob", fssPV.scn_status_id as "scn_status_id", fssPV.tgt_scenario_display_name as "tgt_scenario_name", fssPV.load_status_id as "load_status_id", count(*) as "load_count", sum(fssPV.present_value) as "PRESENT_VALUE", sum(fssPV.delta) as "DELTA", sum(fssPV.gamma) as "GAMMA", sum(fssPV.vega) as "VEGA", sum(fssPV.present_value) - sum (srbase.present_value) as "PNL", ( select SUM(vsr.original_present_value) from validated_position vp , validated_scenario_result vsr where VSR.FEED_INSTANCE_ID= fssPV.feed_instance_id AND VSR.COB_DATE= fssPV.cob_date and vsr.validated_position_id= vp.validated_position_id AND vsr.scenario_id in (SELECT distinct mn.node_id as "SCENARIO_ID" FROM TABLE(pack_scenarios_overview.splitInListIntoLeaves(a_scenario_list, '$', l_cobdate)) nodeIds, marsnode mn WHERE nodeIds.column_value = mn.node_id AND mn.close_date is null ) ) "ORIGINAL_PRESENT_VALUE" from ( select fssTgts.*, mntgt.display_name as "TGT_SCENARIO_DISPLAY_NAME", mnscenario.display_name as "SCENARIO_DISPLAY_NAME", mnbook.display_name as "BOOK_DISPLAY_NAME", fs.feed_description, sr.present_value, sr.delta, sr.gamma, sr.vega, p.position_id from ( /** Treewalk to find Feed/Scenario dependencies **/ Select fssBooks.feed_id, fssLinks.cob_date, fssLinks.scenario_id, fssBooks.load_status_id, fssBooks.scn_status_id, fssBooks.tgt_scenario_id, fssBooks.book_id, fssBooks.regressed_cob_date, fssLinks.feed_instance_id, fssLinks.parent_cob_date, fssLinks.parent_tgt_scenario_id, fssLinks.parent_regressed_cob_date, fssLinks.parent_scenario_id, fssLinks.parent_feed_instance_id from ( /** Treewalk (backwards) to find underlying data over FSS control table **/ WITH fss AS /* Initial filter on feed_scenario_status for peformance */ /* cannot filter on scenario as we don't know the dependencies yet */ ( select DISTINCT scenario_id, f.cob_date, f.scn_status_id, f.regressed_cob_date, f.tgt_scenario_id, f.feed_id, f.feed_instance_id from feed_scenario_status f, feed_group_xref fgx where cob_date <= l_cobdate -- PVs for this cob must be loaded either today, or its regressed to a previous cob and f.feed_id = fgx.feed_id and fgx.feed_group_id like l_feed_group_id and fgx.feed_id like l_feed_id ) select feed_instance_id, scenario_id, prior scenario_id, cob_date, feed_id, scn_status_id, regressed_cob_date, /* Need to maintain the root values to identify the scenarios that users are seeing */ CONNECT_BY_ISLEAF "ISLEAF", CONNECT_BY_ROOT scenario_id as "PARENT_SCENARIO_ID", CONNECT_BY_ROOT feed_id as "PARENT_FEED_ID", CONNECT_BY_ROOT cob_date as "PARENT_COB_DATE", CONNECT_BY_ROOT tgt_scenario_id as "PARENT_TGT_SCENARIO_ID", CONNECT_BY_ROOT regressed_cob_date as "PARENT_REGRESSED_COB_DATE", CONNECT_BY_ROOT feed_instance_id as "PARENT_FEED_INSTANCE_ID" from fss start with fss.cob_date = l_cobdate connect by (prior fss.regressed_cob_date = fss.cob_date and prior fss.scenario_id = fss.scenario_id and prior fss.feed_id = fss.feed_id and prior fss.tgt_scenario_id is null ) -- Connect if regressed (rule: same feed/book/scenario, different cob) or (prior fss.tgt_scenario_id = fss.scenario_id and prior fss.cob_date = fss.cob_date and prior fss.feed_id = fss.feed_id and prior fss.feed_instance_id = fss.feed_instance_id ) -- and connect if paste as (rule: same feed/cob/book, different scenario) ) fssLinks, feed_scenario_status fssBooks where isLeaf = 1 and fssLinks.parent_feed_id = fssBooks.feed_Id and fssLinks.parent_cob_date = fssBooks.cob_date and fssLinks.parent_scenario_id = fssBooks.scenario_id ) fssTgts, position p, scenario_result sr, marsnode mntgt, marsnode mnbook, marsnode mnscenario, feed_static fs where fssTgts.feed_id = fs.feed_id and fssTgts.parent_tgt_scenario_id = mntgt.node_id (+) and mntgt.close_date (+) is null and fssTgts.feed_instance_id = p.feed_instance_id and fssTgts.book_id = p.book_id and fssTgts.cob_date = sr.cob_date and fssTgts.scenario_id = sr.scenario_id and p.feed_instance_id = sr.feed_instance_id and p.position_id = sr.position_id and p.book_id = mnbook.node_id and mnbook.close_date is null and fssTgts.parent_scenario_id = mnscenario.node_id and mnscenario.close_date is null ) fssPV left outer join scenario_control sc on fssPV.parent_feed_instance_id = sc.feed_instance_id and upper(fssPV.scenario_display_name) = upper(sc.scenario) /* Join to SBM to calculate P&Ls */ left outer join scenario_base_map sbm on fssPV.scenario_id = sbm.scenario_id and sbm.begin_cob_date <= l_cobdate and sbm.end_cob_date > l_cobdate left outer join scenario_result srbase on fssPV.cob_date = srbase.cob_date and fssPV.feed_instance_id = srbase.feed_instance_id and nvl(sbm.mapped_scenario_id, l_original_scn_id) = srbase.scenario_id and fssPV.position_id = srbase.position_id /* Only display (root) scenarios that users have selected */ where fssPV.parent_scenario_id in (SELECT distinct mn.node_id as "SCENARIO_ID" FROM TABLE(pack_scenarios_overview.splitInListIntoLeaves(a_scenario_list, '$', l_cobdate)) nodeIds, marsnode mn WHERE nodeIds.column_value = mn.node_id AND mn.close_date is null ) group by fssPV.feed_id, fssPV.feed_description, fssPV.book_id, fssPV.book_display_name, fssPV.parent_scenario_id, fssPV.scenario_display_name, sc.exported, fssPV.parent_regressed_cob_date, fssPV.scn_status_id, fssPV.tgt_scenario_display_name, fssPV.load_status_id, fssPV.parent_cob_date -- fssPV.feed_instance_id, -- fssPV.cob_date );
Even if fssPV.feed_instance_id and fssPV.cob_date are not used anywhere in the clause SELECT requires tobe added to the last clause GROUP BY else( select SUM(vsr.original_present_value) from validated_position vp , validated_scenario_result vsr where VSR.FEED_INSTANCE_ID= fssPV.feed_instance_id AND VSR.COB_DATE= fssPV.cob_date and vsr.validated_position_id= vp.validated_position_id AND vsr.scenario_id in (SELECT distinct mn.node_id as "SCENARIO_ID" FROM TABLE(pack_scenarios_overview.splitInListIntoLeaves(a_scenario_list, '$', l_cobdate)) nodeIds, marsnode mn WHERE nodeIds.column_value = mn.node_id AND mn.close_date is null ) ) "ORIGINAL_PRESENT_VALUE"
the query if compile it successfully does giving "not a group of" error.
Can someone tell me why that is the problem and why these columns must be added to the final GROUP BY clause.
Rgds,
AashishHi, Michael,
Aashish S. wrote:
Even if fssPV.feed_instance_id and fssPV.cob_date are not used anywhere in the clause SELECT requires tobe added to the last clause GROUP BY else
the query if compile it successfully does giving "not a group of" error.In fact, you use both of these columns in the SELECT clause, when you calculate the original_present_value:
( select SUM(vsr.original_present_value) from validated_position vp , validated_scenario_result vsr where VSR.FEED_INSTANCE_ID= fssPV.feed_instance_id AND VSR.COB_DATE= fssPV.cob_date and vsr.validated_position_id= vp.validated_position_id AND vsr.scenario_id in (SELECT distinct mn.node_id as "SCENARIO_ID" FROM TABLE(pack_scenarios_overview.splitInListIntoLeaves(a_scenario_list, '$', l_cobdate)) nodeIds, marsnode mn WHERE nodeIds.column_value = mn.node_id AND mn.close_date is null ) ) "ORIGINAL_PRESENT_VALUE"
Since the scalar subquery is correlated to the fsspv.feed_instance_id and fsspv.cob_date, it is depenedant on these columns, the same, say TRUNC (fsspv.cobb_date, 'YEAR') is depenedant on fsspv.cob_date.
You will have to perhaps put the SUM in the main query, not the scalar subquery, or replace the scalar subquery with a join (probably faster). Without knowing your table, or the results you want from your data, I can't say more.
Whenever you have a problem, post a small example of data (TABLE CREATED and instructions INSERT for all tables) and the desired results from these data.
Simplify the problem as much as possible. In this case, I think you can show that the problem is using just two tables, the alias fsspv and mn ones.
If you can illustrate your problem using commonly available tables, like those of the scott schema, then you don't need to display all data; just the results you want.Looks like you're doing something like this:
SELECT job , COUNT (*) AS cnt , ( -- Begin scalar sub_query to compute min_loc SELECT MIN (loc) FROM scott.dept WHERE deptno = e.deptno ) min_loc -- End scalar sub_query to compute min_loc FROM scott.emp e GROUP BY job , deptno -- Omitting this causes ORA_00979: not a GROUP BY expression ;
When you really should do something like this:
SELECT job , COUNT (*) AS cnt , MIN ( ( -- Begin scalar sub_query to compute min_loc SELECT loc FROM scott.dept WHERE deptno = e.deptno ) ) min_loc -- End scalar sub_query to compute min_loc FROM scott.emp e GROUP BY job ;
to achieve these results:
JOB CNT MIN_LOC --------- ---------- ------------- CLERK 4 CHICAGO SALESMAN 4 CHICAGO PRESIDENT 1 NEW YORK MANAGER 3 CHICAGO ANALYST 2 DALLAS
-
Why this word on the next line on the left is to align?
Hi all!
First of all, sorry, but I'm not familiar with "Terms of InDesign", so I'll explain what the problem is in my own words
I had this problem before and google it every now and then, but don't seem to find the right answer.
So this is the problem;
Sometimes, when I put the text to the left, words just randomly will be to go to the next line, although there is still plenty of room for the word on the first line...
I have attached a picture - the word "ask" is on the next line, but as you can see, it'll hold as well on the first line...
Why oh why does this phenomenon happen?
Any help is appreciated!
Because he's trying to balance all the lines in the paragraph of the best possible.
If "asking" returned a line then that would mean that "diastrous" do not fit on the line below, and you would get very uneven lines.
This is known as a composer of single line and paragraph composer and is accessible in the paragraph Panel Menu
http://help.Adobe.com/en_US/InDesign/CS/using/WSa285fff53dea4f8617383751001ea8cb3f-6d97a.h tml
-
When I creat the project setup in Visual Studio 2005 with only cvirte.msm merge module installer finished the unstallation successfully, however, prompted Mesa. DLL. when the NImesa.msm is added to the installation package Setup fails witht the error code 2705. The exact message is indicated as "subject".
How can I overcome the problem?
Hi nikki7,
You use a non-English operating system? If you are, then the article knowledge base, I've included below should be useful. I hope this helps!
Error-2705 on MSI Installer generated with the generator Installation Visual Studio .NET: http://digital.ni.com/public.nsf/allkb/19CA3B8F15B4FB9386256DDA006DFED8?OpenDocument
Kind regards
Jason D
Technical sales engineer
National Instruments
-
Will I have to reactivate windows 7 after this update of the problems?
I've been using Microsoft Flight Simulator X Demo for a few weeks, but my material is not good enough to get a reasonable rate.
I love the program, so I bought a copy of Microsoft Flight Simulator Gold edition.
Before installing my copy of FSX Gold, I would like to update some of my hardware.My current set up is:
Windows 7 Professional w/SP1 64-bit bought Jan 2012
ASRock M3A770DE 770 Socket AM3 8 Channel Audio ATX motherboard.
AMD Athlon II X 3 455 3.3 GHz Socket AM3.
Memory: Crucial 8GB Kit (4GBx2) DDR3 PC3-12800.
ATA (boot) hard drive ST3200822A (200G) purchased 2006 Jan.
Silicon image Sil 3114 SATA Raid controller.
Card PCI-E SAPPHIRE HD 6450 1 GB DDR3 DVI - VGA - HDMI
DVD - ROM drive.I intend to do the following:
Keep the original motherboard Asrock M3A770DE, Crucial memory, raid controller and DVD - ROM.
Upgrade the processor AMD Athlon II X 3 455 with an AMD Phenom II x 6 1100t.
Update the graphics card Sapphire HD 6450 with an Asus Nvidia GeForce GTX 750 Ti.
Replace the hard drive ST3200822A with a 250 GB WD Velociraptor, the ST3200822A is eight years and well beyond its life expectancy.The old processor and graphics card is going to be scrapped because they are very little value.
The old ST3200822A will be partitioned and formatted.This will give me problems with the reactivation of windows 7?
I can't afford to buy another copy of Windows 7.Thank you very much
Steven.Yes, since you do not migrate the motherboard, you should be good. You will still need to reactivate by telephone but, so keep this in mind:
How to activate Windows 7 manually (activate by phone)
1) click Start and in the search for box type: slui.exe 4
(2) press the ENTER"" key.
(3) select your "country" in the list.
(4) choose the option "activate phone".
(5) stay on the phone (do not select/press all options) and wait for a person to help you with the activation.
(6) explain your problem clearly to the support person.
http://support.Microsoft.com/kb/950929/en-us -
Why this code calls the same url?
HI im to create a web page in flash and im using this code for the navigation buttons:
bio.addEventListener (MouseEvent.CLICK, buttonClickHandler);
function buttonClickHandler {}
navigateToURL (new URLRequest ("bio.html"), '_self');
}
paquetes.addEventListener (MouseEvent.CLICK, buttonClickHandler);
function buttonClickHandler2(event:MouseEvent):void {}
navigateToURL (new URLRequest ("paquetes.html"), '_self');
}
bodas.addEventListener (MouseEvent.CLICK, buttonClickHandler);
function buttonClickHandler3(event:MouseEvent):void {}
navigateToURL (new URLRequest ("bodas.html"), '_self');
}The problem is that when I publish cela and place it in Dreamweaver, all three buttons link to "bio.html.
Thank you
You could probably have found the problem. But in the case you do not, paquetes.addEventListener (MouseEvent.CLICK, buttonClickHandler); should be: paquetes.addEventListener (MouseEvent.CLICK, buttonClickHandler2); and bodas.addEventListener (MouseEvent.CLICK, buttonClickHandler); must be bodas.addEventListener (MouseEvent.CLICK, buttonClickHandler3); Simply remember the '2' and '3' in the headphones of the respective function.
-
Twice in the space of a few days our internet connection has been disabled. System Restore solve the problem - temporarily. It would be good to know exactly which file is causing the problem.
I applied all the updates of Windows 7 on 5 computers and encountered no problems. You use McAfee antivirus by chance? There was an update for that because of the problems of Internet access for some. Check with McAfee, if you use that.
Good luck.
-
Why El Capitan has the problem of spinning ball
Since I upgraded to El Capitan, I get a ball of rotation for almost 20 seconds every time I click on the mouse.
Why Apple does not solve this problem with the update of last month?
Post an Etrecheck report here.
and if you run any Mac AV, a 3rd party utility, remove it according to the directions developers (for example just don't throw in thrash and think it's gone, it's not)
Until you start with the beach balls are usually caused by their existence on your system.
-
Why this dot on the typedef table indicator strict coercion?
Why is there a constraint on the second point control?
I created a table of 3 trivial elements of doubles and created an indicator by right-clicking on it in the block diagram. It is the control of "CreateIndicator".
Then I did the same thing to create a second indicator on the same wire from the selected Panel and output it he adapted to a strict typedef, saved and applied the changes. It is the control of "CreateIndicatorThenCustomize". There one point of coercion in this regard, if. Why?
Thanks to anyone who can shed some light on this for me!
Don't get started me on the "point of constraint = copy of the buffer" falicy (hm, I think you just!)
It this case LV says you type conversion non-defed in type-def, who all had there.
Ben
-
y at - it a update for the 10 items that would solve this problem?
you are far track.i never said anything about opening raw files... I can't download photos from my new canon camera telements 10 will not accept the unit cr2 files, but the canon software (will professional digital photo...) I have no problem download from my Nikon DSLR in items 10.
-
Why this request does not give an error?
The query below is from the HR schema that is included in the database.
If we separate the subquery gives us an error, but if we execute all of the query, execute it, and sends us a result (fake, of course).
SELECT last_name, department_id, job_id
Employees
WHERE department_id = (SELECT department_id
Sites
WHERE location_id = 1700);Hello
Welcome to the forum!
user7363993 wrote:
The query below is from the HR schema that is included in the database.
If we separate the subquery gives us an error, but if we execute all of the query, execute it, and sends us a result (fake, of course).In fact, the results are correct. Not what you were expecting, maybe, but they're right.
If the request is reasonable or not is a separate issue.SELECT last_name, department_id, job_id
Employees
WHERE department_id = (SELECT department_id
Sites
WHERE location_id = 1700);If you simply run the subquery, you get an error because there is no column called department_id in any table that is in the scope. (Places would be the only scope table; in fact, the places would be the only table, period).
What you posted is a correlated subquery . In a correlated subquery, you can reference columns of the query of the mother. Employees and locations of the tables are in scope in the subquery.
It might be easier to understand if you wrote the query like this:SELECT last_name , department_id , job_id FROM employees e WHERE department_id = ( SELECT e.department_id FROM locations l WHERE l.location_id = 1700 ) ;
It is 100% equivalent to the query you posted. I wasn't to give alias names to all tables and qualify the column names with those aliases in the subquery. Since there is no ambiguity (i.e. department_id exists only in the employees table and location_id exists only in the table of communities) the compiler doesn't care if you qualify the columns with the table alias or not.
(Even if the same column exist in both tables, you would get an error. Locations being the only table in the FROM clause in the subquery, the compiler assumes that all of the columns named ambiguously came from this table.)
Maybe you are looking for
-
BackFlip: Fails to synchronize GMAIL Contacts
The functionality of google on Motorola Backflip mail claims it synchronizes your contacts with you google mail contacts. None of my phone contacts are being synced GMAIL contacts. Well, my GMAIL contacts are sent to my phone. Synchronization of cale
-
Hello I use an OPC Server (with Data Access 3.0) and I'm trying to develop an application Client OPC Labview on Windows Vista. I also use a C++ DLL where the activities of the OPC client are made! Everything works fine if I use this DLL OPC Client to
-
meeting place for Dell 3845 pro 8 screens stays on when stop and reload.
My dell screen pro 8 place stays lit when the unit is plugged in and charging when the charging is completed, the screen turns off. is this normal?
-
My Sidewinder X 4 guard disconnect frequently
Separated from this thread. Usually my Sidewinder X 4 works perfectly. All keys of Macro/Media work. I use the mouse and keyboard Center 2.0, which works very well too. However, any time I hit caps lock SHIFT NUMLOCK or scroll, the backlight vanishes
-
I am designing a site that has a stage of px 1600 and need to know how to make the content within this float of 17px left/right padding area. Thinking back to my days Flash, this was done with a container. Content in will be centered and responsive a