This document contains a set of short and long questions related to database management systems. Some key topics covered include the entity-relationship model, relational data model, normalization, transaction processing, concurrency control, and database recovery. The questions range from definitions and short explanations to examples and multi-step problems involving conceptual and practical database concepts.
Description of all types of Loaders from System programming subjects.
eg. Compile-Go Loader
General Loader
Absolute Loader
Relocating Loader
Practical Relocating Loader
Linking Loader
Linker Vs. Loader
general relocatable loader
Introduction to the Structured Query Language SQLHarmony Kwawu
Our world depends on data in order to thrive. There are many different methods for storing data but the idea of relational database technology has proved the most advantageous. At the heart of all major relational database approach is the SQL, standing for Structured Query Language. SQL is based on set theory or relational principles.
In the context of this assignment on Redis, relational data are
inserted into a redis database while sql queries are properly
edited and transformed in order to retrieve information from the
redis database.
Third AssignmentDescribe in 100 – 200 words an application with .docxrandymartin91030
Third Assignment
Describe in 100 – 200 words an application with which you are familiar. This should be an application with which other students and the course instructor are likely to be familiar. An example would be Microsoft Word. Then, select one of the architectural design styles given in the presentation on Architectural Design. Explain why this style is appropriate for the application you described. Then apply this style to the application and explain the result in enough detail that your fellow students are likely to understand.
Organization of your submission
Third Assignment
Your name
Submission Date
Application Description
Style you have selected
Why this style is appropriate for this application
The application’s architecture using this style
Explanation of this architecture (show how some common tasks for this application might be performed using this architecture)
Grading Rubric
Criterion
Points
Application description is well-organized
5
Style choice is one of the styles described
2
Style choice is effectively justified
8
Presented architecture uses the selected style
3
Presented architecture is complete
4
Architecture is described clearly
8
Chapter 7:
Design: Architecture and Methodology
1
Design Topics Covered
Architectural vs. detailed design
“Common” architectural styles, tactics, and reference architectures
Basic techniques for detailed design
Basic issues with user-interface design
2
Design
Starts mostly from/with requirements (evolving mostly from functionalities and other non-functional characteristics).
How is the software solution going to be structured?
What are the main components—(functional comp)?
Often directly from requirements’ functionalities
(use cases).
How are these components related?
Possibly re-organize the components (composition/decomposition).
Two main levels of design:
Architectural (high level)
Detailed design
How should we depict design—notation/language?
3
Relationship between Architecture and Design
Detailed Design
Comes from
Requirements &
Architecture
4
Software Architecture
Structure(s) of the solution, comprising:
Major software elements
Their externally visible properties
Relationships among elements
Every software system has an architecture.
May have multiple structures!
Multiple ways of organizing elements, depending on the perspective
External properties of components (and modules)
Component (module) interfaces
Component (module) interactions, rather than internals of components and modules
5
Views and Viewpoints
View – representation of a system structure
4+1 views (by Krutchen)
Logical (OO decomposition – key abstractions)
Process (run-time, concurrency/distribution of functions)
Subsystem decomposition
Physical architecture
+1: use cases
Other classification (Bass, Clements, Kazman)
Module
Run-time
Allocation (mapping to development environment)
Different views for different people
6
Architectural Styles/Patterns
Pipes a.
Redis project : Relational Databases to Key-Value systemsLamprini Koutsokera
Avaliable at: https://github.com/dbsmasters/bdsmasters
The current project is implemented in the context of the course "Big Data Management Systems" taught by Prof. Chatziantoniou in the Department of Management Science and Technology (AUEB). The aim of the project is to familiarize the students with big data management systems such as Hadoop, Redis, MongoDB and Azure Stream Analytics.
Database concepts and Archeticture Ch2 with in class ActivitiesZainab Almugbel
This is the slides of chapter 2 of the book Ramez Elmasri and Shamkant Navathe, "Fundamentals of Database Systems" 6th Edition, 2010
I did not include the activities in the slides. I printed them out in separate papers. Then, I asked students: who liked to participate in activity 1 (the interview) in the class. I selected 2 students for the first activity (one was the interviewer and another was the guest). I did the same for the other activities.
Welcome to WIPAC Monthly the magazine brought to you by the LinkedIn Group Water Industry Process Automation & Control.
In this month's edition, along with this month's industry news to celebrate the 13 years since the group was created we have articles including
A case study of the used of Advanced Process Control at the Wastewater Treatment works at Lleida in Spain
A look back on an article on smart wastewater networks in order to see how the industry has measured up in the interim around the adoption of Digital Transformation in the Water Industry.
Saudi Arabia stands as a titan in the global energy landscape, renowned for its abundant oil and gas resources. It's the largest exporter of petroleum and holds some of the world's most significant reserves. Let's delve into the top 10 oil and gas projects shaping Saudi Arabia's energy future in 2024.
Cosmetic shop management system project report.pdfKamal Acharya
Buying new cosmetic products is difficult. It can even be scary for those who have sensitive skin and are prone to skin trouble. The information needed to alleviate this problem is on the back of each product, but it's thought to interpret those ingredient lists unless you have a background in chemistry.
Instead of buying and hoping for the best, we can use data science to help us predict which products may be good fits for us. It includes various function programs to do the above mentioned tasks.
Data file handling has been effectively used in the program.
The automated cosmetic shop management system should deal with the automation of general workflow and administration process of the shop. The main processes of the system focus on customer's request where the system is able to search the most appropriate products and deliver it to the customers. It should help the employees to quickly identify the list of cosmetic product that have reached the minimum quantity and also keep a track of expired date for each cosmetic product. It should help the employees to find the rack number in which the product is placed.It is also Faster and more efficient way.
Water scarcity is the lack of fresh water resources to meet the standard water demand. There are two type of water scarcity. One is physical. The other is economic water scarcity.
Explore the innovative world of trenchless pipe repair with our comprehensive guide, "The Benefits and Techniques of Trenchless Pipe Repair." This document delves into the modern methods of repairing underground pipes without the need for extensive excavation, highlighting the numerous advantages and the latest techniques used in the industry.
Learn about the cost savings, reduced environmental impact, and minimal disruption associated with trenchless technology. Discover detailed explanations of popular techniques such as pipe bursting, cured-in-place pipe (CIPP) lining, and directional drilling. Understand how these methods can be applied to various types of infrastructure, from residential plumbing to large-scale municipal systems.
Ideal for homeowners, contractors, engineers, and anyone interested in modern plumbing solutions, this guide provides valuable insights into why trenchless pipe repair is becoming the preferred choice for pipe rehabilitation. Stay informed about the latest advancements and best practices in the field.
1. Branch: MECH1 Sub: DBMS Semester: 3rd
PREPARED BY: ASST.PRFO.SANTOSH KUMAR RATH
Short type Question: (With chapter)
1. What is the difference between a primary key and a candidate key? [Introduction to database
system]
2. Mention the various categories of Data Model. [ Data Model]
3. Define: Entity Type, Entity Set and Value Set. [ER model]
4. What is the difference between multi valued and derived attributes? [ ER model]
5. Differentiate between procedural and non procedural language with example. [Query language]
6. What is generalization? How it differs from specialization? [ER model]
7. Draw the ER diagram for the following entity sets.
Movies (Title, year, length, film type)
And Stars(name, address) [ER model]
8. What is isolation and concurrent access in DBMS?
9. What do you mean by schema and instances?
10. What is the difference between physical data independence and logical data independence?
11. Differentiate between foreign Key and references. [ER model]
12. Find the tuple calculus representation for the following SQL query :
Select R1.A, R2.B from R1, R2 whereR1.b=R2.a;[Query languages]
13. What is the need of DBMS? [Introduction to database system]
14. What do you mean by data integrity? [Introduction to database system]
15. What is ER model? [ER model]
16. What do you mean by weak entity set? [ ER model]
17. What are the different aggregate functions in SQL? [Query languages]
18. Define query language. [Query Languages]
19. What is the job of DBA? [Database languages]
20. What are the different levels of data abstraction? How those are linked with data dependence?
[Introduction to database system]
21. Define integrity rules and constraints.[ ER model]
22. Give an example of a weak entity set and explain why it is weak. [ER model]
23. What are the differences between Relational algebra and relational calculus? [ Database languages]
24. Write down two DML statements for database recovery and explain it.[Database languages]
25. Let R=(A,B,C,D) and functional dependencies
(1) A->C, (2) AB->D. What is the closure of {A,B} ? [ Database design]
26. What do you mean by multi-valued dependency? [ Database design]
27. Define and differentiate between Natural Join and Inner Join. [ Database design]
28. Consider a multilevel index with fan-out=4 used to index 25 records, draw the structure. (1) A->C,
(2) AB->D. What is the closure of {A, B}? [ Database design]
29. For a relation R(A,B,C,D) with the dependency among numeric field values: 6= 2A + B and 9 = 2E.
Draw the E-R diagram. [ Database design]
30. What is a query tree? Draw the query tree for the following SQL query: Select R1 .A, R2.B from R1,
R2 where R1. b=R2.a; [ Query processing]
31. For, the following set of dependencies :
2. Branch: MECH1 Sub: DBMS Semester: 3rd
PREPARED BY: ASST.PRFO.SANTOSH KUMAR RATH
{A -> BC, B-> D,C -> DE, BC ->F} Find primary key of the relation. [ Database design]
32. What do you mean by RAID? [ Database design]
33. What is fully functional dependency? Give an example. [ Database design]
34. What is multivalued dependency? [ Database design]
35. What are the two techniques to prevent deadlock? [Concurrency control]
36. What is meant by Concurrency? [Concurrency control]
37. What do you mean by atomicity? Explain with example. [Transaction processing]
38. What is meant by two phase commit protocol? [Concurrency control]
39. Explain one of the pessimistic concurrency control scheme with example. [Concurrency control]
40. What is the difference between REDO and UNDO operation? [Database recovery]
41. What is mean by concurrency? [Concurrency control]
42. What do you mean by serializability in transaction processing? [Concurrency control]
43. What do you mean by ACID properties of a transaction? [Transaction processing]
44. For the following operations:
T1 : read (x) ;
x=x+10;
write(x);
T2: read(x);
read(x);
For simultaneous execution Which problem can happen? [Transaction processing]
45. What is a timestamp? If TS (Ti)>TS (Tj)then which transaction is younger? Justify. Consider TS (Ti)
is the timestamp of transaction Ti. [Transaction processing]
46. What is serial schedule? [Transaction processing]
47. What is transaction atomicity? [Transaction processing]
48. What is two phase locking? [Concurrency control]
49. What is canonical cover? Explain with example.
3. Branch: MECH1 Sub: DBMS Semester: 3rd
PREPARED BY: ASST.PRFO.SANTOSH KUMAR RATH
Long Questions:
1. Define entity, attribute and relationships as used in relational databases. Describe purpose of E-R
Model. Illustrate your answer with an example. [ER model]
2. What are the major components of the relational model? What is simple relational database ?What are
two models in which you can use SQL ? [Data model]
3. What is an object-oriented database? What are its advantages compared „to relational database?
Explain some applications where an object-oriented database may be useful.
[Introduction to database system]
4. Consider the following tables :
A B C
3 7 9
8 6 5
Show the semantics and the output of the following query :
SELECT * FROM S, R WHERE S.A = R.A AND S.B = R.G ; [Database languages]
5. List out the fundamental operators and additional operators in relational algebra.
[Relational algebra]
6. Explain the two conditions needed for the set difference operation (union operation) to be valid.
[Relational algebra]
7. List at least four advantages of using a database management system over a traditional file
management system. Are there any disadvantages of DBMS?[Introduction to database system]
8. What is abstraction? Is it necessary for database system? Explain how database architecture satisfies
abstraction at various levels .[Introduction to database system]
9. Draw the ER diagram for the following relations.
Courses (Number, Room). Is it a weak entity set.
Depts (Name, BOD)
Lab-courses(computer alocation)
Theory-courses (name, faculty_ name) [ER model]
A F G
5 8 1
8 2 6
4. Branch: MECH1 Sub: DBMS Semester: 3rd
PREPARED BY: ASST.PRFO.SANTOSH KUMAR RATH
10. Consider the set of relations :
Student(name, roll,mark)
Score(roll,grade)
Details(name,address)
For the following query:
"Find name & address of students scoring grade 'A'," Represent it in relational algebra, tuple calculus,
domain calculus, QBE and SQL. [Query languages] eps to
11. What is a constraint? Describe its types with examples. [ER model]
12. A person can have many cars. A particular brand of car can have many owners. Draw the ER diagram
and convert it to Relational model. [ER model]
13. Draw a network model for the above problem in question 2(a) and explain.[Datamodel]
14. Describe the database architecture and explain the role of different users with respect to that
architecture. [Introduction to database system]
15. Consider the following relations:
EMPLOYEE(empno, name, office, age)
BOOKS(isbn, title, author, publisher)
LOAN(empno, isbn, date)
Write the following quries in relational algebra:
i. Find the name of the employees who have borrowed more than 5
books published by pearson.
ii. Find the name of employees who have borrowed all books published
by pearson
[Database languages]
16. What is database? Explain DBMS system architecture. [Introduction to database system]
17. Draw an ER diagram for banking system. [ER model]
18. Let the following relation schemas be given:
R=(A, B, C)
S=(D, E, F)
Let relations r(R) and s(S) be given. Give an expression in SQL that is equivalent to each of the
following queries:
i. πA(r)
ii. r * s [Query Languages]
5. Branch: MECH1 Sub: DBMS Semester: 3rd
PREPARED BY: ASST.PRFO.SANTOSH KUMAR RATH
19. Differentiate between the following terms:
i. Relational and object oriented data models
iii. Data definitions and Data manipulation languages [ Introduction to database system]
20. Write short notes on the following:
A. Network Model
B. RAID
C. 5NF
D. Data warehousing
E. Data mining
F. OLAP
G. OLTP
H. Dependency preservation
21. What is normalization of relation? What is a key attribute in a relation? What is the difference
between 1st Normal Form, 2nd normal form and 3rd normal form? [Database design]
22. State Armstrong‟s axioms. Show that Armstrong‟s axioms are complete. [Query processing]
23. Explain the difference between inner join and outer join. What are the restrictions on using outer join?
Give examples to support your answer. [Query processing]
24. What does the term redundancy mean? Discuss the implications of redundancy in a relational
database. [Database design]
25. Define (i) Primary key, and (ii) Foreign key, Suppose relation R(A,B,C,D,E) has functional
dependencies:
{AB ->C , D ->A, AE ->B, CD -> E, BE ->D}
Find all the candidate keys of R. [Database design]
26. Suppose we have the following relation with given data as:
Roll_no Student_name Subject_code Subject_name Marks
6. Branch: MECH1 Sub: DBMS Semester: 3rd
PREPARED BY: ASST.PRFO.SANTOSH KUMAR RATH
101 Aasish S01 English 80
101 Aasish S02 Physics 56
101 Aasish S03 Chemistry 63
102 Sushmita S01 English 90
102 Sushmita S02 Physics 85
102 Sushmita S03 Chemistry 91
To avoid redundancy in the first proposal we have decomposed the relation in to the following relations.
Subject (Roll_no, student_name)
And subject(subject_code, subject_name, marks))
In the second proposal it is decomposed in to the following relations.
Student(Roll_no, Student_name)
Result(Roll_no,subject_code, marks)
Subject(Subject_code, Subject_name)
State whether the decompsition are lossless or lossy. [Database design]
27. What is normalization? Is it necessary for DBMS? Expalin 4NF and 5NF with example. [Database
design]
28. Consider the three relations given below.
Order(order_no, order_date, customer_no )
Order_item(Order_no, item_no, quantity, bill_amount)
Item (item_no, item_name, unit_price) State whether the following relations are in 3NF or not if not
then what steps you should follow to bring those in to 3NF? [5][Database design]
What is query optimization? Write the Heuristic optimization algorithm and solve the query given
below:
Find the names of employees work on project name “NASA” and born after 1956.
Project (project name, Project number, Dept)
7. Branch: MECH1 Sub: DBMS Semester: 3rd
PREPARED BY: ASST.PRFO.SANTOSH KUMAR RATH
Employee (Emptied, P_number, DOB, name)
Work on (P_no, Emp_id) [Database design]
29. Let us consider a relation with attributes A, B, C, D, E and F. Suppose that this relation has the FD
AB->, BC->AD, D->E and CF->B . What Is the closure of {A,B} that is {AB}+
[Database design]
30. Consider the following set of data items :
A B C D
A1 1 X1 D1
A2 2 X2 D2
A3 3 X3 D3
A3 3 X3 D3
Represent it in 3NF [Database design]
31. What is the difference between 4NFand BCNF? Describe with examples. [Database design]
32. Write short notes on multivalued dependencies. [Database design]
33. Explain Armstrong‟s axioms with examples. [Database design]
40. What is normalization? Why it is required? Explain the Boyce-Codd normal form with an example.
[Database design]
42. Define transaction. Explain different states of a transaction. Differentiate between chained transaction
and nested transaction. Discuss their advantages and disadvantages. [Data mining]
43. What do you mean by concurrent operations? List two disadvantages of it. Discuss the solutions for
the problem occurs due to concurrency. [Concurrency control]
44. Explain the ACID properties associated with database transaction s. What is the lost update problem?
[Transaction processing]
45. What is collision? Discuss the various collision resolution techniques. [Database recovery]
46. What do you mean by Locking? Explain the Two phase locking with an example.
[Concurrency control]
8. Branch: MECH1 Sub: DBMS Semester: 3rd
PREPARED BY: ASST.PRFO.SANTOSH KUMAR RATH
47. Give an account of various types of database failure and methods to recover data. Explain with
examples. [Database recovery]
48. Describe various locks under concurrency control.[Concurrency control]
49. Define transaction. Explain ACID properties with example. [Transaction processing]
50. What do you mean by a transaction? How can you implement atomicity in transactions? Explain.
[Transaction processing]
51. Describe the concept of serializability with suitable example. [Transaction processing]
52. State the types of database failure and explain the corresponding database recovery technique.
[Database recovery]