Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
LKP
Starting Member
2 Posts |
Posted - 2013-12-10 : 00:57:52
|
SELECT Make, ModelFROM CARWHERE EMPID = SELECT EMPID FROM EMPLOYEE WHERE DEPTID = SELECT DEPTID FROM DEPARTMENT WHERE DEPTNAME = 'COMPUTING';ORA-00936: missing expressionI can't get the makes & models of cars belonging to employees in the computing department, any help? |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2013-12-10 : 05:42:00
|
This is MS SQL Server forum. You may be better off posting it in some oracle related forums for Oracle specific helphaving said that my best bet is thisSELECT c.Make, c.ModelFROM CAR cJOIN EMPLOYEE eON e.EMPID = c.EMPIDJOIN DEPARTMENT dON d.DEPTID = e.DEPTIDWHERE d.DEPTNAME = 'COMPUTING'; ------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs |
 |
|
LKP
Starting Member
2 Posts |
Posted - 2013-12-10 : 08:07:31
|
Sorry, I thought it is related to SQL, but anyway thx for ur reply :) |
 |
|
|
|
|