473,325 Members | 2,712 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

missing right parenthesis - new to SQL need help

hi, i got this missing right parenthesis error while trying to create a table
and i'm not too sure where i went wrong
could someone point out my mistakes?

this is what i had typed into Oracle SQL developer

CREATE TABLE PROPERTYFORRENT
(PROPERTYNO VARCHAR2(5) NOT NULL,
STREET VARCHAR2(25) NOT NULL,
AREA VARCHAR2(15),
CITY VARCHAR2(15) NOT NULL,
POSTCODE VARCHAR2(8),
TYPE CHAR NOT NULL,
ROOMS BYTE,
RENT VARCHAR2(6, 2),
OWNERNO VARCHAR2(5),
STAFFNO VARCHAR2(5),
BRANCHNO VARCHAR2(5) NOT NULL,
CONSTRAINT PROPERTYNO PRIMARY KEY (PROPERTYNO),
CONSTRAINT OWNERFK FOREIGN KEY(OWNERNO) REFERENCES OWNER(OWNERNO),
CONSTRAINT STAFFFK FOREIGN KEY(STAFFNO) REFERENCES STAFF(STAFFNO),
CONSTRAINT BRANCHFK FOREIGN KEY(BRANCHNO) REFERENCES BRANCH(BRANCHNO));


much thanks.
Mar 15 '07 #1
2 3344
I manage to resolve the problem myself

it seems that i have used the wrong data types for "Rooms" and "Rent"
which should be
ROOMS NUMBER(1),
RENT NUMBER(6,2),


and also i am also duplicated namings for my constaints which already exist in my other table. by making changes to the naming and correcting the datatype, the problem was resolved.
Mar 15 '07 #2
vijaydiwakar
579 512MB
I manage to resolve the problem myself

it seems that i have used the wrong data types for "Rooms" and "Rent"
which should be
ROOMS NUMBER(1),
RENT NUMBER(6,2),


and also i am also duplicated namings for my constaints which already exist in my other table. by making changes to the naming and correcting the datatype, the problem was resolved.
Wel Done
keep it up
Mar 15 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Gregory Nans | last post by:
hello, i need some help to 'tree-ify' a string... for example i have strings such as : s = """A(here 's , B(A ) silly test) C(to show D(what kind) of stuff i need))""" and i need to...
0
by: chenyu468 | last post by:
Hi, I am using (vc++) of vs.net 2003 for development. In the source code, there are too many right parenthesis in one section. I want to test which left parenthesis for one specified parenthesis....
7
by: bazubwabo | last post by:
hi everybody, by creating my employee table ,i've gotten a missing right parenthesis error but i don't know why.Could please help me to find out the error. SQL> CREATE TABLE EMPLOYEE 2 ...
2
by: isaacr | last post by:
hi everyone. im new here and it looks like a good place to get some help with school. basically im currently trying to write a program with c++ on a program called Turbo C_5 (i think). what i am...
3
by: Thakur vikas | last post by:
when we run the query then we got ": (Error): ORA-00907: missing right parenthesis" what may be the error?
5
by: sugumar1985 | last post by:
select * from test where sal in ( case sal when (sal < 5000) and (sal > 2000) then 2000 else 3000 end) SQL> / when (sal<5000 and sal>2000) then 2000 * ERROR at line 2: ORA-00907:...
1
karlectomy
by: karlectomy | last post by:
Hi all, I'm trying to run this table creation script but I run into the ORA-00907 error: missing right parenthesis. Perhaps someone might know where I am going wrong? CREATE TABLE...
1
by: ozarka | last post by:
This select statement works and gives me True/False in RC33 column however the second statement gives me following error. Any idea? odbc--call failed. ora-00907: missing right parenthesis -...
4
by: dbrother | last post by:
Hello All, I've been plugging away at testing some VBA SQL that executes when a user clicks a button from a 'custom query' form. The user has lots of options as to what parameters should be...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.