alter table student_info add student_last_name varchar2(15); insert into student_info(student_last_name) values('Katam'); create table zipcode_info

(zip_code varchar2(5),city varchar2(10)); create table instructor_info(instructor_id number(8,0),instructor_first_name varchar2(15),instructor_last_info varchar2(15)); alter table instructor_info rename (instructcity) as (instructor_last_name); create table grade_info(student_id number(8,0),section_id number(8,0),grade_type_code char(2),grade_code_occurance number(5)); alter table zipcode_info modify state varchar2(2); alter table instructor_info rename column instructor_last_info to instructor_last_name; alter table instructor_info add (street_address varchar2(50),zip_code varchar2(5)); alter table instructor_info modify instructor_last_name varchar2(25); alter table course_info add (course_name varchar2(50), course_prerequisite number(8,0)); alter table course_info modify cost number(9,2); alter table enrollment_info add enrollment_date date;

alter table zipcode_info add constraint zip_pk primary key(zip_code); select * from user_constraints where table_name='ZIPCODE_INFO'; alter table zipcode_info modify city varchar2(25) constraint zip_city_nn not null; alter table instructor_info add constraint zip_instructor_fk foreign key(zip_code) references zipcode_info(zip_code); alter table student_info modify student_first_name constraint student_fn_nn not null; alter table enrollment_info add constraint enrollment_stud_sect_pk primary key(student_id,section_id);

update student_info set student_id=10676182 where student_id=10676188.'hm'.alter table grade_info add constraint chk_grade_type_code check(grade_type_code in('fl'. insert into student_info(student_id.'Neel').'qz')).student_last_name) values(10676188. .student_first_name.'mt'.'pa'.'Uday'.'pj'.

Sign up to vote on this title
UsefulNot useful