You are on page 1of 25

<<FOREIGN TRADING SYSTEM>>

18CSC209J - Database Management System and Cloud


Integration Services

Mini Project Report

Submitted by

JETTY LALITH [Reg. No.: RA2111028010165]


B.Tech. CSE - <<CLOUD COMPUTING>>

C.SALMAN [Reg. No.: RA2111028010186]


B.Tech. CSE - << CLOUD COMPUTING >>

DEPARTMENT OF NETWORKING AND COMMUNICATION


SCHOOL OF COMPUTING
COLLEGE OF ENGINEERING AND TECHNOLOGY
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
(Under Section 3 of UGC Act, 1956)
S.R.M. NAGAR, KATTANKULATHUR – 603 203
KANCHEEPURAM DISTRICT
MAY 2023
TABLE OF CONTENTS

Chapter
Title Page No.
No.

1. Abstract

2. Introduction

3. Problem Statement

4. Module Description

5. Use case diagram

6. ER diagram

7. Database Creation using DDL and DML

8. Normalization of Database

9. Implementation using Dynamo DB

10. Conclusion

11 Appendix I - Screenshot

12 Appemdix II - Github Profile

13 Appendix III - AWS Course Completion certificate


BONAFIDE

This is to certify that 18CSC209J - DATABASE


MANAGEMENT SYSTEM AND CLOUD INTEGRATION
SERVICES LABORATORY Mini Project report titled “
FOREIGN TRADING SYSTEM ”is the bonafide work of JETTY
LALITH (RA2111028010165) , C. SALMAN (RA2111028010186) who
undertook the task of completing the project within the allotted time.

SIGNATURE SIGNATURE

Dr.ANGAYARKANNI Dr. Annapurani Panaiyappan K

Assistant Professor Professor and Head


Department of Networking Department of Networking
and Communication and Communication
SRM Institute of Science SRM Institute of Science
and Technology and Technology
ABSTRACT
A Foreign Trading System (FTS) is a software application that facilitates international trade transactions
between buyers and sellers from different countries. The system provides a platform for companies to
conduct business globally by allowing them to manage orders, invoices, payments, and logistics through a
single interface. The FTS also includes features such as currency conversion, risk management, and
compliance monitoring to ensure that transactions are conducted in a safe and secure manner. The FTS helps
businesses expand their reach and increase their profitability by providing them with access to new markets
and customers around the world.

INTRODUCTION

A foreign trading system is a complex network of institutions, individuals, and transactions that
facilitate the exchange of goods and services across international borders. The system includes
various players such as importers, exporters, manufacturers, freight forwarders, banks, customs
officials, and government agencies. The process involves a wide range of activities, including
negotiation, transportation, logistics, financing, and documentation.

PURPOSE
The purpose of a foreign trading system is to facilitate the exchange of goods and services
between countries. It is a platform that enables individuals and organizations from different
countries to conduct international trade transactions.
SCOPE

• The System provides an online interface to the user where they can fill in their personal
details and register for a trade. with the issue of invoice and ID’s which can use this
system to reduce workload and process the application in a speedy manner.
• Provide a communication platform between the seller and the buyer.
• buyers will come to know their status of foreign trade and the details of trade.
PROBLEM STATEMENT
The Foreign Trading System (FTS) is an online platform that allows traders to buy and sell
foreign currencies and other financial instruments. The problem statement for FTS is to
design and develop a system that enables traders to perform secure and efficient
transactions, access real-time market information, and manage their portfolios effectively.
The system should provide traders with a user-friendly interface that facilitates easy
navigation and quick access to relevant information. Additionally, the system should ensure
compliance with relevant regulations and security standards, and enable seamless
integration with external systems and services. Overall, the goal of the FTS is to provide a
robust and reliable platform for foreign currency trading that meets the needs and
expectations of traders and other stakeholders.

MODULE DESCRIPTION
Module-1: Is the login form in which the user or the admin has to enter the username and
password to enter into the Foreign trading application system.
Module-2: Is the form where the customer can enter in to register their details and in
the same form the admin can enter to manage the customer data base and to retrieve
it.

