I am using Access to create a SQL query. It creates an Inner Join Query. I cut and paste the query into PL-SQL. When I try to execute the query I get an error.
ORA 933 SQL command not properly ended.
It highlights the INNER JOIN statement on the SQL command.
Can someone recommend a utility to convert these Microsoft or Access SQL queries to PL SQL?
Thanks! 7 43667
Barry Young wrote: I am using Access to create a SQL query. It creates an Inner Join Query. I cut and paste the query into PL-SQL. When I try to execute the query I get an error.
ORA 933 SQL command not properly ended.
It highlights the INNER JOIN statement on the SQL command.
Can someone recommend a utility to convert these Microsoft or Access SQL queries to PL SQL?
In many cases what is needed another line following the end for the
SQL-statement. This line should contain a single "/" as the leftmost and
only character on the line
HTH & YMMV
Hello Ana,
Thanks for the reply...
Can you please give me an example of what you are referring to?
Thanks again!
Barry
"Ana C. Dent" <an*******@hotm ail.com> wrote in message
news:0tqHb.4158 5$BQ5.35902@fed 1read03... Barry Young wrote: I am using Access to create a SQL query. It creates an Inner Join Query. I cut and paste the query into PL-SQL. When I try to execute the query I get an error.
ORA 933 SQL command not properly ended.
It highlights the INNER JOIN statement on the SQL command.
Can someone recommend a utility to convert these Microsoft or Access SQL queries to PL SQL?
In many cases what is needed another line following the end for the SQL-statement. This line should contain a single "/" as the leftmost and only character on the line
HTH & YMMV
> Barry Young wrote: I am using Access to create a SQL query. It creates an Inner Join Query. I cut and paste the query into PL-SQL. When I try to execute the query I get an error.
ORA 933 SQL command not properly ended.
It highlights the INNER JOIN statement on the SQL command.
Can someone recommend a utility to convert these Microsoft or Access SQL queries to PL SQL?
Thanks!
Please post your SQL statement, and the target Oracle version. If it's
proper SQL it should run on plain Oracle (since Oracle runs as close to
the standard as any) but the version number is certainly a big help.
Ana C. Dent suggested adding a line with a slash "/" as the only thing
on the line. No leading or trailing charaters (not even a blank).
Something like
SELECT * FROM TAB
/
or
SELECT TNAME
FROM TAB
/
Please note, PL/SQL is Oracle's procedural programming language (doing
roughly the same as Sybase's Transact-SQL (AKA Microsoft's T-SQL)).
These languages try to put procedural stuff (sequential statements,
loops, conditions, etc) around SQL. I suspect you are trying to use
plain SQL rather than the slightly more complex PL/SQL.
HTH
/Hans
Hello Hans,
Here is an example statement:
SELECT Table1.StartDat e, Table2.Descript ion
FROM Table1 INNER JOIN Table2 ON Table1.ID = Table2.ID;
INNER JOIN is what is giving me the ORA 933 SQL command not properly ended.
This is just a piece of the code.. In the final statement there will be
NESTED INNER JOINS.. So I may have to do Unions??
Any help would be appreciated.
Thanks!
Barry
"Hans Forbrich" <fo******@yahoo .net> wrote in message
news:3F******** *******@yahoo.n et... Barry Young wrote:
I am using Access to create a SQL query. It creates an Inner Join Query. I cut and paste the query into PL-SQL. When I try to execute the query I get an error.
ORA 933 SQL command not properly ended.
It highlights the INNER JOIN statement on the SQL command.
Can someone recommend a utility to convert these Microsoft or Access SQL queries to PL SQL?
Thanks!
Please post your SQL statement, and the target Oracle version. If it's proper SQL it should run on plain Oracle (since Oracle runs as close to the standard as any) but the version number is certainly a big help.
Ana C. Dent suggested adding a line with a slash "/" as the only thing on the line. No leading or trailing charaters (not even a blank). Something like
SELECT * FROM TAB /
or
SELECT TNAME FROM TAB /
Please note, PL/SQL is Oracle's procedural programming language (doing roughly the same as Sybase's Transact-SQL (AKA Microsoft's T-SQL)). These languages try to put procedural stuff (sequential statements, loops, conditions, etc) around SQL. I suspect you are trying to use plain SQL rather than the slightly more complex PL/SQL.
HTH /Hans
Hans,
Well I think what appears to be the problem is that Pre Oracle 9i does not
support the INNER JOIN. I am using 8i so I will have to restructure the SQL
query similar to this:
SQL> SELECT c.course_name, c.period, e.student_name
2 FROM course c, enrollment e
3 WHERE c.course_name = e.course_name
4 AND c.period = e.period;
I thought INNER JOINS were an ANSI SQL standard. I was surprised that
ORACLE doesn't support the INNER JOIN. Unless I am wrong.
Barry
"Hans Forbrich" <fo******@yahoo .net> wrote in message
news:3F******** *******@yahoo.n et... Barry Young wrote:
I am using Access to create a SQL query. It creates an Inner Join Query. I cut and paste the query into PL-SQL. When I try to execute the query I get an error.
ORA 933 SQL command not properly ended.
It highlights the INNER JOIN statement on the SQL command.
Can someone recommend a utility to convert these Microsoft or Access SQL queries to PL SQL?
Thanks!
Please post your SQL statement, and the target Oracle version. If it's proper SQL it should run on plain Oracle (since Oracle runs as close to the standard as any) but the version number is certainly a big help.
Ana C. Dent suggested adding a line with a slash "/" as the only thing on the line. No leading or trailing charaters (not even a blank). Something like
SELECT * FROM TAB /
or
SELECT TNAME FROM TAB /
Please note, PL/SQL is Oracle's procedural programming language (doing roughly the same as Sybase's Transact-SQL (AKA Microsoft's T-SQL)). These languages try to put procedural stuff (sequential statements, loops, conditions, etc) around SQL. I suspect you are trying to use plain SQL rather than the slightly more complex PL/SQL.
HTH /Hans
Barry Young wrote: Hello Hans,
Here is an example statement:
SELECT Table1.StartDat e, Table2.Descript ion FROM Table1 INNER JOIN Table2 ON Table1.ID = Table2.ID;
INNER JOIN is what is giving me the ORA 933 SQL command not properly ended.
This is just a piece of the code.. In the final statement there will be NESTED INNER JOINS.. So I may have to do Unions??
Any help would be appreciated.
Thanks!
Try eliminating the semi-colon. SQL statements themselves do not use a
semi-colon. However many of the languages/environments that call SQL do
need a 'statement terminator' and many of those use a semi-colon. In
many cases (eg: cut & paste) will accidently include the semi-colon as
part of the SQL statement instead of an environment statement
terminator.
Also note that the 'new' ANSI syntax (INNER JOIN, NATURAL JOIN, etc.) is
only supported when dealing with Oracle9i and higher. If you are going
against an older version (Oracle8i, Oracle8, Oracle 7) then you need to
fall back to the old syntax which would be
SELECT Table1.StartDat e, Table2.Descript ion
FROM Table1, Table2
WHERE Table1.ID = Table2.ID;
Barry Young wrote: Hans,
Well I think what appears to be the problem is that Pre Oracle 9i does not support the INNER JOIN. I am using 8i so I will have to restructure the SQL query similar to this:
SQL> SELECT c.course_name, c.period, e.student_name 2 FROM course c, enrollment e 3 WHERE c.course_name = e.course_name 4 AND c.period = e.period;
I thought INNER JOINS were an ANSI SQL standard. I was surprised that ORACLE doesn't support the INNER JOIN. Unless I am wrong.
Barry
The new JOIN syntax is not available below Oracle9i.
As for being an ANSI SQL standard, you are likely running into a timing
issue, as follows:
Oracle8 series (which ends with Oracle8i Release 3 or 8.1.7.x) was
released around 1997. Flip side, ANSI SQL has had 3 major revisions -
'87 (IIRC), '92 and '99. If I'm not mistaken, that JOIN syntax was
introduced in SQL '92 (but had holes) and was completed in '99. Not the
kind of thing I'd hold against Oracle, especially since there was a
perfectly acceptable workaround.
All the more reason to move to Oracle9i. Especially since Oracle did
announce End of Life for 8i. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Ike |
last post by:
Oh I have a nasty query which runs incredibly slowly. I am running MySQL
4.0.20-standard. Thus, in trying to expedite the query, I am trying to set
indexes in my tables.
My query requires four inner joins, as follows :
SELECT DISTINCT
upcards.id,statuskey.status,upcards.firstname,upcards.lastname,originkey.ori
gin,associatekey.username,associatekey2.username,upcards.deleted
FROM upcards,status,origins,associates
INNER JOIN status...
|
by: Nathan |
last post by:
I have an application that uses an Access database to
gather information on students' test scores. In the
database there are three tables which are joined by one-
to-many relationships: Students, Subjects, and Tests. I
am trying to create a query that joins these three tables
and show all the subjects for only one student, and all
the tests taken in each of those subjects. This is the
query I have entered in the Query Builder:
...
|
by: dmonroe |
last post by:
hi group --
Im having a nested inner join problem with an Access SQl
statement/Query design. Im running the query from ASP and not usng the
access interface at all. Here's the tables:
tblEmployees
empId -- EmpName -- EmpRole -- EmpManager
-------....------------.... ---------....---------------
1........ dan yella..........1..........2
|
by: MP |
last post by:
Hi
trying to begin to learn database using vb6, ado/adox, mdb format, sql
(not using access...just mdb format via ado)
i need to group the values of multiple fields
- get their possible variations(combination of fields),
- then act on each group in some way ...eg ProcessRs (oRs as RecordSet)...
the following query will get me the distinct groups
|
by: Zeff |
last post by:
Hi all,
I have a relational database, where all info is kept in separate tables
and just the id's from those tables are stored in one central table
(tblMaster)...
I want to perform a query, so all data from the separate tables is shown
in a view (instead of the reference id's pointing to the separate tables...)
I have some troubles formulating the SQL statement:
I tried:
| |
by: janko.klemensek |
last post by:
Hello.
In the following query:
SELECT tblDokumentiDetails.ID_Artikel, - tblDokumentiDetails.Kolicina
AS Kolicina
FROM (tblDokumenti INNER JOIN tblDokumentiDetails ON
tblDokumenti.ID_Dokument = tblDokumentiDetails.ID_Dokument) INNER JOIN
. AS ZadnjaInventura ON
(tblDokumentiDetails.ID_Artikel = ZadnjaInventura.ID_Artikel) AND
|
by: Chamnap |
last post by:
Hello, everyone
I have one question about the standard join and inner join, which one
is faster and more reliable? Can you recommend me to use? Please,
explain me...
Thanks
Chamnap
|
by: Anila |
last post by:
Hi Friends,
My problem with Inner join is ...
first i joined two tables and i got the result.
after that iam trying to join one more table its giving syn tax error in JOIN condition.
Here is the Query
|
by: teneesh |
last post by:
Here I have a code for a view that has been created by a developer on my team. I am trying to use the very same code to create a view for a different formid/quesid. But I cannot figure out how this one starts and ends. can someone please help.
here's the code from the developer.
SELECT a.EvalRecNo, w1.q1, w2.q2, w3.q3, w4.q4, w5.q5, w6.comment
FROM (SELECT DISTINCT u.EvalRecNo
FROM dbo.UData AS u...
|
by: MATTXtwo |
last post by:
I have this store procedure to select data from table with join like this...SELECT tblPeribadi.Personel_No, tblPeribadi.Nama,tblCompany.Keterangan as Company_Code, tblPeribadi.Jawatan, tblPeribadi.Taraf_Jawatan,
tblGroup.Keterangan AS Kumpulan,tblPeribadi.Gred,tblBusiness_Area.Keterangan AS Business_Area,tblCost_Center.Keterangan AS Kod_Pusat_Kos, tblPeribadi.IC_Baru, tblPeribadi.IC_Lama,
...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |