Course: Database Systems Week 4: Discussion 1 Discussion 1 (Chapter 9): Discuss the correspondences between the ER model constructs and the relational model constructs. Show how each ER model construc
We can write your essays! Let our essay writing experts help you get that A in your next essay. Place your order today, and you will enjoy it. No plagiarism.
Order a Similar Paper Order a Different Paper
Course: Database Systems
Week 4: Discussion 1
Discussion 1 (Chapter 9): Discuss the correspondences between the ER model constructs and the relational model constructs. Show how each ER model construct can be mapped to the relational model, and discuss any alternative mappings?
Instructions: Your response to the initial question should be 350 words. Next respond to two postings provided by your classmates. The first post should be made by Wednesday 11:59 p.m., EST. I am looking for active engagement in the discussion. Please engage early and often. You are require to create your initial thread in order to view and respond to the threads posted by other students. There must be at least one APA formatted reference (and APA in-text citation) to support the thoughts in the post as needed. Do not use direct quotes, rather rephrase the author’s words and continue to use in-text citations.
Week 4: Discussion 2
Discussion 2 (Chapter 10): List the three main approaches to database programming. What are the advantages and disadvantages of each approach?
Instructions: Your response to the initial question should be 350 words. Next respond to two postings provided by your classmates. The first post should be made by Wednesday 11:59 p.m., EST. I am looking for active engagement in the discussion. Please engage early and often. You are require to create your initial thread in order to view and respond to the threads posted by other students. There must be at least one APA formatted reference (and APA in-text citation) to support the thoughts in the post as needed. Do not use direct quotes, rather rephrase the author’s words and continue to use in-text citations.
Course: Database Systems Week 4: Discussion 1 Discussion 1 (Chapter 9): Discuss the correspondences between the ER model constructs and the relational model constructs. Show how each ER model construc
Reply posts for the below: Post 1: Michael Week 4 Discussion 2 COLLAPSE Top of Form The three main database programming approaches outlined by Elmasri and Navathe (2017) are embedded SQL, the Library of classes and function calls, and designing a database programming language. One advantage of embedded SQL is that it features query text as the main program source code and is checked against the database schema and syntax errors at compile time (Elmasri & Navathe, 2017). The SQL code is directly embedded in the program, using languages like JAVA or C, and is initialized by the EXEC SQL command. Since the queries are embedded, there is a loss of flexibility as they must be re-compiled if there are any runtime errors (Elmasri & Navathe, 2017). For more complex programs, it might be a more viable solution to use the function call approach. In the function call approach, functions can be created to connect to the database, prepare a query, and execute queries and updates (Elmasri & Navathe, 2017). For example, in a Java program, the JDBC library can create function calls to the database to perform various actions. A drawback to using this approach is that more complex programming is required as the types and numbers of attributes in a query result may not be known in advance and cannot be checked when the program is compiled (Elmasri & Navathe, 2017). The programmer will have to run the program to see errors exist. The final approach is the database programming approach, where a new database programming language is created or used, like PL/SQL (Elmasri & Navathe, 2017). Stored procedures are executed at the server level and can perform a variety of actions. These can be very useful but require programmers to learn a new language and be vendor-specific (Elmasri & Navathe, 2017). One issue with these first two approaches that does not exist with the final approach is an impedance mismatch. This occurs when there is a difference between the database model and the programming language (Elmasri & Navathe, 2017). This could occur with the data types and column binding to access specific records. Reference Elmasri, R., & Navathe, S. B. (2017). Fundamentals of database systems (7th ed.). Pearson. Post 2: 2 days ago Andrea Discussion COLLAPSE Top of Form Elmasri & Navathe (2016) explained the advantages and disadvantages of the three main approaches for database programming: Embedding database commands in a general-purpose programming language: Since this approach uses the query text as part of the program source code itself, it makes it easy to check for syntax errors. It can also be validated against the database schema while the programming code is converted to the binary code (at compile time. It is considered a quite readable program due to the visibility in the source code. Among the disadvantages are the loss of flexibility when a query is changed at runtime. Every time there is a query change, the queries have to go through the entire recompilation process, which takes time. Additionally, even though the application’s programming can be easy for simple tasks when choosing program variables to hold the query results, it is suitable for complex applications. The function call approach would work better when the queries are unknown beforehand. Library of Classes and Function Calls Approach: One of the main advantages is flexibility when generating queries, which can be done at runtime if needed. However, this leads to one of the main disadvantages, which is dealing with more complex programming. Also, checking queries can’t be done at compile time. This means that all syntax checking and query validation will happen in runtime while preparing the query. Therefore, additional runtime errors might happen. Database Programming Language Approach (designing a brand-new language): A big advantage of this approach is that impedance mismatch won’t be a problem as all data types would be the same (programming language and database). But the main drawback is that it could be challenging for programmers since they would have to learn a new programming language, and it won’t be the easiest to work with. Reference: Elmasri, R., & Navathe, S. B. (2016). Fundamentals of database systems (7th ed.). Pearson. Bottom of Form Bottom of Form
Course: Database Systems Week 4: Discussion 1 Discussion 1 (Chapter 9): Discuss the correspondences between the ER model constructs and the relational model constructs. Show how each ER model construc
Reply posts for the below: Post 1: Michael RE: Anil_week 4 Discussion #1 COLLAPSE Top of Form The entity relationship model is essential to database design as it outlines the general structure of the schema. How do each of the constructs within the ER model relate to the relational model though? Elmasri and Navathe (2017) connect each part of the ER model to the relational model as such: Entity type – Entity-relationship 1:1 or 1:N relationship type – Foreign key M:N relationship type – relationship relation and two foreign keys N-ary relationship type – relationship relation and n foreign keys Simple attribute – attribute Composite attribute – set of simple component attributes Multivalued attribute – Relation and foreign key Value set – domain Key attribute – Primary (or secondary) key Each of the entity relationships and attributes are mapped to a specific attribute or key within the relational model. They also define a seven-step process for creating these relationships. Reference Elmasri, R., & Navathe, S. B. (2017). Fundamentals of database systems (7th ed.). Pearson. Post 2: Ricardo Week 4 Dis # 1 COLLAPSE Top of Form Hello, For this week’s first discussion, we are asked to examine the differences between the ER model and the relational model. At first glance, the major differences are distinct. According to Taylor, the ER model specifically relates to entities and the relationships between the entities (Taylor, 2019). In contrast, the relational model deals with the tables, data, and relationships between the data. When we examine the ER model, the entities are clear, the relationships are highlighted, and the data attributes are detailed. When looking at the relational model, the structure of the tables, constraints for the columns, and data types are highlighted. Taking a closer look at the two models, the ER diagram allows visual representation of entities and simply describes the high-level relationships between the entities. Research shows that the ER model is easier understood and gives a quick glance at the structure (Taylor, 2019). In contrast, the relational model is more difficult to determine the relationships between the tables in the database (Taylor, 2019). Moreover, research shows that the ER model shows data as an entity set, a relationship set, and attributes. The relational model describes data within the tables as domain, attributes, and tuples. It is important to understand that the ER model represents cardinality whereas the relational model does not take this constraint into consideration. If we were to map the ER model to the relational model, each strong entity would be represented as a new table. Additionally, a tuple can be mapped as an entity instance in the database. In relation to the weak entity, the use of the foreign key is defined, and each corresponding attribute is made unique. Regards, Ricardo References Taylor, A. (2019). Converting an E-R model into a relational model. Introducing SQL and Relational Databases. https://doi.org/10.1007/978-1-4842-3841-7_13 Bottom of Form Bottom of Form

Everyone needs a little help with academic work from time to time. Hire the best essay writing professionals working for us today!
Get a 15% discount for your first order
Order a Similar Paper Order a Different Paper