Module-3: Is the form where the customer buys or trades the available products.
Module-4: Is the form where the admin maintains the customer, orders and products
database to insert, delete and update. The complete data of the customer can otherwise
be viewed in grid form.
USECASE DIAGRAM
The foreign trading use cases in our system are:

1. Login

2. View trade details

3. Register

4. Acknowledgement

5. Buyer Processing

ACTORS INVOLVED:

1. Exporter
2. Buyer

USECASE NAME : PRELIMINARIES


Individual and business firms intending to export and/or import goods and/or services should obtain
an Importer-Exporter Number from the regional licensing authorities.

USECASE NAME : OFFER ORDER

Offer is a proposal submitted by an exporter expressing his intention to export specific goods at a
specific price with specific terms and conditions. Exporter usually makes an offer in the form of a
‘Proforma Invoice’.

USECASE NAME: PRODUCTION OF GOODS

The exporting house after obtaining a confirmed order should produce the goods exactly as specified
in the invoice. If the exporting house does not have facilities, it has to procure the products from
others.

USECASE NAME: SHIPMENT

The exporter transports the goods to the buyer.

USECASE NAME: NEGOTIATION OF DOCUMENTS

The exporter submits the relevant documents to his buyer (banker) for getting the payment for the
goodexported.
Preliminaries
RegionalAuthori
ties

Offer Order

Exporter Buyer

Production of goods

Shipment

USECASE DIAGRAM FOR FOREIGN TRADING SYSTEM


ER DIAGRAM
Entity relationship diagram show the relation between different entities such as the
relation between buyer, trader and seller etc.

ER DIAGRAM OF FOREIGN TRADING SYSTEM


Database Creation using DDL and DML
For Foreign trading System there are three database tables: Customers,
Orders and Products.
The Customer table stores information about customes, the Order table
stores information about orders, and the Products table stores information about which
products are available.

USING DDL
For customers
CREATE TABLE customers (
customer_id INT PRIMARY
KEY,
customer_name VARCHAR(255) NOT
NULL, customer_email VARCHAR(255)
NOT NULL,
customer_phone VARCHAR(20) NOT NULL,
customer_address VARCHAR(255) NOT
NULL
);
For products
CREATE TABLE products (

product_id INT PRIMARY KEY,


product_name VARCHAR(255) NOT
NULL, product_description STRING
NOT NULL, PRICE INT NOT NULL

);
For orders
CREATE TABLE Orders (order_id
INT PRIMARY KEY, customer_id
INT NOT NULL, totalamount INT
NOT NULL,
order_date DATE NOT NULL,
);

USING DML
For customers
INSERT INTO customers (customer_id, name, address, phone, email)
VALUES
(1, 'John Smith', '123 Main St., Anytown USA', '555-555-1212', 'johnsmith@email.com'),
(2, 'Jane Doe', '456 Elm St., Anycity USA', '555-555-1313', 'janedoe@email.com'),
(3, 'Bob Johnson', '789 Oak St., Anyvillage USA', '555-555-1414', 'bobjohnson@email.com');
For orders
INSERT INTO orders (order_id, customer_id, order_date, total_amount)
VALUES
(1, 1, '2022-01-01', 100.00),
(2, 2, '2022-01-02', 200.00),
(3, 3, '2022-01-03', 300.00);

For Products
INSERT INTO products (product_id, name, description, price)
VALUES
(1, 'Widget', 'A small gadget', 10.00),
(2, 'Gizmo', 'A larger gadget', 20.00),

(3, 'Thingamabob', 'A very large gadget', 30.00);


customers

Customer_id name address phone email


1 John smith 123 main 555-555-12112 johnsmith@email.com
st.anytown USA
2 Jane doe 456 elm st.anycity 555-555-1313 janedoe@email.com
USA
3 Bob johnson 789 oak 555-555-1414 bobjohnson@email.com
st.anyvillage USA

Orders

Order_id Customer_id Order_date Total_amount

1 1 2022-01-01 100.00

2 2 2022-01-02 200.00

3 3 2022-01-03 300.00

products

Product_id name description Price


1 widget A small gadget 10.00
2 gizmo A larger gadget 20.00
3 thingamabob A very large gadget 30.00
NORMALIZATION OF DATABASE
A database for a foreign trading system would typically have multiple tables
to store different types of information, such as customers, Products, Orders. To ensure
efficient data management and eliminate data redundancies, normalization of the database
is required. The normalization process involves breaking down a table into multiple smaller
tables, with each table containing a single type of information. The goal is to minimize data
redundancies and inconsistencies and ensure data integrity.
The normalization process typically involves the following steps:

First Normal Form (1NF): Each table should have a primary key, and each column should
contain atomic values. This means that each column should hold a single value, rather than
a list or set of values.
Second Normal Form (2NF): Each non-key column should be fully dependent on the primary
key. This means that there should be no partial dependencies, where a non-key column
depends on only a portion of the primary key.
Third Normal Form (3NF): Each non-key column should be dependent only on the primary
key, and not on any other non-key columns. This means that there should be no transitive
dependencies, where a non-key column depends on another non-key column.
Customer_id Customer_name Product_name contact Product_price
1 John smith widget 555-555-1212 10.00
2 Jane doe gizmo 555-555-1313 20.00
3 Bob johnson thingamabob 555-55551414 30.00

Redundant Data Is Duplicate Data


Customer_id Customer_name Product_id
1 John smith 1
2 Jane doe 2
3 Bob johnson 3

Product_id Product_name Product_price Customer_id


1 Widget 10.00 1
2 Gizmo 20.00 2
3 thingamabob 30.00 3

Customer_id Customer_name contact


