q.bank Solve of Programming
q.bank Solve of Programming
1.What are the Primary Key and Foreign Key in RDBMS? Explain them with a real-world example. (28th batch mid)
Ans: In a Relational Database Management System (RDBMS), the concepts of Primary Key and Foreign Key are
essential for maintaining data integrity and establishing relationships between tables.
1. Primary Key
A Primary Key is a column (or a set of columns) in a table that uniquely identifies each record (row). It ensures that
there are no duplicate or NULL values in the column.
Characteristics of a Primary Key:
• Uniquely identifies each record.
• Cannot contain NULL values.
• There can be only one primary key per table.
Example:
Consider a Students table:
Student_ID (PK) Name Age
101 Alice 20
102 Bob 21
103 Charlie 22
Here, Student_ID is the Primary Key, as it uniquely identifies each student.
2. Foreign Key
A Foreign Key is a column (or set of columns) in one table that establishes a relationship with the Primary Key of
another table. It is used to maintain referential integrity between two tables.
Characteristics of a Foreign Key:
• Establishes a relationship between two tables.
• Can have duplicate values.
• Can contain NULL values (if the relationship allows).
Example:
Consider another table Course_Enrollments, where students enroll in courses:
Enrollment_ID Student_ID (FK) Course_Name
1 101 Math
2 102 Science
3 103 English
4 101 Science
Here, Student_ID in the Course_Enrollments table is a Foreign Key, as it refers to Student_ID in the Students
table. This ensures that only valid student IDs from the Students table can be inserted into the Course_Enrollments
table.
Real-World Example
Imagine a Library Management System:
• Books Table: Has a Primary Key (Book_ID).
• Borrowed_Books Table: Has a Foreign Key (Book_ID) that references the Primary Key in the Books
Table.
1. List the three basic operations of RDBMS. Briefly explain these operations with example.
Ans: Three Basic Operations of RDBMS
A Relational Database Management System (RDBMS) provides several operations to manage and
manipulate data. The three basic operations are:
1. INSERT Operation
The INSERT operation is used to add new records (rows) into a table.
Example:
Sql cord
INSERT INTO Employees (Employee_ID, Name, Department, Salary)
VALUES (103, 'Charlie', 'Finance', 55000);
After executing this query, the table will be updated with the new record.
2. UPDATE Operation
Example:Suppose Bob from the IT department gets a salary increase. We can update his salary as follows:
Sql code
UPDATE Employees
SET Salary = 65000
WHERE Employee_ID = 102;
3.DELETE Operation
Sql code
DELETE FROM Employees
WHERE Employee_ID = 101;
Conclusion
These three basic operations (INSERT, UPDATE, DELETE) help manage data efficiently in an RDBMS.
They ensure that records can be added, modified, and removed as needed.
3.Why Normalization is important in designing a database? Justify your answer with appropriate example.
Ans: Normalization is a process in database design that organizes data to reduce redundancy and improve
data integrity. It involves dividing large tables into smaller ones and establishing relationships using
Primary Keys and Foreign Keys.
Importance of Normalization
Problems:
Applying Normalization
First Normal Form (1NF) – Remove Multivalued Attributes
Break down the table so that each attribute has atomic values.
A table is in 2NF if it is in 1NF and all non-key attributes are fully dependent on the Primary Key.
Students Table
Student_ID Name
101 Alice
102 Bob
Courses Table
Student_ID Course_ID
101 C1
101 C2
102 C3
Conclusion
Normalization ensures that the database is efficient, scalable, and free from anomalies. It improves data
accuracy, reduces storage costs, and enhances performance in large systems.
4. Define and describe Entity- Relationship Diagram and explain its role in database design.
Ans: An Entity-Relationship Diagram (ERD) is a visual representation of a database that illustrates how
entities (objects) relate to each other. It helps in designing a structured database by showing relationships
between different components such as entities, attributes, and relationships.
Components of ERD
ERD Representation:
An ERD is a crucial tool in database design that provides a clear, structured blueprint of how entities
interact. It helps in better planning, reducing redundancy, and improving efficiency.
5. Write down the appropriate SQL commands for the following scenarios:
a) Create a table called emp_ info that has the attributes : emp_id, emp_name, designation, doj, salary, address
The following CREATE TABLE statement creates a table named emp_info with the required attributes:
Sql
emp_name VARCHAR(50),
designation VARCHAR(50),
doj DATE,
salary DECIMAL(10,2),
address VARCHAR(100)
);
b)Find out the attributes : emp_id, designation, salary, address where salary is less than 100000 or address is Khulna
Ans: The SELECT query retrieves emp_id, designation, salary, and address for employees who have a
salary less than 100000 or live in Khulna.
Sql code
SELECT emp_id, designation, salary, address
FROM emp_info
WHERE salary < 100000 OR address = 'Khulna';
c)Find out the attributes : emp_name, designation, salary, address where emp_name will be in ascending order.
Ans: The SELECT query retrieves emp_name, designation, salary, and address, sorting the results in
ascending order by emp_name:
Sql code
SELECT emp_name, designation, salary, address
FROM emp_info
ORDER BY emp_name ASC;
• ORDER BY emp_name ASC ensures that names are sorted alphabetically (ascending order).
1.What are the data types are used in Python programming? Show usage in a program which is coded by Python.
Ans: Python has several built-in data types used for different types of data storage and operations. Below
are the main data types:
1. Numeric Types
2. Sequence Types
3. Set Types
4. Mapping Type
5. Boolean Type
The Break-Even Point (BEP) is the point at which total revenue equals total cost, meaning no profit or
loss.
Where:
• Fixed Cost (FC) → Costs that do not change (e.g., rent, salaries).
• Variable Cost per Unit (VC) → Cost that changes per unit (e.g., materials, labor).
• Selling Price per Unit (SP) → Price at which each unit is sold.
Example Run:
Enter Fixed Cost: 50000
Enter Variable Cost per Unit: 10
Enter Selling Price per Unit: 20
Break-Even Point: 5000.00 units
Question No. 2
1. What is Data Manipulation Language? Describe three basic commands of SQL with the help of example.
Ans: Data Manipulation Language (DML) is a subset of SQL (Structured Query Language) used to
retrieve, insert, update, and delete data in a database. These commands do not affect the structure of the
database, only the data inside the tables.
Example:
sql
INSERT INTO employees (emp_id, emp_name, designation, salary)
VALUES (101, 'Alice', 'Manager', 80000);
This inserts a new employee named "Alice" into the employees table.
Example:
sql
UPDATE employees
SET salary = 90000
WHERE emp_id = 101;
Example:
Sql
This deletes the employee with emp_id 101 from the employees table.
2. Explain various Mapping Cardinalities that may be used in the E-R Model
Ans: Mapping cardinality (also called cardinality ratio) defines the number of entity instances that can
be associated with another entity in a relationship. It determines the type of relationship between entities in
an Entity-Relationship (E-R) Model.
1. One-to-One (1:1)
• Definition: Each entity in Entity A is related to at most one entity in Entity B, and vice versa.
• Example:
o Person ↔ Passport
o Each person has only one passport, and each passport belongs to only one person.
Diagram:
2. One-to-Many (1:M)
• Definition: One entity in Entity A can be related to multiple entities in Entity B, but each entity in
B is related to only one entity in A.
• Example:
o Teacher ↔ Students
o A teacher can teach many students, but each student has only one teacher (in a specific
subject).
Diagram:
3. Many-to-One (M:1)
Diagram:
4. Many-to-Many (M:N)
Diagram:
Question no-3
1. What are the differences among lists, tuples, dictionaries, and sets? Explain by giving examples.
Ans: Python provides four main collection types: Lists, Tuples, Dictionaries, and Sets. Each has unique
properties and use cases.
Example:
python
fruits = ["Apple", "Banana", "Cherry", "Apple"]
fruits.append("Mango") # Adding an element
fruits[1] = "Orange" # Modifying an element
print(fruits) # Output: ['Apple', 'Orange', 'Cherry', 'Apple', 'Mango']
Example:
python
coordinates = (10, 20, 30, 10)
# coordinates[1] = 40 # This will give an error (Tuples cannot be modified)
print(coordinates) # Output: (10, 20, 30, 10)
✔ Best for: Storing fixed data that should not change, like geographical coordinates.
Example:
python
student = {"name": "Alice", "age": 25, "city": "New York"}
student["age"] = 26 # Modifying a value
student["gender"] = "Female" # Adding a new key-value pair
print(student)
# Output: {'name': 'Alice', 'age': 26, 'city': 'New York', 'gender': 'Female'}
✔ Best for: Storing related data where each item has a unique identifier (like a phonebook or database
record).
4. Set (Unordered, Mutable, No Duplicates)
• A set is an unordered collection.
• Does not allow duplicate values.
• Mutable (you can add or remove items).
• Optimized for fast lookup operations.
Example:
python
numbers = {1, 2, 3, 4, 1, 2} # Duplicates will be removed automatically
numbers.add(5) # Adding an element
numbers.remove(3) # Removing an element
print(numbers) # Output: {1, 2, 4, 5}
✔ Best for: Storing unique items, like a list of unique student IDs.
Comparison Table
Tuple
Feature List Dictionary Set
2. Create a program using Python to calculate the amount of personal income tax of a person by taking his taxable
income as an input. The tax slabs are as follows:
Taxable income Tax rate
First tk. 350000 0%
Next tk.100000 5%
Next tk.300000 10%
Next tk.400000 15%
Next tk.500000 20%
On Balance 25%
Question no 4
1. What is database management system (DBMS)? Why is the Relational DBMS better than Hierarchical DBMS
and Network DBMS? Justify your answer.
2. Consider the following table and identify the super key(S), candidate key(S), primary key(S), alternate key(S),
composite key(S).justify the reason behind your selection.
ID Name Email Skills salary
1 A [email protected] Communication, leadership 50000
2 B [email protected] Communication, 20000
3 C [email protected] IT, Leadership 35000
4 D [email protected] IT, Teamwork 35000
5 E [email protected] Teamwork 25000
Question no 5
a. What are the two relationship constraints in entity relationship model? Explain.
Ans: In an Entity-Relationship (E-R) model, relationship constraints define rules that regulate how
entities associate with one another. The two main constraints are:
1. Cardinality Constraint
• Defines the number of entities that can be associated with another entity in a relationship.
• Also known as mapping cardinality.
• Specifies how many instances of an entity A relate to how many instances of entity B.
2. Participation Constraint
1. Total Participation → Every instance of the entity must participate in the relationship.
o Example: Every student must be enrolled in at least one course.
2. Partial Participation → Some instances of the entity may participate, but not all.
o Example: Not every faculty member is assigned to research work.
mathematica
(Student) (M) ---- Enrolls ---- (N) (Course)
| |
Total Partial
b. Consider a database for a simple online shopping system. In this system, each customer has attributes: Customer
ID, First Name, Last Name, and Email. Each product has attributes: Product ID, Product Name, and Price. Each
order has attributes: Order ID, Order Date, and Total Amount. A customer can place multiple orders, and each
order is placed by a single customer. Each order can contain multiple products, and each product can be part of
multiple orders.
Required:
i. Create an E-R diagram that represents the relationships among these entities.
ii. Identify the primary key for each entity. iii.
iii. Specify the cardinality of the relationships between the entities.
Do yourself
1. Customer: Customer ID
2. Product: Product ID
3. Order: Order ID
4. Order_Product (junction table for many-to-many relationship): Composite primary key (Order ID, Product
ID)
1. Customer to Order:
o One-to-Many (1:M)
o One customer can place many orders
o Each order is placed by exactly one customer
2. Order to Product:
o Many-to-Many (M:N) - implemented via the junction table Order_Product
o Each order can contain multiple products
o Each product can appear in multiple orders
The junction table Order_Product would typically include additional attributes like quantity ordered for each product
in an order.
Question no-6
a. What is normalization in DBMS? Why is the fifth normal form better than the fourth one?
Ans: Normalization is the process of organizing data in a database to reduce redundancy and improve data integrity. It
involves dividing large tables into smaller ones and defining relationships between them to minimize data anomalies
such as insertion, update, and deletion anomalies.
Normalization is performed through a series of normal forms (1NF, 2NF, 3NF, BCNF, 4NF, 5NF, etc.), each
addressing specific redundancy and dependency issues.
Why is the Fifth Normal Form (5NF) Better Than the Fourth (4NF)?
• Fourth Normal Form (4NF): Eliminates multi-valued dependencies to ensure that a table contains only
independent multi-valued facts. However, it does not resolve all types of redundancy, particularly those
caused by join dependencies.
• Fifth Normal Form (5NF) (Project-Join Normal Form - PJNF): Ensures that no non-trivial join
dependency exists in the table, meaning the data should not require recombination of multiple tables to
preserve meaning. It is particularly useful in cases where a table can be decomposed into multiple smaller
tables without losing data integrity.
Thus, 5NF is better than 4NF because it eliminates join dependencies that can still cause redundancy even after
4NF is applied. This results in a more optimized database design.
b. Suppose you are creating a database of the employees in your organization. Now, write the SQL commands for
completing the following tasks:
I. Create a database named 'Company'. Under this database, create a table named 'Staff and insert these columns:
ID, First _Name, Last_Name, Department, Salary. ID will be the primary key and will be automatically
incremented. Set the default value of Department to 'Not Allocated'.
Ans: II. Insert the given data into the 'Staff' table
sql
INSERT INTO Staff (First_Name, Last_Name, Department, Salary)
VALUES
('LIONEL', 'MESSI', 'ACC', 50000),
('CRISTIANO', 'RONALDO', 'MKT', 40000),
('KYLIAN', 'MBAPPE', 'IT', 30000);
UPDATE Staff
SET Full_Name = CONCAT(First_Name, ' ', Last_Name);
Question no 3
a) What is an attribute? Extend appropriate examples of attributes in the context of different types of databases.
Ans: an attribute refers to a characteristic or property of an entity. It defines the type of data that can be
stored for an entity in a database.
Examples in Databases
b) What is a data model? Explain the concept of the E-R Model. Use an ER diagram to depict the elements of the E-R
Model.
A data model is a conceptual framework that defines how data is structured, stored, and manipulated within
a database. It provides a systematic way to represent real-world entities and their relationships in a database.
ER Diagram Representation
Here is an ER Diagram illustrating the relationship between Student, Course, and Instructor:
c) Explain various Mapping Cardinalities that may be used in the case of entity relationships. Use appropriate examples
to represent each cardinality in a hypothetical scenario.
Question no 4
a) What does the JOIN clause do in SQL? Discuss the various types of JOINs.
Ans: What does the JOIN clause do in SQL?
The JOIN clause in SQL is used to combine rows from two or more tables based on a related column
between them, usually a foreign key. It allows you to retrieve data from multiple tables in a single query,
especially when the data is split across normalized tables.
To answer queries that involve data from multiple related tables, for example:
1. INNER JOIN
Syntax:
sql
SELECT *
FROM Employees e
INNER JOIN Departments d
ON e.Dept_ID = d.Dept_ID;
Use case:
List all employees along with their department info—but only for those assigned to a department.
Returns all rows from the left table, and matched rows from the right table. If no match, NULL is
returned for right-side columns.
Syntax:
sql
SELECT *
FROM Employees e
LEFT JOIN Departments d
ON e.Dept_ID = d.Dept_ID;
Use case:
List all employees, even those who don’t belong to any department.
Returns all rows from the right table, and matched rows from the left table. If no match, NULL is
returned for left-side columns.
Syntax:
Sql
SELECT *
FROM Employees e
RIGHT JOIN Departments d
ON e.Dept_ID = d.Dept_ID;
Use case:
Returns all rows when there is a match in either left or right table. Missing matches on either side
return NULLs.
Syntax:
sql
SELECT *
FROM Employees e
FULL OUTER JOIN Departments d
ON e.Dept_ID = d.Dept_ID;
Use case:
List all employees and departments, whether or not they match with each other.
5. CROSS JOIN
Returns the Cartesian product of both tables—every row of Table A joined with every row of Table
B.
Syntax:sql
SELECT *
FROM Products p
CROSS JOIN Categories c;
Use case:
Generate all combinations between two datasets (e.g., all possible product-category pairs).
6. SELF JOIN
A table is joined with itself. Often used to show relationships within the same entity (like manager-
employee).
Syntax:
sql
SELECT e1.Name AS Employee, e2.Name AS Manager
FROM Employees e1
JOIN Employees e2
ON e1.Manager_ID = e2.Employee_ID;
Use case:
i. HAVING clause
ii. SQL sub-queries
iii. ORDER BY
iv. SQL Aliases
The HAVING clause is used to filter the results of groups created by the GROUP BY clause. It acts like a
WHERE clause, but for aggregated data.
Use Case:
sql
SELECT Dept_ID, COUNT(*) AS Employee_Count
FROM Employees
GROUP BY Dept_ID
HAVING COUNT(*) > 5;
You use HAVING when you need to filter groups after aggregation (like SUM, COUNT, AVG, etc.).
A sub-query (or nested query) is a query inside another SQL query. It’s used to compute values or filter
results based on another query.
Use Case:
Sub-queries can appear in SELECT, FROM, or WHERE clauses, and can return single or multiple values.
iii. ORDER BY
The ORDER BY clause is used to sort the result set by one or more columns, in ascending (ASC) or
descending (DESC) order.
Use Case:
sql
SELECT Name, Salary
FROM Employees
ORDER BY Salary DESC;
Aliases are temporary names assigned to columns or tables to make query results more readable or to
simplify complex expressions.
Use Case:
sql
SELECT e.Name AS Employee_Name, d.Dept_Name AS Department
FROM Employees e
JOIN Departments d ON e.Dept_ID = d.Dept_ID;
c) Write down the SQL commands to be used for each of the given scenarios:
i. Create a table called 'employee information' that has as attributes- employee id, employee name and employee
location.
ii. Find out the 'sales, 'sales person', 'trnx _id' and 'region' from the 'transactions" table where the sales amount is greater
than BDT. 10,000.
iii. Make a query and display the 'customer name', 'address', 'postal code', 'country' from the customer information' table
and also order the outpul according to the customer name in ascending alphabetical order.
iv. Add a new. column called 'customer review' to the 'customer information' table. Consider that the reviews are given
on a scale from 1 to 5 stars
v. Make an entry of record into the employee information table created in (i). Use hypothetical values for data insertion.
vi. Make a query to find out and show 'customer name', 'order id', 'region', 'quantity sold' and 'amount' where the amount
sold is more than BDT. 5,000 and the region is DHAKA. Limit the results to the first 10 entries.
Ans: . Create a table called 'employee_information'
sql
CREATE TABLE employee_information (
employee_id INT PRIMARY KEY,
employee_name VARCHAR(100),
employee_location VARCHAR(100)
);
Use underscores (_) instead of spaces in table or column names for better readability and compatibility.
ii. Find 'sales', 'sales_person', 'trnx_id', and 'region' where sales > BDT 10,000
sql
SELECT sales, sales_person, trnx_id, region
FROM transactions
WHERE sales > 10000;
This assumes the sales column contains numeric values (like BDT amounts).
vi. Query with filter and LIMIT on sales over BDT 5,000 in DHAKA
sql
SELECT customer_name, order_id, region, quantity_sold, amount
FROM orders
WHERE amount > 5000 AND region = 'DHAKA'
LIMIT 10;
Make sure your table name is orders (or update it if named differently). LIMIT restricts output to first
10 rows.
Question no 5
a) What is Data Manipulation Language? Describe three basic commands of SQL with the help of example.
b) Define a Relational Database Management System and explain how it organizes data.
Ans: A Relational Database Management System (RDBMS) is a type of database management system
that stores data in the form of tables (also called relations). It allows users to create, update, manage, and
query data using Structured Query Language (SQL).
1. Tables (Relations)
Data is stored in structured tables. Each table represents one entity (e.g., Students, Orders, Products).
2. Columns (Attributes)
Example: A row in the Students table represents one student’s complete info.
4. Keys
c) List the three basic operations in Relational Database Management System and explain them with example. (28th
batch mid)
Example:
sql
SELECT * FROM Employees
WHERE department = 'Sales';
Example:
sql
SELECT employee_name, salary FROM Employees;
This returns only the employee names and their salaries, not the full table.
Example:
sql
SELECT e.employee_name, d.department_name
FROM Employees e
JOIN Departments d
ON e.department_id = d.department_id;
This returns a list of employees along with their respective department names, by joining the Employees
and Departments tables.
Question no 1
Ans: A query language is a specialized language used to communicate with a database, primarily to
retrieve, manipulate, and manage data stored in it. The most widely used query language for relational
databases is SQL (Structured Query Language).
1. Retrieve Data
o Allows fetching specific data using commands like SELECT.
o Example:
sql
CopyEdit
SELECT name, salary FROM Employees WHERE department = 'HR';
Function Description
Data Retrieval Extract only the data you need, even from multiple tables
Data Manipulation Change, insert, or remove data safely and efficiently
Data Definition Define the structure (schema) of the database
Access Control Limit who can view or edit specific data
Data Analysis & Reporting Summarize and filter data for business insights
Common Query Language: SQL
Retrieves customer orders where the amount is more than 5000 and sorts them by customer name.
Key Milestones:
Year Event
1970 Edgar F. Codd published the relational model concept in a research paper.
1974 Donald D. Chamberlin and Raymond F. Boyce at IBM created SEQUEL.
Late 1970s SEQUEL was renamed to SQL due to a trademark conflict.
1980s Oracle (then Relational Software Inc.) launched the first commercial SQL-based RDBMS.
1986 SQL became a standard by ANSI (American National Standards Institute).
1987 ISO adopted SQL as a standard.
Each database system adds its own extensions to improve performance, add features, or optimize
functionality beyond standard SQL.
c) Explain in detail about Relational Database Management Systems (RDBMS). Mention some of the widely used
RDBMS around the world. Why is there a need for NoSQL platforms?
Ans: A Relational Database Management System (RDBMS) is a type of database management software
that stores data in structured tables (relations). These tables are made up of rows (records) and columns
(attributes).
RDBMS Description
MySQL Open-source, widely used in web applications (PHP, WordPress).
PostgreSQL Advanced features, open-source, supports JSON, GIS.
Oracle DB Commercial RDBMS used in enterprise-level applications.
Microsoft SQL Server Popular for Windows-based systems and enterprise software.
SQLite Lightweight, file-based RDBMS used in mobile and embedded applications.
While RDBMS works great for structured data, it has limitations when dealing with:
Limitations of RDBMS:
• Difficult to scale horizontally (e.g., across multiple servers).
• Poor performance with very large volumes of unstructured/semi-structured data (e.g., logs, images,
JSON).
• Not flexible with changing schema or dynamic data.
• Big Data
• Unstructured or semi-structured data
• Scalability and high availability
Question no 3
a) What does the JOIN clause do in SQL? Discuss the various types of JOINs.
b) Write down the SQL commands to be used for each of the given scenarios:
vii. Create a table called 'employee information' that has as attributes- employee id, employee name and employee
location.
viii. Find out the 'sales, 'sales person', 'trnx _id' and 'region' from the 'transactions" table where the sales amount is greater
than BDT. 10,000.
ix. Make a query and display the 'customer name', 'address', 'postal code', 'country' from the customer information' table
and also order the outpul according to the customer name in ascending alphabetical order.
x. Add a new. column called 'customer review' to the 'customer information' table. Consider that the reviews are given
on a scale from 1 to 5 stars
xi. Make an entry of record into the employee information table created in (i). Use hypothetical values for data insertion.
xii. Make a query to find out and show 'customer name', 'order id', 'region', 'quantity sold' and 'amount' where the amount
sold is more than BDT. 5,000 and the region is DHAKA. Limit the results to the first 10 entries.
Question no 6
Ans: Non-Relational Databases, also known as NoSQL databases, are useful because they are designed to
handle large volumes of diverse, unstructured, or semi-structured data in ways that traditional relational
databases (RDBMS) struggle with.
Example: A product catalog where some products have sizes and others have colors – NoSQL can handle
this easily.
2. High Scalability
• NoSQL databases are built for horizontal scaling – can easily be distributed across multiple servers.
• Useful for big data applications and real-time processing.
Example: Facebook, Amazon, Netflix use NoSQL to manage millions of users/data points across distributed
systems.
• Designed to store massive volumes of unstructured data like logs, images, videos, JSON.
• Supports fast read/write operations at scale.
• NoSQL databases are used in applications that require real-time analytics, personalization,
messaging, etc.
b) Define and describe Entity- Relationship Diagram and explain its role in database design.
c) Describe Normalization and Referential Integrity and explain how they contribute to a well-designed
relational database.
Ans: Normalization is the process of organizing data in a relational database to reduce data redundancy and
improve data integrity. It involves dividing large tables into smaller, related tables and defining relationships between
them.
Goals of Normalization:
Benefits of Normalization
Referential Integrity ensures that relationships between tables remain consistent. It means that a foreign
key in one table must either be null or match a primary key in another table.
Example:
• You can’t insert an order with a Customer_ID that doesn't exist in Customers.
• You can’t delete a customer if there are orders referencing them (unless handled).
Solution prepared by Iftekhar (29th ) with help of AI and materials provided by teachers