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
 newbie needs 3 simple answers!

Author  Topic 

Vishian
Starting Member

3 Posts

Posted - 2007-02-01 : 19:42:36
Hello, I am taking a Database course this semester and I am totally clueless on the general concepts of managing a database. I have a few questions about these two tables. If someone could please answer them and maybe explain it to me I would greatly appreciate it!...and yes it is homework but I really want to understand it!

1.Which column or columns contain redundant data?

2.Why would you want this duplication, give an example of a use of this database that would benefit from redundancy.

3.Give an example of a specific constraints you would place on programs that accessed this database to control the redundancy?





PERSON
ID NAME DEPT GENDER
SC937 Kirk CMD M
SM105 McCoy MED M
SE602 Rand CMD F
SE197 Scott ENG M
S179 Spock SCI M
SC835 Sulu CMD M
SE213 Spock ENG F

Hello, I am taking a Database course this semester and I am totally clueless on the general concepts of managing a database.


GRADEBOOK
PERS NAME DEPT DATE COURSE GRADE
S179 Spock SCI 12/1/2252 CSCI1100 A
SC835 Sulu CMD 1/30/2266 CSCI1100 A-
SC937 Kirk CMD 1/11/2266 CSCI1100 D
S179 Spock SCI 12/1/2286 CSCI4127 A
SC835 Sulu CMD 12/1/2286 CSCI1701 B+
SC937 Kirk CMD 12/1/2286 CSCI1100 C+
SE197 Scott ENG 12/1/2286 CSCI1100 A
SE213 Spock ENG 12/1/2286 CSCI1100 A
SM105 McCoy MED 12/1/2286 CSCI1100 C

nr
SQLTeam MVY

12543 Posts

Posted - 2007-02-02 : 09:21:33
1. Redundant data in this case is data that appears in both tables. There is a key value which enables you to link the tables but also other data has a copy in multiple rows in one of the tables which isn't necessary. You should be able to spot what it is.

2. It is usually done for performance - I would be surprised if it would help in this case though. I'm guessing they are talking about a search for the redundant data but that would probably be slower than using the relationship. Maybe if one of the tables was locked by another process.

3. Have a look at foreign keys.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)

7020 Posts

Posted - 2007-02-02 : 11:05:36
"2.Why would you want this duplication..."

It will keep future generations of DBAs busy fixing the mess it creates.






CODO ERGO SUM
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2007-02-02 : 11:40:19
Look in your text book

Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page
   

- Advertisement -