a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Hosting from $3.99 per month!

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions. dd

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Oracle (missing Keyword)

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> Oracle (missing Keyword)
Page: [1]
 
mcarpe

 

Posts: 13
Joined: 8/5/2004
Status: offline

 
Oracle (missing Keyword) - 11/6/2006 15:48:06   
We have a clinical system here running on Oracle 9i I believe and I have managed to connect via ODBC and write querie(s) to run diff reports. I have set serveral up in Frontpage as online reports but am having issues with one of them.

The error I am getting is:

quote:

Database Results Error
Description: [Oracle][ODBC][Ora]ORA-00905: missing keyword
Number: -2147467259 (0x80004005)
Source: Microsoft OLE DB Provider for ODBC Drivers


I'm not really sure wehat that means in regards to my query syntax. Any help is appreciated :)

The query (coped from access)
quote:

SELECT PERSON_ALIAS.ALIAS AS MRN, PERSON.NAME_LAST_KEY AS LastName, PERSON.NAME_FIRST_KEY AS FirstName, CODE_VALUE_1.DISPLAY AS Status, CODE_VALUE.DISPLAY AS Store, ORDER_DISPENSE.RX_NBR AS RX, ORDERS.ORDER_MNEMONIC AS Orders, PRSNL.NAME_FULL_FORMATTED AS Prescriber, ORDER_DISPENSE.LAST_REFILL_DT_TM AS LastFilll, ORDER_DISPENSE.DAYS_SUPPLY AS DS, ORDER_DISPENSE.REFILLS_REMAINING AS RR, HEALTH_PLAN.PLAN_NAME AS HealthPlan, ORDERS.CURRENT_START_DT_TM AS DateWritten
FROM ((((((ORDERS INNER JOIN PERSON ON ORDERS.PERSON_ID = PERSON.PERSON_ID) INNER JOIN PERSON_ALIAS ON PERSON.PERSON_ID = PERSON_ALIAS.PERSON_ID) INNER JOIN ORDER_DISPENSE ON (ORDERS.ORDER_ID = ORDER_DISPENSE.ORDER_ID) AND (PERSON.PERSON_ID = ORDER_DISPENSE.PERSON_ID)) INNER JOIN CODE_VALUE ON ORDER_DISPENSE.RX_NBR_CD = CODE_VALUE.CODE_VALUE) INNER JOIN PRSNL ON ORDERS.LAST_UPDATE_PROVIDER_ID = PRSNL.PERSON_ID) INNER JOIN CODE_VALUE AS CODE_VALUE_1 ON ORDERS.ORDER_STATUS_CD = CODE_VALUE_1.CODE_VALUE) INNER JOIN HEALTH_PLAN ON ORDER_DISPENSE.HEALTH_PLAN_ID = HEALTH_PLAN.HEALTH_PLAN_ID
WHERE (((PERSON_ALIAS.ALIAS)=[ENTER MRN]) AND ((PERSON_ALIAS.ACTIVE_IND)=1))
ORDER BY ORDER_DISPENSE.LAST_REFILL_DT_TM DESC;


mcarpe

 

Posts: 13
Joined: 8/5/2004
Status: offline

 
RE: Oracle (missing Keyword) - 11/7/2006 23:49:50   
I used the Oracle SQL worksheet to identify my syntax error.

INNER JOIN CODE_VALUE AS CODE_VALUE_1 ON ORDERS.ORDER_STATUS_CD = CODE_VALUE_1.CODE_VALUE)

Regards,
Mcarpe

(in reply to mcarpe)
Page:   [1]
OutFront Discoveries

All Forums >> Web Development >> ASP and Database >> Oracle (missing Keyword)
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts