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 |
|
sloppysly
Starting Member
1 Post |
Posted - 2010-08-10 : 16:32:52
|
| I am a newbie to SQL and am using Oracle SQL Developer. I have been attempting to figure this issue out by myself and have been working on this for over a day now with no luck.The issue I am having is that I have 2 seperate views called JOBROLE_V_ROLE_TO_CORPID and EAAR_DBO_V_STARS_RPT_102 and I am trying to create a new view to include all of the data in the EAAR_DBO_V_STARS_RPT_102 view and 1 column from the JOBROLE_V_ROLE_TO_CORPID view.Both of these views have a unique identifier called USER_ID so I am assuming they can be joined. I have tried writing the sql numerous ways and each time I execute it does not bring back any results.I linked both of these views an access DB and created a query to see if I could obtain the sql code needed to make this work. This worked in access and when I transferred the code to Oracl SQL Developer it did not work (access code below). I am not sure if i am missing something here and was hoping that someone might be able to help me figure this out.SELECT EAAR_DBO_V_STARS_RPT_102.USER_ID, EAAR_DBO_V_STARS_RPT_102.USER_NAME, JOBROLE_V_ROLE_TO_CORPID.JOB_ROLE_NAME, EAAR_DBO_V_STARS_RPT_102.USER_STATUS, EAAR_DBO_V_STARS_RPT_102.MANAGER, EAAR_DBO_V_STARS_RPT_102.BUS_GRP, EAAR_DBO_V_STARS_RPT_102.RSS_USER_NAME, EAAR_DBO_V_STARS_RPT_102.RSS_NAME, EAAR_DBO_V_STARS_RPT_102.RSS_TYPE, EAAR_DBO_V_STARS_RPT_102.UG_NAMEFROM JOBROLE_V_ROLE_TO_CORPID INNER JOIN EAAR_DBO_V_STARS_RPT_102 ON JOBROLE_V_ROLE_TO_CORPID.USER_ID=EAAR_DBO_V_STARS_RPT_102.USER_ID; |
|
|
DonAtWork
Master Smack Fu Yak Hacker
2167 Posts |
Posted - 2010-08-11 : 10:10:03
|
| Try an ORACLE forum. This is a MS SQL SERVER forum.http://www.dbforums.com/oracle/http://weblogs.sqlteam.com/jeffs/archive/2008/05/13/question-needed-not-answer.aspxHow to ask: http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspxFor ultra basic questions, follow these links.http://www.sql-tutorial.net/ http://www.firstsql.com/tutor.htm http://www.w3schools.com/sql/default.asp |
 |
|
|
|
|
|