Question

In: Computer Science

In your own words, define the following database terms and give an example of each: Table...

In your own words, define the following database terms and give an example of each:

Table

Record

Field

Primary Key

Foreign Key

Solutions

Expert Solution


Table -
A table is a set of data element using the columns and rows.
which store the data.which has a number of columns and rows.
e.g - A table of student which contains student data.

---------+---------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+---------+---------------+------+-----+---------+-------+
| ID | int(11) | NO | PRI | | |
| NAME | varchar(20) | NO | | | |
| AGE | int(11) | NO | | | |
| ADDRESS | char(25) | YES | | NULL | |
| SALARY | decimal(18,2) | YES | | NULL | |
+---------+---------------+------+-----+---------+-------+

Record -

A single entry in a table is called a record or row.
A record in a table represent set of related data.

e.g. example of single record.


1   Adam   34   13000.


Field -

A table consist of several records i.e row ,each record can be brocken
into several smaller entities known as field.

e.g a table consist of four field, ID,NAME,AGE,SALARY.


Primary Key -

Is the a column inside a table which is used to identify each row or record in a table.

e.g. -

CREATE TABLE Persons
(
P_Id int NOT NULL,
LastName varchar(255) NOT NULL,
FirstName varchar(255),
Address varchar(255),
City varchar(255),
PRIMARY KEY (P_Id)
)


P_Id is the primary key inside a table Person.


Foreign Key -


A Foreign key is the key inside the table which points to primary key of another table.

e.g
-

CREATE TABLE customer1(
cust_code char(6) NOT NULL PRIMARY KEY,
cust_name char(25),
cust_city char(25),
agent_code char(6),
FOREIGN KEY(agent_code)
REFERENCES agents (agent_code)
) ;


where agent_code is the foreign key.


Related Solutions

1.1 In your own words, define and give an example of each of the following statistical...
1.1 In your own words, define and give an example of each of the following statistical terms. a. population b. sample statistic e. c. parameter d. statistical inference 1.2 Briefly describe the difference between descriptive statistics and inferential statistics. 1.3 A politician who is running for the office of mayor of a city with 25,000 registered voters commissions a survey. In the survey, 48% of the 200 registered voters interviewed say they plan to vote for her. a. What is...
Explain in your own words what each of the following terms mean, and give an example...
Explain in your own words what each of the following terms mean, and give an example of each: Positive correlation Negative correlation No correlation
Define these business finance terms in your own words and then give a real world example...
Define these business finance terms in your own words and then give a real world example of each: Operating Cash Flow, Treasury Stock, Common-Size Financial Statements, and DuPoint Identity.
Define these business finance terms in your own words and then give a real world example...
Define these business finance terms in your own words and then give a real world example of each: Liquidity, Matching Principle, Net Capital Spending, and Operating Cycle.
Define these business finance terms in your own words and then give a real world example...
Define these business finance terms in your own words and then give a real world example of each: Classes of stock, Comparable Valuations, Dividend Growth model, Preemptive RIght, an Preferred stock.
Define these business finance terms in your own words and then give a real world example...
Define these business finance terms in your own words and then give a real world example of each: Bond, Bond Rating, Call Provision, Deferred Call Provision, Call Protection, Call Premium.
Define these business finance terms in your own words and then give a real world example...
Define these business finance terms in your own words and then give a real world example of each: Protective Covenant, Sinking Fund, Yield to maturity vs. Coupon rate, Zero Coupon Bond, Capital Gains yield and dividend yield.
Define these business finance terms in your own words and then give a real world example...
Define these business finance terms in your own words and then give a real world example of each: Debenture, Face Value, Fisher Effect, Indenture, Interest Rate Risk.
Define these business finance terms in your own words and then give a real world example...
Define these business finance terms in your own words and then give a real world example of each: Effective Annual Rate (EAR), Interest-Only Loans, Perpetuity, Pure Discount Loans, Quoted Interest Rate.
Define these business finance terms in your own words and then give a real world example...
Define these business finance terms in your own words and then give a real world example of each: Compounding vs. Discounting, Discounted Cash Flow Valuation, Time Value of Money, (Ordinary) Annuity vs. Annuity Due, Amortized Loans.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT