473,738 Members | 8,848 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

missing right parenthesis

14 New Member
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 (emplNo INT PRIMARY KEY,
3 emplName VARCHAR(20) NOT NULL,
4 emplStartDate DATE TIME,
5 emplStatus VARCHAR(20),
6 dprtNo INT);
emplStartDate DATE TIME,
*
ERROR at line 4:
ORA-00907: missing right parenthesis
Nov 20 '06 #1
7 6782
milonov
32 New Member
hi

error is here: emplStartDate DATE TIME
^^^^^^^^^^^^
no such type, change to emplStartDate DATE and you'll feel happiness :)

Best Regards,
Michael Milonov
http://www.snotratech.com

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 (emplNo INT PRIMARY KEY,
3 emplName VARCHAR(20) NOT NULL,
4 emplStartDate DATE TIME,
5 emplStatus VARCHAR(20),
6 dprtNo INT);
emplStartDate DATE TIME,
*
ERROR at line 4:
ORA-00907: missing right parenthesis
Nov 20 '06 #2
bazubwabo
14 New Member
hi guys,
Could u please to help me again by correcting the error,eventuall y i didn't get how to correct the error.
Thanks
Nov 20 '06 #3
milonov
32 New Member
CREATE TABLE EMPLOYEE
(emplNo INT PRIMARY KEY,
emplName VARCHAR(20) NOT NULL,
emplStartDate DATE,
emplStatus VARCHAR(20),
dprtNo INT);

that's all.

hi guys,
Could u please to help me again by correcting the error,eventuall y i didn't get how to correct the error.
Thanks
Nov 20 '06 #4
bazubwabo
14 New Member
hi guys ,
thanks a lot i've found out the error .

regards,
bazubwabo Jean Bertrand
IT student at Fontys University
Nov 20 '06 #5
bazubwabo
14 New Member
hi,
i've tried also to insert values on employee table but however i've found some erros,if by the way you have something for me you can help me to correct them.

1)SQL> INSERT INTO EMPLOYEE VALUES (123,'RENE','20 03/09/01',' ',7);
INSERT INTO EMPLOYEE VALUES (123,'RENE','20 03/09/01',' ',7)
*
ERROR at line 1:
ORA-01861: literal does not match format string

2)SQL> INSERT INTO EMPLOYEE VALUES (110,'MTENTHIJE ',' ',' ',21);
INSERT INTO EMPLOYEE VALUES (110,'MTENTHIJE ',' ',' ',21)
*
ERROR at line 1:
ORA-01847: day of month must be between 1 and last day of month

3)SQL> INSERT INTO EMPLOYEE VALUES (153,'RECTEMP05 ','01-SEPT-2003',' ',7);
INSERT INTO EMPLOYEE VALUES (153,'RECTEMP05 ','01-SEPT-2003',' ',7)
*
ERROR at line 1:
ORA-01841: (full) year must be between -4713 and +9999, and not be 0

Thanks for your attention
Nov 20 '06 #6
milonov
32 New Member
1) INSERT INTO EMPLOYEE VALUES (123,'RENE', to_date('2003/09/01', 'yyyy/mm/dd'), NULL ,7);

2) INSERT INTO EMPLOYEE (emplNo, emplName, dprtNo) VALUES (110,'MTENTHIJE ', 21);

3) INSERT INTO EMPLOYEE VALUES (153,'RECTEMP05 ', to_date('01-SEP-2003', 'dd-mon-yyyy'), NULL,7);

Best Regards,
Michael Milonov
http://www.snotratech. com

hi,
i've tried also to insert values on employee table but however i've found some erros,if by the way you have something for me you can help me to correct them.

1)SQL> INSERT INTO EMPLOYEE VALUES (123,'RENE','20 03/09/01',' ',7);
INSERT INTO EMPLOYEE VALUES (123,'RENE','20 03/09/01', ' ',7)
*
ERROR at line 1:
ORA-01861: literal does not match format string

2)SQL> INSERT INTO EMPLOYEE VALUES (110,'MTENTHIJE ',' ',' ',21);
INSERT INTO EMPLOYEE VALUES (110,'MTENTHIJE ',' ',' ',21)
*
ERROR at line 1:
ORA-01847: day of month must be between 1 and last day of month

3)SQL> INSERT INTO EMPLOYEE VALUES (153,'RECTEMP05 ','01-SEPT-2003',' ',7);
INSERT INTO EMPLOYEE VALUES (153,'RECTEMP05 ','01-SEPT-2003',' ',7)
*
ERROR at line 1:
ORA-01841: (full) year must be between -4713 and +9999, and not be 0

Thanks for your attention
Nov 21 '06 #7
bazubwabo
14 New Member
Thanks a lot for your help .
Regards ,
bertrand
Nov 21 '06 #8

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

Similar topics

0
979
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. How should I do? Thank you in advance. kind regards chenyu
1
2431
by: kuzen | last post by:
Hi guys, Could you plz check this code out and tell what the problem is. Thanks in advance CREATE TABLE RESERVATIONS ( RESERVATION_ID NUMBER(5), RENTER NUMBER(6), CAR_TYPE NUMBER(1), START_DATE DATE DEFAULT SYSDATE, FINISH_DATE DATE, TO_PAY NUMBER(6),
2
2527
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 trying to do is write a program that will print four columns each with a heading that will have field of fifteen characters. in the first column is the integer in the second is its square in the third is its cube and in the fourth is its square root....
2
3365
by: keokepa | last post by:
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),
3
4721
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
6461
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: missing right parenthesis
1
3399
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 RADLEX.radlinks ( PID varchar(30) NOT NULL, CID varchar(30) NOT NULL, relation_type varchar(25) NOT NULL, preferred tinyint(1),
1
3470
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 - - - this on works - - - SELECT tblAccount.Acct_Num, tblAccount.STATUS, tblAccount.RC1, tblAccount.RC_2, tblAccount.RC_3, 33 In (,,) RC33 FROM tblAccount;
4
5400
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 included in the query, so there might be a better way to handle the syntax here. My main concern right now is just possible getting a fresh set of eyes on the VBA to see what I'm missing. I'm using the form's textbox field txtKitNum (strKit) to test...
0
8969
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8788
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9263
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8210
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4570
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4825
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3279
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2745
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2193
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.