Database Tables of Supermarket Management System

Here we created Database Tables of Supermarket Management System. A Supermarket Management System is a software application that helps to automate and manage various administrative tasks and operations of a supermarket. In order to store and retrieve the data efficiently, a relational database is used, which consists of tables.


Database Name: Supermarket

Table Name: account

Column NameData TypeLength
Acid (Primary Key)Bigint (Auto increment)10
FnameVarchar50
LnameVarchar50
AddressVarchar250
PassVarchar50
TypeVarchar50
ContnoVarchar20

Table Name: customer

Column NameData TypeLength
custid (Primary Key)Bigint (Auto increment)10
NameVarchar50
AddressVarchar250
PincodeVarchar50
ContactnpVarchar50
EmailVarchar50

Table Name: itemmaster

Column NameData TypeLength
item_code (Primary Key)Bigint (Auto increment)10
item_nameVarchar50
item_UOMVarchar50
item_typeVarchar250

Table Name: materialh

Column NameData TypeLength
arrv_no (Primary Key)Bigint (Auto increment)10
arrv_dateDateTime 
bill_noVarchar50
SupplierVarchar250
po_numVarchar50
receip_valueVarchar50
bill_dateDateTime 
statusvarchar50

Table Name: materiald

Column NameData TypeLength
arrv_no (Primary Key)Bigint (Auto increment)10
po_numVarchar50
item_codeVarchar50
qnty_noVarchar250
UOMVarchar50
RateVarchar50
arrv_valueVarchar50

Table Name: product_master

Column NameData TypeLength
prod_no (Primary Key)Bigint (Auto increment)10
prod_dateDatetime 
prod_shiftVarchar50
prod_batchnoVarchar250
prod_supnameVarchar50
product_codeVarchar50
prod_quantityVarchar50

How to create Database Tables of Supermarket Management System

Here is a general overview of how to create MySQL database tables:

  1. Connect to a MySQL server: You will need to connect to a MySQL server using a MySQL client such as the MySQL command-line client or a graphical tool like phpMyAdmin.
  2. Choose a database: Once you are connected to the MySQL server, you will need to choose a database in which to create the tables. If the database does not exist, you will need to create it first.
  3. Create a table: To create a table, you will need to use the CREATE TABLE statement. The syntax for the CREATE TABLE statement is as follows:

CREATE TABLE table_name ( column1 data_type constraint, column2 data_type constraint, … );

  1. Define the table’s columns: Within the CREATE TABLE statement, you will need to define the columns of the table. Each column should have a name, a data type (such as INT or VARCHAR), and any constraints (such as NOT NULL or UNIQUE).
  2. Insert Data into table : Once the table is created, you can start inserting data into it by using the INSERT INTO statement.
  3. Run the statement: Once you have written your CREATE TABLE statement, you can run it by executing it in your MySQL client.
  4. Verify the table: You can verify that the table has been created by running the SHOW TABLES statement or by viewing the table in your chosen database management tool (such as phpMyAdmin).

This is a general overview of how to create MySQL database tables, there are many different variations, constraints, and options for creating tables, and you should consult the MySQL documentation for more information.


Project & Documentation Download Link

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.