|
#1
| |||
| |||
| Please check these material also an correct. No check code check only my description that I wrote 1.) Table Table is a set of data elements that is organized in row and column the columns. The columns are identified by name is called field, and the row are identified by value appearing in particulars column subset is call record. Every tables link with each other by candidate key. Create Degreedim table This flowing code create DEGREEDIM table that saved the department and degree information CODE : CREATE TABLE DEGREEDIM( "DEGDEPT" VARCHAR2(99 BYTE), "DEGSNO" NUMBER NOT NULL ENABLE, "DEGNAME" VARCHAR2(99 BYTE), ****************************** 2.) Constraint Constraint are table attribute used to define rules on the type of data value allowed within specified column by enforcing these rules within the database, you restrict to a user against incorrect data being added to the database. ******************** 3.) Sequence A sequence is an object in oracle that is use to generate a number sequence, that sequence provide the unique number for primary key MDEG SequenceThis flowing code generate the unique number sequencecodeREM START MFAFORBI MDEGCREATE SEQUENCE "MFAFORBI"."MDEG" MINVALUE 1 MAXVALUE 999999999999999999999999999 INCREMENT BY 1 START WITH 41 CACHE 20 NOORDER NOCYCLE ;REM END MFAFORBI MDEG ********************************* 4.) Trigger Trigger is special kind of stored procedure that execute automatically, when a user attempt the specified insertion, update, or delete statement. There are two type of trigger.
Create DTTR Trigger This flowing code gets a unique number from Mdeg sequence that use as primary key in DEGREEDIM table. CODE : CREATE OR REPLACE TRIGGER "MFAFORBI"."DTTR" BEFORE INSERT ON DEGREEDIM FOR EACH ROW BEGINSELECT MDEG.NEXTVAL INTO :NEW.DEGSNO FROM DUAL;END; |
|
#2
| |||
| |||
| Quote:
Some sentences were very obscure. Check carefully that you understand my suggested alterations. |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| check grammer | ashok.amlhyd | Ask a Teacher | 1 | 08-Jan-2008 08:59 |
| pls check my essay grammer and puncuation | Need_help | Editing & Writing Topics | 1 | 27-Mar-2006 06:04 |
| Email Grammer - please check | TheIce | Editing & Writing Topics | 2 | 20-Mar-2006 17:01 |
| Grammer check | rupali.ahuja | Ask a Teacher | 1 | 20-Jul-2005 02:58 |
| please check the grammer | Unregistered | Ask a Teacher | 2 | 23-Feb-2005 09:03 |