StudentShare
Contact Us
Sign In / Sign Up for FREE
Search
Go to advanced search...
Free

Accommodation Services for the Language Summer School - Essay Example

Cite this document
Summary
The paper "Accommodation Services for the Language Summer School" highlights that it is quite essential to state that the arrows show the functional dependencies. The single arrow with no point head determines all the attributes of the entire entity…
Download full paper File format: .doc, available for editing
GRAB THE BEST PAPER92.1% of users find it useful
Accommodation Services for the Language Summer School
Read Text Preview

Extract of sample "Accommodation Services for the Language Summer School"

DATABASE SYSTEMS WORK CASE STUDY: Accommodation services for the language summer school Primary analysis of the case study (Identifying Entities and their attributes): After a detail analysis of the entire case study, I derive at the following possible entities and their attributes: ENTITIES ATTRIBUTES STAFF Name, Address, Number, Position, Gender, Contact_Info STUDENTS Number, Address, Date_of_Birth, Gender, Residence, Status HALL Number, Address, Telephone, Room_Type ROOM Id, Number, Weekly_Rent INVOICE Student_Number, Room_Id, PaymentDue, Date_of_Payment, Amount, Method_of_Payment The above table of entities and their attributes follows from the analysis of the case study. These entities form the master entities and others will follow from the logical and conceptual relationships between these entities. Assumptions from the case study: I have made the following assumptions: 1. The students residence, as maintained by the office, includes either Renting a room or Flat I have decided to take an attribute in the student entity to maintain that. It takes the value as either 'Room' or 'Flat'. The attribute is named as Residence. 2. The status of the student as to they are currently 'allocated' or in 'waiting list' is determined by the attribute called Status. 3. The room type in the Hall entity takes two values 'single' and 'double' rooms. Identifying relationships between entities: 1. Relationship between STAFF and STUDENT is depicted below: 2. Relationship between STUDENT and HALL is depicted below: 3. Relationship between STUDENT and ROOM is depicted below: 4. Relationship between STUDENT, ROOM and INVOICE is depicted below: Constructing Conceptual model: Assumptions: 1. The rectangle depicts an entity and the cone shaped depicts a relationship type. 2. The conceptual model depicts all the associated relationships between the entities. The descriptions and related associations are as follows: a. The relationship type 'responsible for' is linking the student and the staff. b. The relationship type 'rents' is linking the student and the room. The special assumption taken in this particular relationship type is that it has an attribute called 'lease' which is an attribute to a relationship type. c. The relationship type 'has_details' binds the student, invoice and room entities. As the invoice entity has details of both the student and the room and also its own properties needs to be linked with all the three to depict the relation. d. The relationship 'reside' links student and hall entities. As students reside in the hall in a particular room. This conceptual model depicts all the entities and their relations; it gives the overall picture and understanding of the system to a novice. This can also be called a logical model as it does not take into consideration any DBMS in mind and shows the logical association of the system. Next we are constructing the logical system which has the cardinality ratios. A cardinality ratio of a binary relation is the maximum number of instances an entity can participate in a given relationship type. Logical model The logical model is as follows: The difference here is that the entities here are associated with their relationships with the cardinality ratios respectively. The cardinality ratios are derived as follows: 1. Between student and staff (M:N). a. 1 student is responsible to 1 staff b. Many (M) students are responsible to 1 staff. c. 1 staff takes responsibility of 1 student d. Many (M) staff takes responsibility of many students. 2. Between student and hall (N:1). a. 1 student resides in 1 hall. b. Many (M) students reside in 1 hall. c. 1 hall accommodates 1 student d. Many (M) halls do not accommodate 1 student. 3. Between student, hall and invoice (1:1:1). a. 1 invoice has details of 1 student and his hall. b. 1 invoice does not have details of more than 1 student and their halls. c. Many invoices do not have details of many students and different halls. 4. Between student and room (1:1). a. 1 student rents 1 hall. b. Many (M) students cannot rent 1 hall. c. 1 hall is rented by 1 student d. Many (M) halls are not rented by 1 student. Producing tables form the logical model Special note: The attribute named 'lease' to the relationship named 'rent' has been shifted to the rent table as the cardinality ratio is 1:1 so any attribute of the relationship type must be shifted on either side. The arrows show the functional dependencies. The single arrow with no point head determines all the attributes of the entire entity. In the table 'Responsible_For' which was previously a relationship between student and staff had a cardinality ratio of M:N. The relationship type will form a separate table with the same name having the primary keys of both the aligned tables. Normalization of tables 1. As the first normal form says: All the attributes must be atomic and not have multi valued values. a. Only the table 'Room' has an attribute called 'Room Type' which can have both 'single' and 'double' rooms in a particular hall. Thus it needs to be decomposed into two separate attributes namely 'Single' and 'Double'. b. I have also assumed that in a hall there could be more than 1 single room and double room. So the separated attribute will be able to distinguish how many single and double rooms are present in a particular hall. 2. The second normal form says: There should be no non-key attribute which should be partially dependent on a key attribute. a. Here the key attributes are those which determine the other attributes in a particular relation or a table. They uniquely identify the tuple in a given table. b. We see here that there is no non key attribute which is partially dependent on a key attribute or a set of attributes. So all the tables are in second normal form. 3. The third normal form says that there must not exist transitive dependency between attributes. It precisely means that if one attribute, say A1, determines another attribute, say A2, and if A2 again determines a third attribute A3, then it precisely means that A1 determines A3 which in maximum cases is not true. a. In our case study, there is no occurrence of such an attribute which has the feature of transitive dependency. Query the database using SQL: 1. At the Office front: a. The details of the students Who rented a room or a flat or waiting list candidates. SELECT ALL FROM STUDENTS AS S WHERE S.RESIDENCE LIKE 'ROOM' OR S.RESIDENCE LIKE 'FLAT' OR S.STATUS LIKE 'WAITING'; b. The details of the students and their respective staffs. SELECT S.NUMBER, ST.NUMBER FROM STUDENTS AS S, STAFF AS ST, RESPONSIBLE_FOR AS RF WHERE S.NUMBER=RF.NUMBER AND ST.NUMBER=RF.NUMBER; c. The details of student, staff and their accommodations. SELECT ALL FROM STUDENTS AS S, STAFF AS ST, ROOM AS R, HALL AS H, RESPONSIBLE_FOR AS RF WHERE S.NUMBER=RF.NUMBER AND ST.NUMBER=RF.NUMBER AND S.NUMBER=R.STUDENT_NUMBER AND ST.NUMBER=H.STAFF_NUMBER; d. The details of students and their accommodation whose payment is due and method of payment is 'cash'. SELECT ALL FROM STUDENTS AS S, ROOM AS R, INVOICE AS INV WHERE S.NUMBER=INV.STUDENT_NUMBER AND R.ID=INV.ROOM_ID AND INV.PAYDUE LIKE 'YES' AND INV.METHOD_OF_PAY LIKE 'CASH'; e. The details of students with maximum lease and date of payment is within the last 3 months. SELECT ALL FROM STUDENTS AS S, ROOM AS R, INVOICE AS INV WHERE S.NUMBER=INV.STUDENT_NUMBER AND R.ID=INV.ROOM_ID GROUP BY S.NUMBER HAVING R.LEASE=MAX (R.LEASE) AND MAX (SYSDATE - INV.DATE_OF_PAYMENT) > 90; f. The details of female students with their staff details with unpaid invoices and minimum lease. SELECT ALL FROM STUDENTS AS S, STAFF AS ST, RESPONSIBLE_FOR AS RF, INVOICE AS INV WHERE S.NUMBER=INV.STUDENT_NUMBER AND RF.STAFF_NUMBER AND S.NUMBER=RF.STUDENT_NUMBER AND S.GENDER LIKE 'FEMALE' AND INV.PAYMENTDUE LIKE 'YES' GROUP BY S.NUMBER HAVING MIN (R.LEASE)=R.LEASE; 2. At the Student front: a. Invoice details, Staff details and if payment due date has passed. SELECT ALL FROM STUDENTS AS S, STAFF AS ST, ROOM AS R, RESPONSIBLE_FOR AS RF, INVOICE AS INV WHERE S.NUMBER=RF.NUMBER AND ST.NUMBER=RF.NUMBER AND S.NUMBER=R.STUDENT_NUMBER AND INV.DATE_OF_PAYMENT < SYSDATE AND INV.PAYMENTDUE LIKE 'YES' GROUP BY S.NUMBER; b. Details of their staff and weekly rent in either flat or room. SELECT ST.NAME, ST.ADDRESS, R.RENT_WEEKLY FROM STUDENTS AS S, STAFF AS ST, ROOM AS R, RESPONSIBLE_FOR AS RF WHERE S.NUMBER=RF.NUMBER AND ST.NUMBER=RF.NUMBER AND S.NUMBER=R.STUDENT_NUMBER AND S.STUDENT_RESIDENCE IN ('FLAT','ROOM'); 3. At the Staff front: a. The details of the students and their respective rooms and halls. SELECT ALL FROM STUDENTS AS S, STAFF AS ST, ROOM AS R, RESPONSIBLE_FOR AS RF, HALL AS H WHERE S.NUMBER=RF.NUMBER AND ST.NUMBER=RF.NUMBER AND S.NUMBER=R.STUDENT_NUMBER AND S.STUDENT_RESIDENCE IN ('FLAT','ROOM') AND H.STUDENTNUMBER=S.STUDENT_NUMBER; b. The details of the students who stay in double rooms and have maximum lease. SELECT ALL FROM STUDENTS AS S, STAFF AS ST, ROOM AS R, RESPONSIBLE_FOR AS RF AND HALL AS H WHERE S.NUMBER=RF.NUMBER AND ST.NUMBER=RF.NUMBER AND S.NUMBER=R.STUDENT_NUMBER AND S.STUDENT_RESIDENCE WITH 'ROOM' AND H.ROOMTYPE LIKE 'DOUBLE' GROUP BY S.NUMBER HAVING MAX (R.LEASE) =R.LEASE; BRIEF REPORT: 1. The attribute 'lease' was a little tricky to plot in to an entity. I chose to place it in Room entity as lease quite sounds similar to room type and it is also associated with it. 2. The strengths of the system is that it covers almost all details of the students living in the school. 3. The limitations are that a. It does not include their food details and the amenities provided to them at the school. b. The staff may also have shift duties as one staff cannot be responsible all the day round. c. There are no separate accommodations for males and females. The system design can be in any way a designer desires to develop but must be logically sound to avoid redundancy of information and reduce anomalies of addition, deletion and modification of data. Bibliography Navathe Elmasri. Fundamentals of Database systems. Read More
Cite this document
  • APA
  • MLA
  • CHICAGO
(“DATABASE SYSTEMS COURSEWORK Essay Example | Topics and Well Written Essays - 1500 words”, n.d.)
DATABASE SYSTEMS COURSEWORK Essay Example | Topics and Well Written Essays - 1500 words. Retrieved from https://studentshare.org/miscellaneous/1520612-database-systems-coursework
(DATABASE SYSTEMS COURSEWORK Essay Example | Topics and Well Written Essays - 1500 Words)
DATABASE SYSTEMS COURSEWORK Essay Example | Topics and Well Written Essays - 1500 Words. https://studentshare.org/miscellaneous/1520612-database-systems-coursework.
“DATABASE SYSTEMS COURSEWORK Essay Example | Topics and Well Written Essays - 1500 Words”, n.d. https://studentshare.org/miscellaneous/1520612-database-systems-coursework.
  • Cited: 0 times

CHECK THESE SAMPLES OF Accommodation Services for the Language Summer School

A Purpose-Built Student Housing Facility

he London school of Commerce and IT (LSCIT) is a higher education institution in London offering undergraduate and post-graduate degrees in Business.... The purpose of this report is to provide a business proposal for a purpose-built student housing facility for the London school of Commerce in London's Southwark area.... International students will also feel comfortable in Southwark as, 43% of students in Southwark's schools speak English as a second language (Southwark Council, n....
32 Pages (8000 words) Dissertation

Hospitality as Social Relations

he focus of this dissertation is to investigate the social relations between these online strangers and how these online communities are similar or dissimilar from the general modes of travel and accommodation, and how generally accepted principles regarding travelling apply to the scenarios of the home-stay sector that these websites contribute to create.... The focus of this dissertation is to investigate the social relations between these online strangers and how these online communities are similar or dissimilar from the general modes of travel and accommodation, and how generally accepted principles regarding travelling apply to the scenarios of the home-stay sector that these websites contribute to create....
23 Pages (5750 words) Essay

The Challenges in Increasing Diversity in Schools Today

In the US, upon entering elementary school, large numbers of limited-English-proficient and bilingual students are placed in programs that assume relatively low levels of achievement and focus on remedial education (Independent Commission on Chapter 1, 1992; Stanford Working Group, 1993; U.... uch inequities in different children's expectations for school success may be a grave affront to equal opportunities that Americans highly value and take pride in.... Such efforts seek to ensure that children's first school experiences are positive in that they feel accepted for who they are regardless of their cultural background....
8 Pages (2000 words) Term Paper

Educational Services in Prince Edward Island

These establishments along with the instructions and training offer food and accommodation services to their students.... This paper "Educational services in Prince Edward Island" sums up the educational sector will improve if unemployment will decrease and population incomes will increase in the province.... The services sector is the one that is formed by the companies that generate their revenues by providing intangible services or products to the customers....
8 Pages (2000 words) Essay

Counseling Students with Learning Disabilities

This paper will examine the different types of learning disabilities that children are affected with, and how counseling can help them cope with it.... Additionally, the paper will present a list of professional qualities required in an effective counselor.... ... ... ... Learning disability leads to major functional impairment and recognizes the need for lifelong support and intervention....
11 Pages (2750 words) Term Paper

The Rental Apartment Agency Industry

In the paper 'The Rental Apartment Agency Industry' the author focuses on the company, which provides several services in Houston for those who come for healthcare, tourism, businesses and studying.... In addition to apartment rentals, we will be providing additional services, which will not be considered our main services, such as car or limo rentals, student admission, translations, and immigration attorneys.... Also, there is no single firm who can provide all of the many services that we are providing....
14 Pages (3500 words) Research Proposal

Sarah Scott: Administrative Assistant

Dynamic and methodical Administrative Assistant with more than 5 years of progressive experience.... Proven track record of developing scalable solutions to dramatically improve efficiency, productivity, and the quality of service.... .... ... ... Out-of-the-box thinker recognized for continuously meeting demanding time constraints and exceeding client expectations while working in fast-paced, high-pressure environments....
1 Pages (250 words) Resume/CV

English as a Second Language as an Adult Learning and Education

This essay 'English as a Second language as an Adult Learning and Education' investigates what tensions exist between the espoused purpose of adult education and the enacted practice in the area of English as a second language program (ESL course), and how are they negotiated.... Owing to the emergence of tensions between the espoused purposes of adult education and the enacted practice in the area of English as a second language program in Australia, I thought it was wise to put together a detailed report with the aim of looking at reasons causing the rise of these tensions and ways to permanently put to a stop the setbacks these tensions cause....
10 Pages (2500 words) Essay
sponsored ads
We use cookies to create the best experience for you. Keep on browsing if you are OK with that, or find out how to manage cookies.
Contact Us