473,396 Members | 1,933 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Database Question

34
Hi

I am doing a scenario for my compnay which is a video library, i have the following entities but need help with the database using MS Access 2003 as iam new to this piece of software:

The entities i have got are as follows

Video (Vcode, VTitle, Date Made, Director, Genre)
Copy (CopyNum, Vcode, Due Date)
Loan (LoanMemNum, CopyNum, Ldate)
Member (MemNum, MName, MAddress)
Reservation (VCode, resMemNum, Resdate, CollectDate
Feb 26 '07 #1
13 1804
Rabbit
12,516 Expert Mod 8TB
You forgot to mention what you needed help with.
Feb 26 '07 #2
thinboy
34
Hi,

I need help with my database, when i go to make the relationship in access using my entites in the previous post, i cannot get the relationship from loan to video to be a one to many, because access put it as many to one

Loan (LoanMemNum, CopyNum, Ldate)
Video (Vcode, VTitle, Date Made, Director, Genre)

Is this possible? Do i need to add anymore entities?

Any help on this matter would be appriciated
Feb 26 '07 #3
Rabbit
12,516 Expert Mod 8TB
Which one's the primary key and which one's the foreign key?
Feb 26 '07 #4
thinboy
34
Hi the primary key are underlined:

Video (Vcode, VTitle, Date Made, Director, Genre)
Loan (LoanMemNum, CopyNum, Ldate)

Thanks, Also would there be an easier solution to this as i have encountered some problems when put in a relationship in access
Feb 27 '07 #5
NeoPa
32,556 Expert Mod 16PB
The relationship should be One-Video to Many-Loan surely?

BTW you seem to have made a good stab at the table structure :)
Feb 27 '07 #6
Rabbit
12,516 Expert Mod 8TB
So VCode = LoanMemNum? If not then you need VCode in your Loan table.

And NeoPa's right, it should be one-to-many from Video to Loan.
Feb 27 '07 #7
thinboy
34
Hi so the relationship will be as follows

Member 1 : n Loan n : 1 Video 1 : n Copy

Member 1 : n Reservation n : 1 Video.

Is this correct as i was told to do it a different way as stated in my previous post, do i need to add anymore entites to my tables?

Thanks
Feb 27 '07 #8
NeoPa
32,556 Expert Mod 16PB
Nice way to display the relationships :)
I would say rather :
Expand|Select|Wrap|Line Numbers
  1. Member 1 : n Loan n : 1 Copy n : 1 Video
  2.  
  3. Member 1 : n Reservation n : 1 Copy n : 1 Video.
Can you confirm this is right for your situation?
Feb 27 '07 #9
thinboy
34
Hi,

I need a little help with functional and non functional requirements, can someone please help me

Thanks
Feb 27 '07 #10
NeoPa
32,556 Expert Mod 16PB
I can't and won't answer questions with such a broad scope.
Your best approach is to ask discrete questions on a particular issue. Smaller bites are much easier to handle and less daunting for the potential helper. A good idea is to respond to all posts in your thread too. You've left my question hanging, what response do you expect in those circumstances? It is after all, your own thread.
Feb 28 '07 #11
thinboy
34
Hi,

Thanks eveyone for all your help, i am current stuck i need to have a n: 1 relationship between Reservation and Video, the entities are as follows

Reservation (VCode, resMemNum, Resdate, CollectDate)
Video (Vcode, VTitle, Date Made, Director, Genre)

Here is what it says in access:

Data in the Reservation table violates referential integrity

Thanks
Feb 28 '07 #12
thinboy
34
Hi NeoPa

Ive used your example buT i cannot get the relationship between RESERVATION and COPY to be a n:1

Thanks
Feb 28 '07 #13
NeoPa
32,556 Expert Mod 16PB
See if this setup works for you.
Expand|Select|Wrap|Line Numbers
  1. Table Name=Member
  2. Field; Type; IndexInfo
  3. MemNum; Autonumber; PK
  4. MAddress; String
Expand|Select|Wrap|Line Numbers
  1. Table Name=Video
  2. Field; Type; IndexInfo
  3. Vcode; Autonumber; PK
  4. VTitle; String
  5. Date Made; Date/Time
  6. Director; String
  7. Genre; String
Expand|Select|Wrap|Line Numbers
  1. Table Name=Copy
  2. Field; Type; IndexInfo
  3. CopyNum; Autonumber; PK
  4. VCode; Numeric; FK
  5. Due Date; Date/Time     'Why in Copy Table???
Expand|Select|Wrap|Line Numbers
  1. Table Name=Loan
  2. Field; Type; IndexInfo
  3. LoanMemNum; Numeric; FK & Composite PK (CPK)
  4. CopyNum; Numeric; FK & CPK
  5. Ldate; Date/Time; CPK
Expand|Select|Wrap|Line Numbers
  1. Table Name=Reservation
  2. Field; Type; IndexInfo
  3. CopyNum; Numeric; FK & CPK
  4. resMemNum; Numeric; FK & CPK
  5. Resdate; Date/Time; CPK
  6. CollectDate; Date/Time
Can you please explain why [Due Date] is to be found in the [Copy] table?
Feb 28 '07 #14

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Lee | last post by:
Hi, I'm developing a socket program to connect to Informix database through the ODBC. In here i called my socket program as "tap" . My tap will listen for data from unix through port 1070. After...
7
by: Dave | last post by:
I have a system that basically stores a database within a database (I'm sure lots have you have done this before in some form or another). At the end of the day, I'm storing the actual data...
18
by: cjl | last post by:
Hey all: I know that it is silly in the age of Google to 'lose' something on the internet, but I recently checked out a project that had implemented a database with a subset of SQL in pure...
6
by: ronwer | last post by:
Hello, The title doesn't completely cover the question I have, but it's a bit more complicated problem we have. We are using a database, based on Acces, but developed by a third party...
8
by: Inspector | last post by:
I'm hoping I might be able to pick someone's brain out there. Our company is currently running an inhouse application in which data is being stored in SQL. Included in this data are thousands...
29
by: MP | last post by:
Greets, context: vb6/ado/.mdb/jet 4.0 (no access)/sql beginning learner, first database, planning stages (I think the underlying question here is whether to normalize or not to normalize this...
8
by: mesut | last post by:
Mybe it's a stupid question but : I'm starting to learn VB.NET. I have some basic skills. I'm from Mainframe world and I have same question to make my DATABASES (tables and relation) I would like...
35
by: Terry Jolly | last post by:
Web Solution Goal: Have a global database connection Why: (There will be 30+ tables, represented by 30+ classes) I only want to reference the database connection once. I put the connection...
2
by: clinttoris | last post by:
Hello, If someone could help me it would be appreciated as I am not having much luck. I'm struggling with my asp code and have some questions relating to asp and oracle database. First...
5
by: Slant | last post by:
Here's a question that most will have different answers to. I'm just dying to find a solution that seems halfway automated!! There really are two seperate issues which might be answered by the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.