Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Cant figure this out..

Author  Topic 

tkelley24
Starting Member

4 Posts

Posted - 2012-02-19 : 15:26:32
I am new to sql and am having problem with the following .
WHen I create a table its giving me an error that in line 7 in the Faculty and COurse and CRSENRL tables any thoughts..?
Thank you
create table student
(
SID char (3) Not null,
Sname varchar2 (10) Not Null,
SEX char(1) check (sex in ('M', 'F')),
major char(3) check (major in ('ACC', 'FIN', 'MGT', 'MKT')),
GPA NUMERIC (3,2),
Primary key(SID)
);

create table faculty
(
FID char(3) not null,
FNAME char(10) not null,
EXT char (3),
DEPT char(3) check (DEPT in ('ACC', 'FIN', 'MGT', 'MKT')),
RANK varchar(4) check (RANK in ('INST', 'ASST', "ASSO", 'FULL')),
SALARY int(0,2),
);

create table COURSE
(
CRSNBR char(6) not null,
CNAME char(20) not null,
CREDIT char (1),
MAXENRL SMALLINT
FID char (3),
);

create table CRSENRL
(
CRSNBR char (6) Not Null,
SID char(3) not Null,
GRADE char (1),
);

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2012-02-19 : 16:49:12
That's Oracle code, and this is a Microsoft SQL Server forum. You'll probably get better and faster assistance on an Oracle forum like http://www.dbforums.com

--
Gail Shaw
SQL Server MVP
Go to Top of Page
   

- Advertisement -