View Single Post
  #2 (permalink)  
Old 28-Mar-2008, 19:19
Anglika Anglika is offline
Moderator
 
Join Date: Oct 2006
Country: UK
Posts: 12,680
Current Location: UK
First Language: English
Thanks: 2
Thanked 1,770 Times in 1,673 Posts
Anglika has a brilliant futureAnglika has a brilliant futureAnglika has a brilliant futureAnglika has a brilliant futureAnglika has a brilliant futureAnglika has a brilliant futureAnglika has a brilliant futureAnglika has a brilliant futureAnglika has a brilliant futureAnglika has a brilliant futureAnglika has a brilliant future
Default Re: check grammer of my pragraph

Quote:
Originally Posted by fahimaamir View Post
sir
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 rows and columns.
The columns are identified by name and are the fields; the rows are identified by values appearing in specific column subsets are are called the records. The tables are linked with each other by candidate key.

Create Degreedim table


This flowing code creates a
DEGREEDIM table in which is 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" is the table attribute used to define rules on the type of data value allowed within specified columns. By enforcing these rules within the database, you restrict to a user, preventing incorrect data being added to the database.

********************
3.)

Sequence
A "sequence" is an object in Oracle that is used to generate a number sequence. This sequence provides the unique number for the 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 a special kind of stored procedure that executes automatically when a user attempts the specified insertion or update, or tries to delete a statement.
There are two types of trigger.
  • Before (run before table affection)
  • After (run after table affection)


Create
DTTR Trigger

This flowing code gets a unique number from Mdeg sequence that is used as primary key in the
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;
.

Some sentences were very obscure. Check carefully that you understand my suggested alterations.
Reply With Quote