ORA 00936 Missing Expression

Christopher

I have looked through the site and cannot find an answer to my question, many close but none the same. I am trying to select data from two tables and join five. The three which I am not selecting information for are publisher, order_items, and book_order. They are just the tables in the ERD which are in line. I keep on getting ORA 00936: Missing expression on my FROM line. But I have no idea what is causing it. all of the tables are represented accurately, the only thing that is different is the TO_CHAR statement in the SELECT line. I think that may be the problem.

SELECT book_customer.firstname, book_customer.lastname, 
TO_CHAR(book_order.orderdate,'MM/DD/YYYY') AS "Order Date",
  FROM book_customer, book_order, order_items, books, publisher
    WHERE (book_customer.customerid = book_order.customerid) 
      AND (book_order.orderid = order_items.orderid)
      AND (order_items.bookid = books.bookid)
      AND (books.pubid = publisher.pubid)
      AND (publisher.publishername = 'printing with us');
Mureinik

You have a redundant comma (,) before your from clause:

SELECT book_customer.firstname, book_customer.lastname, 
TO_CHAR(book_order.orderdate,'MM/DD/YYYY') AS "Order Date" -- Comma removed here
  FROM book_customer, book_order, order_items, books, publisher
    WHERE (book_customer.customerid = book_order.customerid) 
      AND (book_order.orderid = order_items.orderid)
      AND (order_items.bookid = books.bookid)
      AND (books.pubid = publisher.pubid)
      AND (publisher.publishername = 'printing with us');

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

ORA-00936: missing expression distinct on oracle

From Dev

ORA-00936: missing expression, although there seems to be no missing expression (SQL)

From Dev

Missing Expression

From Dev

Oracle SQL - ORA-00936 on DATE()

From Dev

ORA-00936: missing expression - what is the cause?

From Dev

ORA-00936, Java and SQL

From Dev

ORA-00936: missing expression error when inserting values

From Dev

ora:00936 Missing Expression error

From Dev

ORA-00917, missing comma

From Dev

HQL with one-to-many relationship is giving "ORA-00936: missing expression" exception

From Dev

ORA-00917, missing comma

From Dev

getting java.sql.SQLSyntaxErrorException: ORA-00936: missing expression error

From Dev

ORA-00936: missing expression oracle

From Dev

Entity Framework ExecuteStoreCommand gives {"ORA-00936: missing expression"}

From Dev

ORA-00936: missing expression bad SQL grammar

From Dev

ORA-00936: missing expression while executing in C#.

From Dev

ORA-00936: missing expression, although there seems to be no missing expression (SQL)

From Dev

ORA-00936: missing expression in order by case

From Dev

ORA-00936: missing expression ORACLE please help me

From Dev

SQL Developer Distinct gives ORA-00936

From Dev

Oracle data access error: ORA-00936: missing expression

From Dev

HQL with one-to-many relationship is giving "ORA-00936: missing expression" exception

From Dev

SQL Error -- ORA-00936: missing expression

From Dev

Sql throws 'DBError: ORA-00936: missing expression' when empty expression_list is passed

From Dev

ORA-00936: missing expression while using stringbuilder

From Dev

Why am I getting an ORA-00936 error for my composite primary key on my sqlplus code?

From Dev

Case within a Select returning "missing expression ORA-00905"

From Dev

ORA-06550: line 12, column 9: PL/SQL: ORA-00936: missing expression ORA-06550: line 9, column 5: PL/SQL: SQL Statement ignored

From Dev

ORA-00936: Missing Expression Teradata

Related Related

  1. 1

    ORA-00936: missing expression distinct on oracle

  2. 2

    ORA-00936: missing expression, although there seems to be no missing expression (SQL)

  3. 3

    Missing Expression

  4. 4

    Oracle SQL - ORA-00936 on DATE()

  5. 5

    ORA-00936: missing expression - what is the cause?

  6. 6

    ORA-00936, Java and SQL

  7. 7

    ORA-00936: missing expression error when inserting values

  8. 8

    ora:00936 Missing Expression error

  9. 9

    ORA-00917, missing comma

  10. 10

    HQL with one-to-many relationship is giving "ORA-00936: missing expression" exception

  11. 11

    ORA-00917, missing comma

  12. 12

    getting java.sql.SQLSyntaxErrorException: ORA-00936: missing expression error

  13. 13

    ORA-00936: missing expression oracle

  14. 14

    Entity Framework ExecuteStoreCommand gives {"ORA-00936: missing expression"}

  15. 15

    ORA-00936: missing expression bad SQL grammar

  16. 16

    ORA-00936: missing expression while executing in C#.

  17. 17

    ORA-00936: missing expression, although there seems to be no missing expression (SQL)

  18. 18

    ORA-00936: missing expression in order by case

  19. 19

    ORA-00936: missing expression ORACLE please help me

  20. 20

    SQL Developer Distinct gives ORA-00936

  21. 21

    Oracle data access error: ORA-00936: missing expression

  22. 22

    HQL with one-to-many relationship is giving "ORA-00936: missing expression" exception

  23. 23

    SQL Error -- ORA-00936: missing expression

  24. 24

    Sql throws 'DBError: ORA-00936: missing expression' when empty expression_list is passed

  25. 25

    ORA-00936: missing expression while using stringbuilder

  26. 26

    Why am I getting an ORA-00936 error for my composite primary key on my sqlplus code?

  27. 27

    Case within a Select returning "missing expression ORA-00905"

  28. 28

    ORA-06550: line 12, column 9: PL/SQL: ORA-00936: missing expression ORA-06550: line 9, column 5: PL/SQL: SQL Statement ignored

  29. 29

    ORA-00936: Missing Expression Teradata

HotTag

Archive