[Show all top banners]

junkynfunky
Replies to this thread:

More by junkynfunky
What people are reading
Subscribers
:: Subscribe
Back to: Kurakani General Refresh page to view new replies
 IT Smart's Peoples Help in Creating ER Diagram...
[VIEWED 6683 TIMES]
SAVE! for ease of future access.
Posted on 04-02-13 9:41 PM     [Snapshot: 37]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

 Haha looks like someone is posting their homework in sajha. I would have done it for you but I choose not to. ER diagram is the basics of understanding DBMS. If you don't understand ER, you will basically do not understand the logical model or the physical model, schema and anything that follows after it. At least if you know how to draw ER diagram, you can generate all other models using power-designer or othe automated software. So, pour in some efforts now and do your homework. Believe me you wil thank me later

Just to give you a hint.. Separate the main entities and their attributes  from the requirement and go from there.

 
Posted on 04-02-13 9:45 PM     [Snapshot: 52]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

nice username!! ^^
 
Posted on 04-03-13 2:31 AM     [Snapshot: 181]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Thanks!. Actually, that is what I wanted to confirm with the experts.I just want to know how many entities can I make out of it . I can figure out the attributes myself. But figuring out the entities, relations and also one to one and many to many relationships are some difficulties I am facing. Its not that I am not trying and letting others do it. I am just asking for help if I can get any to figure out different entities in this case and how to show the relations between them.
Thanks!
Last edited: 03-Apr-13 02:32 AM
Last edited: 03-Apr-13 02:33 AM

 
Posted on 04-03-13 9:35 AM     [Snapshot: 264]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

If i remember this still correctly from my college days...
I think our professor told us the easy rule -
"Noun" are entities and 'verbs' and 'adverbs' are attributes.....

May be I m wrong, but this might be true in most cases...
 
Posted on 04-03-13 11:40 AM     [Snapshot: 332]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

 Stupida is right
 The general rule of thumb is nouns are entities and verbs/adverbs are attributes. There may be some exceptions to this rule according to your requirement. After you create boxes with entity as the title and their attributes( right below it),  the relationship and cardinality should be pretty easy. Cardinality is the maximum and minimum constraint you put on the relationship. The main point is to consider the ramifications of those cardinalities.
                              Lets say you have a professor entity on left side and the students entity on the right side. So when you do cardinality, you place yourself on the professor box and look towards student, then ask how many students can a professor teach in a class? If the business rule says, there has to be minimum 10 students to offfer a class and max 32 students per class, the cardinality is (10,32).
                           Then you place yourself in the student box and look toward professor then ask how many professors teach a class of students. If your answer is 1, then the cardinality is 1. The ramification is when you offer a class, it must have a professor. DBMS does not let you leave the professor field null.
                              Lets say there is another entity called course. A student may be enrolled in one or more classes. Look at the verb may be. This means a student can take zero or more courses. It you put the (1,n) as the cardinality here, it means each student must have taken a class which creates some problem later. So the cardinality should be (0,n). 
                          Hope this clears it for you.
 
Posted on 04-03-13 1:51 PM     [Snapshot: 396]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Small hint: Entities can be Train, Employee, Station, Line(lineId, linename, trainstartlocation, endlocation, distance, trainid).
 
Posted on 04-04-13 6:41 AM     [Snapshot: 523]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Thank you so much for taking time to explain things...If you can help me telling all the entities and how to connect between them in this particular example..it will be helpful...
Thanks!

 


Please Log in! to be able to reply! If you don't have a login, please register here.

YOU CAN ALSO



IN ORDER TO POST!




Within last 200 days
Recommended Popular Threads Controvertial Threads
ChatSansar.com Naya Nepal Chat
TPS Re-registration case still pending ..
Toilet paper or water?
Anybody gotten the TPS EAD extension alert notice (i797) thing? online or via post?
ढ्याउ गर्दा दसैँको खसी गनाउच
Sajha Poll: Who is your favorite Nepali actress?
Problems of Nepalese students in US
TPS EAD auto extended to June 2025 or just TPS?
whats wrong living with your parents ?
Mamta kafle bhatt is still missing
Ajay Kumar Dev sentenced to 378 yrs
Why Americans reverse park?
Now Trump is a convicted criminal .
TPS advance parole Travel document i-131, Class of Admission ?
Tourist Visa - Seeking Suggestions and Guidance
Nepali Passport Renewal
Biden said he will issue new Employment visa for someone with college degree and job offers
To Sajha admin
TPS Renewal Reregistration
मैले नबुझेका केहि गीत का lyrics हरु
NOTE: The opinions here represent the opinions of the individual posters, and not of Sajha.com. It is not possible for sajha.com to monitor all the postings, since sajha.com merely seeks to provide a cyber location for discussing ideas and concerns related to Nepal and the Nepalis. Please send an email to admin@sajha.com using a valid email address if you want any posting to be considered for deletion. Your request will be handled on a one to one basis. Sajha.com is a service please don't abuse it. - Thanks.

Sajha.com Privacy Policy

Like us in Facebook!

↑ Back to Top
free counters