Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9084899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T21:06:51+00:00 2026-06-16T21:06:51+00:00

I am developing web application using JSP and Servlet (IDE: Eclipse, Container: Tomcat7.0, DB:

  • 0

I am developing web application using JSP and Servlet (IDE: Eclipse, Container: Tomcat7.0, DB: Oracle 10)

I want to get data from two table in a single query

Query:

query = "select * from PROTOCOL as a, ACTIONS as b where a.PROTOCOL_ID = b.PROTOCOL_ID";

But after running the application I am getting the following exception:

java.sql.SQLException: ORA-00933: SQL command not properly ended

is there anything wrong in query?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T21:06:54+00:00Added an answer on June 16, 2026 at 9:06 pm

    The problem you have is keyword AS. This is used for columns in SELECT section. It is not valid for FROM where you specify the tables.

    You have

    select * from PROTOCOL as a, ACTIONS as b

    should be

    select * from PROTOCOL a, ACTIONS b...

    From Oracle Docs

    t_alias

    Specify a correlation name, which is alias for the table, view,
    materialized view, or subquery for evaluating the query. This alias is
    required if the select list references any object type attributes or
    object type methods. Correlation names are most often used in a
    correlated query. Other references to the table, view, or materialized
    view throughout the query must refer to this alias.

    Example:

    SELECT select_list 
        FROM table1 t_alias1 
        WHERE expr operator 
            (SELECT column_list 
                FROM table2 t_alias2 
                WHERE t_alias1.column 
                   operator t_alias2.column); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a web application using JSP & Servlet.(IDE: Eclipse, Container: Tomcat7.0) To
I developing a web application using JSP & Servlet (IDE: Eclipse, Database: Oracle10). I
I am developing a web application using JSP & Servlet (IDE: Eclipse, Database: Oracle10).
I am developing a web application. I am using Eclipse as IDE. I was
I am using eclipse Indigo IDE ..I am developing a jsp application ( myProject
I am developing a web application using JSP and Servlet. I am trying to
I'm developing a simple servlet/JSP, data-driven web site on Google App Engine. I've started
I am using Spring Web MVC and Hibernate for developing my application. My login.jsp
I am developing a web application using Struts 1.2.7 I want to print a
I am developing web application using asp.net, but i want to work on asp

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.