1 John smith 555-555-1212
2 Jane doe 555-555-1313
`````3 Bob johnson 555-55551414

CUSTOMER_ID Is Primary Key For FIRST Table


PRODUCT_ID Is Primary Key For SECOND Table And Foreign Key In Third Table
CUSTOMER_ID Is Primary Key For Instructor Table
1. CUSTOMER

• As the attributes of this table does not have sub attributes, it is in first normal
form.
• Because every non-primary key attribute is fully functionally dependent on the
primary key of the table and it is already in first normal form, this table is now
in second normal form.
• Since the table is in second normal form and no nonprimary key attribute is
transitively dependent on the primary key, the table is now in 3NF.
• Since the table is in 3NF and no prime key is dependent on non-prime key, so
the table is in BCNF.
{customer_name} → {first name} (functional dependency exists)
{customer_id} → {Id} (functional dependency exists)

2. ORDERS

• As the attributes of this table does not have sub attributes, it is in first normal
form.
• Because every non-primary key attribute is fully functionally dependent on the
primary key of the table and it is already in first normal form, this table is now
in second normal form.
• Since the table is in second normal form and no nonprimary key attribute is
transitively dependent on the primary key, the table is now in 3NF.
• Since the table is in 3NF and no prime key is dependent on non-prime key, so
the table is in BCNF.

3. PRODUCTS

• As the attributes of this table does not have sub attributes, it is in first normal
form.
• Because every non-primary key attribute is fully functionally dependent on the
primary key of the table and it is already in first normal form, this table is now
in second normal form.
• Since the table is in second normal form and no nonprimary key attribute is
transitively dependent on the primary key, the table is now in 3NF.
• Since the table is in 3NF and no prime key is dependent on non-prime key, so
the table is in BCNF.

IMPLEMENTATION USING DYNAMO DB


To implement a Foreign trading system using DynamoDB, you can follow the following
steps:
1. Define the data model: Determine the data you need to store for the foreign trading
system. For example, you may need to store information about customers, order,
product.

2. Create a DynamoDB table: Create a table in DynamoDB to store the data. Define the
primary key for the table, which could be a single partition key or a combination of a
partition key and a sort key.

3. Define the table schema: Define the attributes that you want to store in the table. You
can also specify any secondary indexes that you want to create.

Here Is The Implement using Dynamo DB:

1. Data model:
• Customer
✓ ID
✓ Name
✓ Email
✓ Phone
• ORDERS
✓ ID
✓ Name
✓ Date
✓ PRICE
• PRODUCTS
✓ ID
✓ CUSTOMER_ID
✓ PRICE
✓ Date
2. DynamoDB table:
• Table name: ForeignTrading
• Primary key: Partition key - ID (string)

3. Table schema:
• Attributes:
✓ ID (string)
✓ Name (string)
✓ Email (string)
✓ product ID (string)
✓ Phone (int)
✓ Order Date (string)
✓ Price (int)

Secondary indexes:
• GSI1: Partition key - ID (string),
CODE:-
3:-
{
"ID": {
"S": "3"
},
"ADDRESS": {
"S": "789 Oak St., Anyvillage USA"
},
"EMAIL": {
"S": "bobjohnson@email.com"
},
"NAME": {
"S": "Bob Johnson"
},
"PHONE": {
"S": "99009902"
}
}
2:-
{
"ID": {
"S": "2"
},
"ADDRESS": {
"S": "456 Elm St., Anycity USA"
},
"EMAIL": {
"S": "janedoe@email.com"
},
"NAME": {
"S": "Jane Doe"
},
"PHONE": {
"S": "99009901"
}
}
1:-
{
"ID": {
"S": "1"
},
"ADDRESS": {
"S": "123 Main St., Anytown USA"
},
"EMAIL": {
"S": "johnsmith@email.com"
},
"NAME": {
"S": "John Smith"
},
"PHONE": {
"S": "9909900"
}
}
1:-
{
"ID": {
"S": "1"
},
"CUS_ID": {
"S": "1"
},
"ORDER_DATE": {
"S": "01-01-2022"
},
"TotalAmount": {
"S": "100.00"
}
}
2:-
{
"ID": {
"S": "2"
},
"CUS_ID": {
"S": "2"
},
"ORDER_DATE": {
"S": "02-01-2002"
},
"TotalAmount": {
"S": "200.00"
}
}
3:-
{
"ID": {
"S": "3"
},
"CUS_ID": {
"S": "3"
},
"ORDER_DATE": {
"S": "01-01-2002"
},
"TotalAmount": {
"S": "100.00"
}
}
1:-
{
"ID": {
"S": "1"
},
"DESCRIPTION": {
"S": "a small gadget"
},
"NAME": {
"S": "Widget"
},
"PRICE": {
"S": "10.00"
}
}
2:-
{
"ID": {
"S": "2"
},
"DESCRIPTION": {
"S": "a large gadget"
},
"NAME": {
"S": "Gizmo"
},
"PRICE": {
"S": "20.00"
}
}
3:-
{
"ID": {
"S": "3"
},
"DESCRIPTION": {
"S": "a very large gadget"
},
"NAME": {
"S": "Thingamabob"
},
"PRICE": {
"S": "30.00"
}
}

CONCLUSION

In conclusion, the foreign trading system is an important aspect of the


global economy, allowing countries to exchange goods and services with each other.
The system has evolved over time, with advances in technology and changes in trade
policies shaping how countries engage in trade. The benefits of foreign trade include
access to a wider range of goods and services, increased competition, and economic
growth. However, there are also potential drawbacks, such as job losses in certain
industries and negative impacts on the environment. To ensure a fair and
sustainable foreign trading system, it is important for countries to engage in open
and transparent negotiations, enforce trade agreements effectively, and consider
the social and environmental impacts of trade. It is also essential to address
concerns about inequality and ensure that the benefits of trade are shared fairly
among all members of society.
Appendix I – Screenshot

REGISTRATION FORM
Appendix II - GitHub Profile

https://github.com/jettylalith
Appendix III - AWS Course Completion certificate
RESULT:
Thus the mini project for FOREIGN TRADING SYSTEM has been successfully executed and codes are generated.

You might also like