You are on page 1of 3

BOOK RENTAL DATABASE SYSTEM (DATABASE TABLES)

BR_Branch table

BRANCHNO ADDRESS TELNO DATESTART


1 1,Tulip Plaza 61111111 03-SEP-01
2 2,Hibiscus Mall 62222222 01-JAN-01
3 3,Rose Central 63333333 15-SEP-01

BR_Staff table

STAFFID NAME GENDER DOB DATEJOIN SALARY BRANCHNO


1 Richard M 01-JAN-81 09-SEP-02 1500 1
2 John M 02-FEB-82 09-SEP-02 1500 1
3 Mary F 03-MAR-83 03-SEP-01 1970 1
4 Sun Sun F 14-APR-74 22-OCT-02 1300 2
5 Jane F 15-FEB-81 22-OCT-02 1390 2
6 Nana M 01-JAN-81 03-SEP-01 2100 2
7 May May F 27-JUL-80 03-SEP-01 1990 3
8 Sadiah F 12-MAY-79 23-OCT-02 1450 3
9 Samuel M 25-DEC-77 16-DEC-02 1350 3

BR_Member table

MEMBER CONTACT
NAME ADDRESS EMAILADDRESS GENDER DATEJOIN BRANCHNO
ID NO
Chan Kim 1,Gold Street, kimkim@freemail.
1 61234561 F 31-DEC-01 1
Kim Singapore com.sg
Tan Mei 2,Silver Street,
2 61234562 F 11-NOV-01 1
Ling Singapore
3,Bronze Street, JLaw@freemail.
3 Jeremy Law 61234563 M 15-JUN-02 2
Singapore com.sg
4,Apple Lane, AhGek@freemail.
4 Lim Ah Gek 61234564 F 20-JUL-02 2
Singapore com.sg
5,Durian Lane, Siti@freemail.
5 Siti 61234565 F 30-SEP-02 3
Singapore com.sg
6,Mango Lane, Kumar@freemail.
6 Kumar 61234566 M 31-DEC-01 3
Singapore com.sg
7,Papaya Close,
7 Steven Fine 61234567 M 10-JAN-02 3
Singapore

1
BR_BookCategory table BR_Publisher table

BOOKCAT DESCRIPTION PUBLISHERID NAME


C Children 1 HarperTrophy
F Fiction 2 Puffin
NF Non-Fiction 3 Arrow Books
4 Doubleday
BR_Author table 5 Heinemann

AUTHORID NAME 6 Pan Books

1 E. B. White 7 Addison Wesley

2 Kenneth Grahame 8 McGraw-Hill

3 John Grisham
4 John Crichton
5 Catherine Lim
6 James Herriot

BR_Book table

ISBN TITLE YEARPUBLISH PUBLISHERID BOOKCAT


64410935 Charlottes Web 2001 1 C
64408671 The Trumpet of the Swan 2000 1 C
64410927 Stuart Little 2001 1 C
140366857 The Wind in the Willows 1995 2 C
99245027 The Testament 1999 3 F
99826704 The Firm 1991 3 F
385503822 The Summons 2002 4 F
99895102 Jurassic Park 1991 3 F
9971643359 The Best of Catherine Lim 1993 5 F
330250493 All Things Great and Small 1976 6 NF
330255800 All Things Bright and Beautiful 1978 6 NF
201708574 Database Systems 2002
72126949 SQL Server 200 Database Design 2001

2
BR_BookAuthor table BR_BookCopy table

ISBN AUTHORID ISBN COPYNO DATEIN RENTALRATE STATUS


64410935 1 01-JUN-01 9.5
64408671 1
64408671 1 10-DEC-00 8
64410927 1 64410927 1 01-JAN-01 9
140366857 1 15-MAR-99 6.5
64410935 1
99245027 1 20-JUL-99 5.5
99245027 3 99826704 1 02-JAN-98 4.5 Damaged
99826704 3 385503822 1 20-OCT-02 15.5
99895102 1 01-DEC-98 5.5 Damaged
99895102 4 9971643359 1 01-JUN-99 10.5
140366857 2 330250493 1 01-DEC-98 7
330255800 1 01-DEC-98 6
330250493 6 64410935 2 01-JUN-01 8.5
330255800 6 99245027 2 20-JUL-99 5
99826704 2 02-JAN-98 4
385503822 3 385503822 2 20-OCT-02 17
9971643359 5 99895102 2 01-DEC-98 5
9971643359 2 01-JUN-99 10
64410935 3 01-JUN-01 8.5
99245027 3 20-JUL-20 6.5
99826704 3 02-JAN-98 5.5
385503822 3 20-OCT-20 14.5

BR_Loan table

LOANNO DATEOUT DATEDUE DATERETURN RENTALRATE ISBN COPYNO MEMBERID


1 15-OCT-02 05-NOV-02 22-OCT-02 10 64410935 1 1
2 16-OCT-02 06-NOV-02 23-OCT-02 9 64410935 2 4
3 11-JAN-03 01-FEB-03 04-FEB-03 9 64410935 3 3
4 15-OCT-02 05-NOV-02 22-OCT-02 9 64408671 1 1
5 02-FEB-03 23-FEB-03 15-FEB-03 8.5 64408671 1 7
6 16-JAN-03 06-FEB-03 31-JAN-03 9.5 64410927 1 2
7 22-MAR-03 12-APR-03 30-MAR-03 9 64410927 1 5
8 04-APR-03 25-APR-03 18-APR-03 8.5 64410927 1 6
9 27-NOV-02 18-DEC-02 29-NOV-02 6.5 140366857 1 7
10 12-OCT-02 02-NOV-02 29-OCT-02 7 99245027 1 3
11 28-OCT-02 18-NOV-02 11-NOV-02 5.5 99245027 2 4
12 12-DEC-02 02-JAN-03 21-DEC-02 7 99245027 3 2
13 17-JAN-03 07-FEB-03 01-FEB-03 5.5 99826704 1 1
14 11-FEB-03 04-MAR-03 15-FEB-03 4.5 99826704 2 7
15 07-MAR-03 28-MAR-03 08-MAR-03 6 99826704 3 6
16 02-OCT-02 23-OCT-02 03-OCT-02 16 385503822 1 2
17 02-APR-03 23-APR-03 16-APR-03 15.5 385503822 3 5
18 22-JAN-03 12-FEB-03 6 99895102 1 5
19 20-APR-03 11-MAY-03 02-MAY-03 11 9971643359 1 1
20 20-DEC-02 10-JAN-03 14-JAN-03 10.5 9971643359 2 5
21 14-OCT-02 04-NOV-02 21-OCT-02 9.5 330250493 1 6
22 21-NOV-02 12-DEC-02 03-DEC-02 9 330250493 1 1
23 21-MAR-03 11-APR-03 29-MAR-03 8.5 330250493 1 2
24 11-OCT-02 01-NOV-02 28-OCT-02 8 330255800 1 3
25 21-OCT-02 11-NOV-02 13-NOV-02 7.5 330255800 1 1
26 11-DEC-02 01-JAN-03 20-DEC-02 7 330255800 1 5
27 02-FEB-03 23-FEB-03 6.5 330255800 1 7

You might also like