472,351 Members | 1,634 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

For Oracle Sql plus

One table contains information about courses offered at a local college. A course number like MATH1301 or HIST2311 identifies each course. All course numbers are the same length. Each course has a name and number of credit hours earned for successful completion of the course. All information in this table is mandatory. The values stored in the credit hours must be greater than zero and less than 100.


check this
and how can u make this possible?
Oct 24 '07 #1
7 1629
amitpatel66
2,367 Expert 2GB
One table contains information about courses offered at a local college. A course number like MATH1301 or HIST2311 identifies each course. All course numbers are the same length. Each course has a name and number of credit hours earned for successful completion of the course. All information in this table is mandatory. The values stored in the credit hours must be greater than zero and less than 100.


check this
and how can u make this possible?
You can add NOT NULL constraint on all the columns of the table
ADD CHECK constraint for credit hours to be between 0 and 100
Oct 25 '07 #2
You can add NOT NULL constraint on all the columns of the table
ADD CHECK constraint for credit hours to be between 0 and 100

I did Not Null
but add check constraint right?
but in coding i am doing but now it is giving me an error
i check that but it is not working
Oct 25 '07 #3
amitpatel66
2,367 Expert 2GB
I did Not Null
but add check constraint right?
but in coding i am doing but now it is giving me an error
i check that but it is not working
Can you PSOT your error number and error message for my reference?
Oct 26 '07 #4
debasisdas
8,127 Expert 4TB
Kindly post the table structure for reference of our experts.
Oct 26 '07 #5
Kindly post the table structure for reference of our experts.
Part 2. Insert the following data into the three tables
Chip name DOB Dep Course title hrs
1234 Bob Smith 11Dec1953 M 3 Math1314 Algebra 3 B
1111 Sally M Jones 1 June 73 F 5 Math1314 Algebra 3
1111 Sally M Jones 1 June 73 F 5 HIST1301 US 3 B
1234 Bob Smith 11Dec1953 M 3 Hist1301 US 3 A
PHED1109 Yoga 1
2121 Al A Ala 6Novem83 M PHED1108 Dance 1
3333 Sue Chen 29 Feb 82 F 0
Oct 26 '07 #6
Insert Into Student(name, Lastname, Birthdate,gender,chip)
Values ('sue','chen', '29-02-1982','f','3333');

When I Trying To Put Date
Month Feb
But It Is Not Working It Is Giving Me Error No

Ora-01830

And I Tried With 02
Then Giivng Me One More Error
Ora-01843
So Any Sugestion?
Oct 26 '07 #7
amitpatel66
2,367 Expert 2GB
Insert Into Student(name, Lastname, Birthdate,gender,chip)
Values ('sue','chen', '29-02-1982','f','3333');

When I Trying To Put Date
Month Feb
But It Is Not Working It Is Giving Me Error No

Ora-01830

And I Tried With 02
Then Giivng Me One More Error
Ora-01843
So Any Sugestion?
Try TO_DATE function here:

check below query:

Expand|Select|Wrap|Line Numbers
  1. Insert Into Student(name, Lastname, Birthdate,gender,chip)
  2.   Values ('sue','chen',TO_DATE('29-02-1982','DD-MM-YYYY'),'f','3333');
  3.  
Oct 28 '07 #8

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

Similar topics

1
by: Benson, John | last post by:
Hi, I'm a non-Oracle guy just starting to use Python to explore Oracle. I enclose the Python command prompt log for the usage example further down...
0
by: expecthealth | last post by:
OPERATIONAL ORACLE DBA Position Description: This position will report to the Manager of Systems Services. The DBA will work in the Oracle...
1
by: Greg Lindstrom | last post by:
>Shouldn't this be '/u01/app/oracle/product/9.2.0' ? Based on the following values, that's what I'd expect. I changed the ORCALE_HOME environment...
1
by: Munk | last post by:
Hi, I'm learning sql and my instructor used sql*plus in oracle to explain some basic sql statements. I downloaded the latest oracle and...
1
by: Miori | last post by:
Dear all, Server machine running Oracle Database Server on Linux and a Client machine running Oracle Client on WIndows XP. HOw it is possible to...
3
by: Jon Ole Hedne | last post by:
My Access 2002-application need to work with tables from both Oracle and Access. To solve this, I want to run some querys on three views in Oracle...
8
by: danbredy | last post by:
Hi, I'm attempting to connect to an Oracle database using SQL Server 2005 Express (OS is Windows XP Professional) and having absolutely no luck....
5
by: jonceramic | last post by:
Hi All, I started developing in Access, and people took notice and so we're starting to migrate into our corporate's bigger Oracle system. ...
2
by: Vinod Sadanandan | last post by:
All, Below listed are the new features in Oracle 11g ,please join me in this discussion to generate a testcase and analyze...
1
by: Shawn Hirn | last post by:
In article <3EF75784.9040004@netscape.net>, Frank <fvanbortel@netscape.netwrote: I am stumped. I am a very very new Oracle user. A colleague...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...

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.