Preview

Inventory Control System

Good Essays
Open Document
Open Document
3000 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Inventory Control System
Introduction
In this article I will explain how to create a simple Inventory Management transaction using an Insert, Update, and Delete Trigger. In many projects like MES, ERP, SAP, WMS, and so on Inventory Management takes the major role. In one of my projects I was creating an Inventory Management system using SQL Triggers. I planned to create simple Transaction tables. This article explains step-by-step how to create an inventory table and trigger for inserting, updating, and deleting a Transaction table. Here I have used SQL Server 2008.
Step 1: Create table for Transaction Master. Here my Table Name is T_IO (Transaction In/Out QTY). Here you can see each column on T_IO table and the purpsose of the column in detail.
IPCL_Date (This is for Transaction Date)
IPCL_Seq ( Seq No)
GUBUN (This is a Char for Storing the Status as I for Input and O for Output)
Prod_NO (This is the Item_No or Item_Name)
Qty (This is for In/Out Qty)
Table for create script for T_IO:
CREATE TABLE T_IO
(
IPCL_Date datetime null,
IPCL_Seq int,
GUBUN char(1),
Prod_NO varchar(10),
Qty int
);
Create Table
We need to create an audit table for all transaction results maintenance. Here my Audit table name is Subul (Subul is Korean name which means Inventory Management).
Here you can see each column on SUBUL table and the pupose of the column in detail.
Subul_Date (Transaction Date),
Prod_NO (This is the Item_No or Item_Name),
Gicho (This is to store the previous date remaining Qty),
IP_Qty (To store Inventory In Qty) ,
CL_Qty (To store Inventory OutQty),
GIMAL (this is Transaction result of every record - Gicho+IP_Qty-CL-Qty)
Script for Subul table Create:
CREATE TABLE Subul
(
Subul_Date datetime null,
Prod_NO varchar(10),
Gicho int,
IP_Qty int,
CL_Qty int,
GIMAL int
);
Step 2: Create Insert, Update, and Delete for the T-IO table to store the details of the transaction result data to the SUBUL (Inventory) table. We can see the details

You May Also Find These Documents Helpful

  • Good Essays

    DBM380 Week 2

    • 837 Words
    • 3 Pages

    There will be seven tables in this database source system order data, customer data, corrections table data, drop ship corrections, workflow status, end system data, and comparison results table. The source system table will be comprised of columns for customer purchase order number, customer name, transmitted date, and status. The customer table will consist of columns for customer name and customer number. Corrections table will provide columns for customer purchase order number, system reference data, date received and error message. Drop ship table…

    • 837 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Dbm380 Wk2

    • 772 Words
    • 3 Pages

    There will be seven tables in this database source system customer data, order data, corrections table data, comparison results table, drop ship corrections, end system data, and workflow status. The source system table will be comprised of columns for customer name, customer purchase order number, status, and transmitted date. The customer table will comprise of columns for customer name and customer number. Corrections table will offer columns for customer purchase order number, system reference data, date received and error message. Drop ship table will consist of customer…

    • 772 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Bus 173 Ajm

    • 751 Words
    • 4 Pages

    a) Cross table of method of payment and day of purchase for Florin data file.…

    • 751 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    AIS CHAPTERS

    • 371 Words
    • 10 Pages

    shown below. The data are now in first normal form because they can be stored in…

    • 371 Words
    • 10 Pages
    Satisfactory Essays
  • Good Essays

    ‘Reserved Inventory' table – this table will be a transaction table that will ‘reserve' the items by removing them from inventory and holding them in the reserved table until one of the following conditions is met:…

    • 930 Words
    • 4 Pages
    Good Essays
  • Good Essays

    further discussion in the simulation. Except for the table's primary key, which should be the first attribute in each…

    • 1302 Words
    • 11 Pages
    Good Essays
  • Best Essays

    Termpaper

    • 4159 Words
    • 22 Pages

    The following Entities are derived from the above transactions which need to be stored in the databases and maintained in the department’s stores.…

    • 4159 Words
    • 22 Pages
    Best Essays
  • Better Essays

    Instructions HW1

    • 1434 Words
    • 7 Pages

    Write the following queries in SQL. Each of your answers must be a single SQL query. Your SQL queries…

    • 1434 Words
    • 7 Pages
    Better Essays
  • Good Essays

    Relational Model

    • 406 Words
    • 2 Pages

    Figure 2. Relational Model provides an overview of the table content, table column/attributes and the relationships that connects them. The identified relationships are as follow: a single customer can make multiple sales (1:M), a single sale contains specific set of sales details (1:1), the same payment could be used for multiple sales (1:M). Furthermore, an order details can contain multiple books or product items (1:M), a single author can have multiple books in the store (1:M) just as a single publisher can publish many different books and authors (1:M).…

    • 406 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Chapter 1 study guide

    • 672 Words
    • 3 Pages

    A list of the characters that can be used in a given language or languages, mapped to corresponding unique binary codes and published as a convention or standard so that computers can use a consistent set of binary values to represent text values. (ex ASCII, ANSI, and Unicode)…

    • 672 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Proposal Data Base

    • 464 Words
    • 2 Pages

    Microsoft Excel to keep this information to include transactions that we have made with our…

    • 464 Words
    • 2 Pages
    Good Essays
  • Good Essays

    The Pivot Table is two-dimensional statistical summaries of database information and can be improved by arranging the codes chronologically and sort the data…

    • 565 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    IST223-GHW7FS13

    • 2215 Words
    • 9 Pages

    Do parts A through M as given below. Those that involve SQL should be written…

    • 2215 Words
    • 9 Pages
    Powerful Essays
  • Satisfactory Essays

    Case Study 1 1

    • 392 Words
    • 2 Pages

    1. Record each transaction in the journal. Key each transaction by date. Explanations are not required.…

    • 392 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    First of all I would like to thank a lot to my teacher who is an excellent lecturer. Under his guidance, I learnt a lot about DBMS concepts. And as a result, I become able to complete this assignment with confidence.…

    • 737 Words
    • 3 Pages
    Powerful Essays

Related Topics