Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 10th, 2012, 07:57 AM
Daniel M. Daniel M. is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2012
Posts: 11 Daniel M. User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 39 m 48 sec
Reputation Power: 0
Missing Right Parenthesis

Hello, this is my first time posting and I hope I'm doing this right. I'm working on my database homework, and I came across an error that I cannot seem to fix. I'm getting a missing right parenthesis error on line 7, but I seem to have all my parenthesis, endless I'm overlooking one. I will appreciate any help I can get. Thank you.

Code:
 DROP TABLE RoomDM CASCADE CONSTRAINTS PURGE; 
 1 CREATE TABLE RoomDM ( 
 2    rNo          VARCHAR(4), 
 3    hNo          NUMBER(3), 
 4    type         CHAR(6)                 NOT NULL, 
 5    price        NUMBER(3,2)             NOT NULL, 
 6 CONSTRAINT RoomDM_PK PRIMARY KEY (rNo, hNo), 
 7 CONSTRAINT RoomDM_hNo_FK FOREGIN KEY (hNo)         
 8                           REFERENCES HotelDM (hNo) ON DELETE CASCADE, 
 9 CONSTRAINT RoomDM_type_CK CHECK(type IN(‘Single’, ‘Double’, ‘Family’)) 
10 );


The error looks like this:
Code:
CONSTRAINT RoomDM_hNo_FK FOREGIN KEY (hNo) 
                                     * 
ERROR at line 7: 
ORA-00907: missing right parenthesis

Reply With Quote
  #2  
Old March 10th, 2012, 09:28 AM
shammat shammat is offline
Contributing User
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Oct 2003
Location: Germany
Posts: 2,685 shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level)shammat User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Month 3 Weeks 3 Days 19 h 53 m 13 sec
Reputation Power: 284
FOREGIN KEY should be FOREIGN KEY

Reply With Quote
  #3  
Old March 10th, 2012, 09:38 AM
Daniel M. Daniel M. is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2012
Posts: 11 Daniel M. User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 39 m 48 sec
Reputation Power: 0
Thank you so much. I was so focused on the parenthesis that I missed it!

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > Missing Right Parenthesis

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap