Questions for HW 5
1. You see an announcement for a job as a "Database Administrator" for a large corporation but are unclear about what this title means. Research this on the Web and obtain specific job requirements. (Must be at least a paragraph about this. Minimum 5-7 sentences.)
Database administrators must create ways to store, analyze, utilize, and organize data. A DBA develops computer databases based on user needs and migrate data from old systems to new systems. DBA’s ensure that business data is accurate, available and secure. The specific requirements for a DBA position include having a minimum of a bachelor’s degree in Computer Science and expert knowledge on SQL. SQL is the standard language for relational database management systems. For this position one must also be an expert with Microsoft SQL Server mirroring and replication.
…show more content…
Describe the three types of relationships in a relational database.
One-to-one relationships are between two entities in which an instance of one entity can be related to only one instance of a related entity. A row in a given table would have only one match in a row in another table. Therefore there can only be a one-to-one match.
A one-to-many relationship is the most common relationship and is between two entities in which an instance of one entity can be related to many instances of a related entity. For this relationship a row in table C can have many matches in table A, but a matching row in table A can have only one match in C. Most relational databases are constructed from this type of relationship.
A many-to-many relationship is between two entities in which an instance of one entity is related to many instances of another and one instance of the other can be related to many instances of the first entity. For example table A could have many pairs in table B. This relationship goes both ways with no constraints. Removing a many-to-many relationship, it will allow for a more accurate and consistent
Which of the following defines a relationship in which each occurrence of data in one entity
In social databases, a one-to-numerous relationship happens when a parent record in one table can possibly reference a few youngster records in another table. In a one-to-numerous relationship, the parent is not required to have youngster records; in this way, the one-to-numerous relationship permits zero tyke records, a solitary kid record or various kid records. The imperative thing is that the youngster can't have more than one parent record.
It is a database which shows the links and relationships between two sets of data/stored information in a document or mainly entities. This means e.g. if a computer system has to store a lot of data/information about people instead of repeating the same row of information which may include personal or unnecessary things, you will then be able to click on the main primary key data which then leads to the actual personal things. This is the relationship between the primary key and foreign key. Ians & Co will benefit with a relational database as it has many links to primary and secondary data. Ians & Co being a large company will have a lot of data which means it will be harder to maintain with a simple and old database.
A relational database is a database that consists of a collection of tables with columns showing entities, and rows showing data. This type of database uses a primary key and foreign key. The foreign key in another table will point to the primary key of a table, and this is how tables can relate to each other. This permits for one-to-one, one-to-many, and many-to-many relationship between the data. An advantage of relational databases includes the ease of adding or modifying new tables and entities without needing to change the structure of the database already in place. Relational database have many features, including indexing, setting data type, and setting validation tests, all these help to ensure data integrity.
Business Rules: In the entity-relationship data models, business rules must take into account all relationship models: one-to-many (1:M), one-to-one (1:1) and many-to-many (M:N). For a database on a school library, a restriction of having a student only allowed to borrow one book would need a 1:1 relationship.
For example, one employee only has one ID and one ID only for one employee. In many case, “One to One” relationship is for reduce the time to searching data.
One to one, one to many and many to many: These three relationship types. One to one is where one piece of data is exchanged with another one. One to many is where piece of data is exchanged with many pieces of data. Many to many is where lots of pieces of data is exchanged with lots of other pieces of data.
When it comes to the data model, there exists a relationship that has three different representations for the reason that database requires the relationship between the tables. It goes hand-in-hand with one another without the relationship the tables would have no purpose. The information cannot be repetitive in order for the each table to work and provide the specific database that is related to the information. In different ways the tables in the Huffman Trucking Fleet Truck database
The example discussed above on Customers table and Orders table is a one-to-many relationship. As each customer places multiple orders, each order only belongs to one customer. When creating a relationship between two tables, if only one of the related fields is unique, a one-to-many relationship is automatically set.
Firstly a relational database contains a set of tables which basically are linked collectively by the relationships between the tables. Also it is also known as reason such as a database is called relational database.
• An example in the other direction: a ternary relation Contracts relates entity sets Parts, Departments and Suppliers, and has descriptive attribute qty. No combination of binary relationships is an adequate substitute. (With no new entity sets!)
Verify that the field names shown are the common fields for the relationship. If a field name is incorrect, click on the field name and select the appropriate field from the list.
At this level the data model attempts to identify the highest- level relationship among the different entities.
Only one-to-many and one-to-one relationships can be directly represented in the hierarchical model. There are many different ways to transform this E-R diagram to a tree-structure diagram. All these diagrams, however, share the property that the underlying database tree (or trees) will have replicated records.