Trying to run an sql query in VBA but every time I run the macro I get an error message stating " Run-time error’- 2147217900 (80040e14)’: ORA-00923: From keyboard not found where expected”. I am a newbie with using queries and am wondering if anyone knows what the problem is with the query I wrote and why I keep getting this error in VBA. Everything in my code works except this query so I know the problem has to be the query, I've run other queries in the same code and they work so I am curious what is the problem with this query.
This is the query that I am using:
SELECT STATEMENT
HASH GROUP BY
VIEW EDW.VCS_DEALER_TRADE_VW
FILTER
HASH GROUP BY
VIEW EDW
UNION-ALL
HASH GROUP BY
HASH JOIN
VIEW EDW.index$_join$_005
HASH JOIN
BITMAP CONVERSION TO ROWIDS
BITMAP INDEX SINGLE VALUE EDW.XIF005DEALER
INDEX FAST FULL SCAN EDW.IDX_DEALER
HASH JOIN
VIEW EDW.index$_join$_004
HASH JOIN
BITMAP CONVERSION TO ROWIDS
BITMAP INDEX SINGLE VALUE EDW.XIF005DEALER
INDEX FAST FULL SCAN EDW.IDX_DEALER
TABLE ACCESS FULL EDW.VCS_DEALER_ORDER_TRADE
HASH GROUP BY
NESTED LOOPS
HASH JOIN
HASH JOIN
TABLE ACCESS FULL EDW.VCS_DEALER_VT_TRADE
VIEW EDW.index$_join$_008
HASH JOIN
BITMAP CONVERSION TO ROWIDS
BITMAP INDEX SINGLE VALUE EDW.XIF005DEALER
INDEX FAST FULL SCAN EDW.IDX_DEALER
VIEW EDW.index$_join$_009
HASH JOIN
BITMAP CONVERSION TO ROWIDS
BITMAP INDEX SINGLE VALUE EDW.XIF005DEALER
INDEX FAST FULL SCAN EDW.IDX_DEALER
TABLE ACCESS BY INDEX ROWID EDW.VCS_VEHICLE
INDEX UNIQUE SCAN EDW.XPKVCS_VEHICLE
HASH GROUP BY
FILTER
HASH JOIN
TABLE ACCESS FULL EDW.VCS_DLR_ORDER
VIEW EDW.index$_join$_011
HASH JOIN
BITMAP CONVERSION TO ROWIDS
BITMAP INDEX SINGLE VALUE EDW.XIF005DEALER
INDEX FAST FULL SCAN EDW.IDX_DEALER
HASH GROUP BY
FILTER
TABLE ACCESS BY INDEX ROWID EDW.VCS_INVENTORY
NESTED LOOPS
MERGE JOIN CARTESIAN
TABLE ACCESS FULL EDW.LAST_BUSINESS_DAY
BUFFER SORT
TABLE ACCESS FULL EDW.DEALER
INDEX RANGE SCAN EDW.XIF192VCS_INVENT
When you are faced with this error, you will see the following message:
ORA-00923 FROM keyword not found where expected
ORA-00923 occurs when you try to execute a SELECT statement without a FROM keyword in its correct form and place. If you are seeing this error, the keyword FROM is spelled incorrectly, misplaced, or altogether missing. In Oracle, the keyword FROM must follow the last selected item in a SELECT statement or in the case of a REVOKE statement, the privileges. If the FROM keyword is missing or otherwise incorrect, you will see ORA-00923.
The Solution
To resolve ORA-00923, you should make sure three possible causes are corrected. First, you must correct the syntax. Make sure you have placed the keyword FROM in its correct place, and that no spelling errors have occurred. Secondly, if you used quotation marks in an alias, make sure that they have properly enclosed the alias and that they are double quotation marks. Lastly, make sure no reserved words were used as an alias.
Since you have not provided me the table names, I cannot provide you the exact solution over here. Please make sure that you have corrected the mistakes as stated above.
Trying to run an sql query in VBA but every time I run the macro I...
You will develop an E-Commerce database used to maintain customers, products and sales information. You are required to 1) gather and analyze requirements 2) design logical structure of the database 3) create stored procedures to develop the tables and insert the data 4) write SQL statements for data extraction and reporting. Throughout the course of this semester you have analyzed the requirements for an eCommerce database, designed and developed your database. As a class we have gone through the process...
I need a response in your opinion, from this answer Q1. Any user accessing the database is more interested in quick and correct result than how a database is designed. Hence if we introduce redundancy in the table and if the performance of the query increases, then we can ignore 3NF. This is known as denormalization. In this process, a normalized table will be rejoined to have the redundancy in the table to increase the performance of the query. Denormalization...
== Programming Assignment == For this assignment you will write a program that reads in the family data for the Martian colonies and stores that data in an accessible database. This database allows for a user to look up a family and its immediate friends. The program should store the data in a hashtable to ensure quick access time. The objective of this assignment is to learn how to implement and use a hashtable. Since this is the objective, you...
Hello, I'm having trouble with the trial balance. Can someone please help me with it. I think something is wrong with the adjusted trial balance. khampton ACCOUNTING SERVICE INC Dear Newbie, Welcome to Hampton! My name is Julio Antoni, your supervisor. We believe the best way for you to get familiar with what you are going to be doing here is to throw you right in, so we are asking you to start working on the books for us right...
I need help with my very last assignment of this term PLEASE!!, and here are the instructions: After reading Chapter Two, “Keys to Successful IT Governance,” from Roger Kroft and Guy Scalzi’s book entitled, IT Governance in Hospitals and Health Systems, please refer to the following assignment instructions below. This chapter consists of interviews with executives identifying mistakes that are made when governing healthcare information technology (IT). The chapter is broken down into subheadings listing areas of importance to understand...
How can we assess whether a project is a success or a failure? This case presents two phases of a large business transformation project involving the implementation of an ERP system with the aim of creating an integrated company. The case illustrates some of the challenges associated with integration. It also presents the obstacles facing companies that undertake projects involving large information technology projects. Bombardier and Its Environment Joseph-Armand Bombardier was 15 years old when he built his first snowmobile...