SlideShare a Scribd company logo
1 of 27
Presentation by: Archana Jha
(NI1302/075/15)
Submitted to: Rani Ojha
 Any E-commerce
website data is their
product.
 Flipkart is an E-
commerce website
started in 2007 by
Bansal brothers.
 Now became India’s
most visiting online
shopping site.
 A pool of multiple
database which handled
by DBA using Sql and
NoSql databases.
 Requirement Analysis for database designing
using DBA’s perspective.
 Testing of Designed Database.
 Database for the “Product Section of Flipkart
Website.
Components of Flipkart Database:-
1. Customer Management
2. Product Management
3. Order Processing and Management
4. Shipment Management
5. Warehouse Management
6. Seller Management
7. Payment Management
REQUIREMENT 1:-
Products Should be categorized in Categories
and Sub-Categories
Cont…..
DBA Perspective:-
Creation of separate lookup tables with one
to one relationship for categories and sub-
categories.
Table Schema for Category:-
CREATE TABLE [dbo].
[M_Product_Category]( [Id] [bigint] IDENTITY(1,1) NOT NULL,
[Product_Type] [nvarchar](50) NOT NULL, [Description]
[nvarchar](100) NULL,
[Updated_By] [nvarchar](50) NULL,
[IsActive] [bit] NULL,
[Last_Updated_Date] [datetime] NULL)
Table Schema for Sub-Category:-
CREATE TABLE [dbo].
[M_Product_SubCategory]( [Id] [bigint] IDENTITY(1,1) NOT NULL,
[FK_Product_Id] [bigint] NOT NULL,
[Product_Sub_Category] [nvarchar](100) NULL,
[Description] [nvarchar](200) NULL,
[Updated_By] [nvarchar](50) NULL,
[Last_Updated_Date] [datetime] NULL,
[IsActive] [bit] NULL)
REQUIREMENT 2:-
1. Product which is getting sold could be in
KG, UNIT or LITRES or in Pound, etc...
2. Product can be sold in any kind of currency
like be it in $, be it in EURO or INR, etc…
DBA Perspective:-
Expecting very less amount of data in this
table for future so will just create two
separate lookups.
Table Schema for Unit Related:-
CREATE TABLE [dbo].
[M_Price_Decision_Factor]( [Id] [bigint] IDENTITY(1,1) NOT
NULL,
[Price_Decision_Factor] [nvarchar](50) NULL, [Description]
[nvarchar](500) NULL,
[Updated_By] [nvarchar](50) NULL,
[Last_Updated] [datetime] NULL, [IsActive] [bit] NULL)
Table Schema for Currency Related:-
CREATE TABLE [dbo].
[M_Currency_Domiance]( [Id] [bigint] IDENTITY(1,1) NOT NULL,
[Currency_Type] [nvarchar](50) NULL,
[Description] [nvarchar](200) NULL,
[Updated_By] [nvarchar](50) NULL,
[Last_Updated] [datetime] NULL,
[IsActive] [bit] NULL)
REQUIREMENT 3:-
1.Every product information should come up
with its seller’s information.
2. Generalization at seller level in order to
distinguish between different kind of sellers.
3. Every product information may contain
maximum 5 images.
DBA Perspective:-
1. Lookup table for seller category
2. Lookup table for sub-category of seller.
3. Lookup tables for pictures.
Table Schema for Seller Category:-
CREATE TABLE [dbo].
[M_Seller_Category]( [Id] [bigint] IDENTITY(1,1) NOT NULL,
[Seller_Category] [nvarchar](100) NULL,
[Description] [nvarchar](500) NULL,
[Last_Updated] [datetime] NULL,
[Updated_By] [nvarchar](100) NULL,
[IsActive] [bit] NULL)
Table Schema for Sub-Seller Category:-
CREATE TABLE [dbo].
[M_Seller_SubCategory]( [Id] [bigint] IDENTITY(1,1) NOT NULL,
[FK_Seller_Id] [bigint] NULL,
[Seller_Sub_Category] [nvarchar](50) NULL,
[Description] [nvarchar](200) NULL,
[Updated_By] [nvarchar](50) NULL,
[Last_Updated] [datetime] NULL,
[IsActive] [bit] NULL)
Table Schema for Picture Category:-
CREATE TABLE [dbo].
[M_Product_Image_Details]( [Id] [bigint] IDENTITY(1,1) NOT
NULL,
[FK_Product_Id] [bigint] NOT NULL,
[Product_Image_1] [nvarchar](300) NULL,
[Product_Image_2] [nvarchar](300) NULL,
[Product_Image_3] [nvarchar](300) NULL,
[Updated_By] [nvarchar](50) NULL,
[Last_Updated] [datetime] NULL,
[IsActive] [bit] NULL)
REQUIREMENT 4:-
1. A product can have multiple varients and for
each varient product, price will differ.
2. A Product can have discount.
DBA Perspective:-
DBA proposed schema for product details
Table Schema for Varient Category:-
CREATE TABLE [dbo].
[M_Product_Varients]( [Id] [bigint] IDENTITY(1,1) NOT NULL,
[Varient_Name] [nvarchar](50) NULL,
[Varient_Description] [nvarchar](100) NULL,
[Updated_By] [nvarchar](50) NULL,
[Last_Update] [datetime] NULL,
[IsActive] [bit] NULL)
Table Schema for Values of Varient Category:-
CREATE TABLE [dbo].
[Product_Varient_Value]( [Id] [bigint] IDENTITY(1,1) NOT NULL,
[FK_Varient_Id] [bigint] NULL,
[Varient_Value] [nvarchar](50) NULL,
[Description] [nvarchar](max) NULL,
[Updated_By] [nvarchar](50) NULL,
[Last_Updated_Date] [datetime] NULL,
[IsActive] [bit] NULL)
The final query will be as follows:-
SELECT
Product.Product_Name, Product.Description, Product.Price, Product.SKU,
Product_Varient_Value.Varient_Value,Seller.Seller_Sub_Category,
Currency.Currency_Type,Price_Decision.Price_Decision_Factor,
Product.Availability_Count, Product.Percentage_Discount,
Product.Special_Offer_Price,Product.Special_Offer_Minimum_Quantity,
Product.Special_Offer_Maximum_Quantity,Product.Special_Offer_Discount_Factor,
Product.Minimum_Allowed_Buy_Quantity,Product.Maximum_Allowed_Buy_Quantity,
Subcategory.Product_Sub_Category,M_Product_Category.Product_Type FROM Product
INNER JOIN Product_Varient_Value ON Product.FK_Product_Varient =
Product_Varient_Value.Id Inner Join M_Seller_SubCategory Seller ON
Seller.Id=Product.FK_Seller_Id inner join M_Currency_Domiance Currency on
Currency.Id=Product.FK_Currency_Dominance inner join M_Price_Decision_Factor
Price_Decision ON Price_Decision.Id=Product.FK_Price_Decision_Factor inner join
M_Product_SubCategory Subcategory ON
Subcategory.Id=Product.FK_Product_Subcategory inner join M_Product_Category
M_Product_Category ON M_Product_Category.Id=Subcategory.FK_Product_Id Where
Product.IsActive=1
By this presentation we conclude that a DBA
has to manage all database in different-
different multiple lookups and all these
lookups are connected with foreign keys. It
not only helpful to manage database in an
appropriate manner, also reduce time of
query execution and provide all necessary
information to user in a short period.
Flipkart product management database model with dba perspective

More Related Content

What's hot

Flipkart Software requirements specification SRS
Flipkart Software requirements specification SRSFlipkart Software requirements specification SRS
Flipkart Software requirements specification SRSAman Goel
 
9. Object Relational Databases in DBMS
9. Object Relational Databases in DBMS9. Object Relational Databases in DBMS
9. Object Relational Databases in DBMSkoolkampus
 
Flipkart Software Requirements Specification (SRS)
Flipkart Software Requirements Specification (SRS)Flipkart Software Requirements Specification (SRS)
Flipkart Software Requirements Specification (SRS)Aman Goel
 
Jdbc architecture and driver types ppt
Jdbc architecture and driver types pptJdbc architecture and driver types ppt
Jdbc architecture and driver types pptkamal kotecha
 
Online grocery store
Online grocery storeOnline grocery store
Online grocery storeKavita Sharma
 
SRS For Online Store
SRS For Online StoreSRS For Online Store
SRS For Online StoreAhsan Rizwan
 
Library management system
Library management systemLibrary management system
Library management systemParesh Gosavi
 
E-commerce documentation
E-commerce documentationE-commerce documentation
E-commerce documentationSohel Parvez
 
Project report final
Project report finalProject report final
Project report finalJaya Saini
 
Super Market Management System
Super Market Management SystemSuper Market Management System
Super Market Management SystemShubham Singh
 
Introduction to Oracle Database
Introduction to Oracle DatabaseIntroduction to Oracle Database
Introduction to Oracle Databasepuja_dhar
 
Medical Store Management System Software Engineering Project
Medical Store Management System Software Engineering ProjectMedical Store Management System Software Engineering Project
Medical Store Management System Software Engineering Projecthani2253
 
Srs group 4 v5 - esmart shopping
Srs group 4  v5 - esmart shoppingSrs group 4  v5 - esmart shopping
Srs group 4 v5 - esmart shoppingadprojects1
 
e-commerce web development project report (Bookz report)
e-commerce web development project report (Bookz report)e-commerce web development project report (Bookz report)
e-commerce web development project report (Bookz report)Mudasir Ahmad Bhat
 
JDBC: java DataBase connectivity
JDBC: java DataBase connectivityJDBC: java DataBase connectivity
JDBC: java DataBase connectivityTanmoy Barman
 
ONLINE GROCERY STORE MANAGEMENT SYSTEM PPT
ONLINE GROCERY STORE MANAGEMENT SYSTEM PPTONLINE GROCERY STORE MANAGEMENT SYSTEM PPT
ONLINE GROCERY STORE MANAGEMENT SYSTEM PPTChetanBhandari14
 

What's hot (20)

EER modeling
EER modelingEER modeling
EER modeling
 
Flipkart Software requirements specification SRS
Flipkart Software requirements specification SRSFlipkart Software requirements specification SRS
Flipkart Software requirements specification SRS
 
9. Object Relational Databases in DBMS
9. Object Relational Databases in DBMS9. Object Relational Databases in DBMS
9. Object Relational Databases in DBMS
 
Flipkart Software Requirements Specification (SRS)
Flipkart Software Requirements Specification (SRS)Flipkart Software Requirements Specification (SRS)
Flipkart Software Requirements Specification (SRS)
 
Jdbc architecture and driver types ppt
Jdbc architecture and driver types pptJdbc architecture and driver types ppt
Jdbc architecture and driver types ppt
 
Sql ppt
Sql pptSql ppt
Sql ppt
 
Online grocery store
Online grocery storeOnline grocery store
Online grocery store
 
SRS For Online Store
SRS For Online StoreSRS For Online Store
SRS For Online Store
 
Library management system
Library management systemLibrary management system
Library management system
 
E-commerce documentation
E-commerce documentationE-commerce documentation
E-commerce documentation
 
Project report final
Project report finalProject report final
Project report final
 
Super Market Management System
Super Market Management SystemSuper Market Management System
Super Market Management System
 
Introduction to Oracle Database
Introduction to Oracle DatabaseIntroduction to Oracle Database
Introduction to Oracle Database
 
Database Triggers
Database TriggersDatabase Triggers
Database Triggers
 
Medical Store Management System Software Engineering Project
Medical Store Management System Software Engineering ProjectMedical Store Management System Software Engineering Project
Medical Store Management System Software Engineering Project
 
grocery management system
grocery  management systemgrocery  management system
grocery management system
 
Srs group 4 v5 - esmart shopping
Srs group 4  v5 - esmart shoppingSrs group 4  v5 - esmart shopping
Srs group 4 v5 - esmart shopping
 
e-commerce web development project report (Bookz report)
e-commerce web development project report (Bookz report)e-commerce web development project report (Bookz report)
e-commerce web development project report (Bookz report)
 
JDBC: java DataBase connectivity
JDBC: java DataBase connectivityJDBC: java DataBase connectivity
JDBC: java DataBase connectivity
 
ONLINE GROCERY STORE MANAGEMENT SYSTEM PPT
ONLINE GROCERY STORE MANAGEMENT SYSTEM PPTONLINE GROCERY STORE MANAGEMENT SYSTEM PPT
ONLINE GROCERY STORE MANAGEMENT SYSTEM PPT
 

Similar to Flipkart product management database model with dba perspective

Sql vs no sql diponkar paul-april 2020-Toronto PASS
Sql vs no sql   diponkar paul-april 2020-Toronto PASSSql vs no sql   diponkar paul-april 2020-Toronto PASS
Sql vs no sql diponkar paul-april 2020-Toronto PASSDiponkar Paul
 
Microsoft SQL Server Analysis Services (SSAS) - A Practical Introduction
Microsoft SQL Server Analysis Services (SSAS) - A Practical Introduction Microsoft SQL Server Analysis Services (SSAS) - A Practical Introduction
Microsoft SQL Server Analysis Services (SSAS) - A Practical Introduction Mark Ginnebaugh
 
PL/SQL New and Advanced Features for Extreme Performance
PL/SQL New and Advanced Features for Extreme PerformancePL/SQL New and Advanced Features for Extreme Performance
PL/SQL New and Advanced Features for Extreme PerformanceZohar Elkayam
 
Advanced PLSQL Optimizing for Better Performance
Advanced PLSQL Optimizing for Better PerformanceAdvanced PLSQL Optimizing for Better Performance
Advanced PLSQL Optimizing for Better PerformanceZohar Elkayam
 
Benefits of using MongoDB: Reduce Complexity & Adapt to Changes
Benefits of using MongoDB: Reduce Complexity & Adapt to ChangesBenefits of using MongoDB: Reduce Complexity & Adapt to Changes
Benefits of using MongoDB: Reduce Complexity & Adapt to ChangesAlex Nguyen
 
Kevin Bengtson Portfolio
Kevin Bengtson PortfolioKevin Bengtson Portfolio
Kevin Bengtson PortfolioKbengt521
 
Create column store index on all supported tables in sql server 2014 copy
Create column store index on all supported tables in sql server 2014    copyCreate column store index on all supported tables in sql server 2014    copy
Create column store index on all supported tables in sql server 2014 copyMustafa EL-Masry
 
Incremental View Maintenance with Coral, DBT, and Iceberg
Incremental View Maintenance with Coral, DBT, and IcebergIncremental View Maintenance with Coral, DBT, and Iceberg
Incremental View Maintenance with Coral, DBT, and IcebergWalaa Eldin Moustafa
 
Preparing for BIT – IT2301 Database Management Systems 2001g
Preparing for BIT – IT2301 Database Management Systems 2001gPreparing for BIT – IT2301 Database Management Systems 2001g
Preparing for BIT – IT2301 Database Management Systems 2001gGihan Wikramanayake
 
See sql server graphical execution plans in action tech republic
See sql server graphical execution plans in action   tech republicSee sql server graphical execution plans in action   tech republic
See sql server graphical execution plans in action tech republicKaing Menglieng
 
Columnstore improvements in SQL Server 2016
Columnstore improvements in SQL Server 2016Columnstore improvements in SQL Server 2016
Columnstore improvements in SQL Server 2016Niko Neugebauer
 
Star schema my sql
Star schema   my sqlStar schema   my sql
Star schema my sqldeathsubte
 
eBusiness Website Database Design
eBusiness Website Database DesigneBusiness Website Database Design
eBusiness Website Database DesignMeng (Meg) Wang
 
Write Faster SQL with Trino.pdf
Write Faster SQL with Trino.pdfWrite Faster SQL with Trino.pdf
Write Faster SQL with Trino.pdfEric Xiao
 
Microsoft MCSE 70-467 it exams dumps
Microsoft MCSE 70-467 it exams dumpsMicrosoft MCSE 70-467 it exams dumps
Microsoft MCSE 70-467 it exams dumpslilylucy
 
Analysis Services en SQL Server 2008
Analysis Services en SQL Server 2008Analysis Services en SQL Server 2008
Analysis Services en SQL Server 2008Eduardo Castro
 
BigdataConference Europe - BigQuery ML
BigdataConference Europe - BigQuery MLBigdataConference Europe - BigQuery ML
BigdataConference Europe - BigQuery MLMárton Kodok
 
Simplify Feature Engineering in Your Data Warehouse
Simplify Feature Engineering in Your Data WarehouseSimplify Feature Engineering in Your Data Warehouse
Simplify Feature Engineering in Your Data WarehouseFeatureByte
 

Similar to Flipkart product management database model with dba perspective (20)

Sql vs no sql diponkar paul-april 2020-Toronto PASS
Sql vs no sql   diponkar paul-april 2020-Toronto PASSSql vs no sql   diponkar paul-april 2020-Toronto PASS
Sql vs no sql diponkar paul-april 2020-Toronto PASS
 
Microsoft SQL Server Analysis Services (SSAS) - A Practical Introduction
Microsoft SQL Server Analysis Services (SSAS) - A Practical Introduction Microsoft SQL Server Analysis Services (SSAS) - A Practical Introduction
Microsoft SQL Server Analysis Services (SSAS) - A Practical Introduction
 
PL/SQL New and Advanced Features for Extreme Performance
PL/SQL New and Advanced Features for Extreme PerformancePL/SQL New and Advanced Features for Extreme Performance
PL/SQL New and Advanced Features for Extreme Performance
 
Advanced PLSQL Optimizing for Better Performance
Advanced PLSQL Optimizing for Better PerformanceAdvanced PLSQL Optimizing for Better Performance
Advanced PLSQL Optimizing for Better Performance
 
Benefits of using MongoDB: Reduce Complexity & Adapt to Changes
Benefits of using MongoDB: Reduce Complexity & Adapt to ChangesBenefits of using MongoDB: Reduce Complexity & Adapt to Changes
Benefits of using MongoDB: Reduce Complexity & Adapt to Changes
 
Kevin Bengtson Portfolio
Kevin Bengtson PortfolioKevin Bengtson Portfolio
Kevin Bengtson Portfolio
 
Create column store index on all supported tables in sql server 2014 copy
Create column store index on all supported tables in sql server 2014    copyCreate column store index on all supported tables in sql server 2014    copy
Create column store index on all supported tables in sql server 2014 copy
 
Session 2 django material for training at baabtra models
Session 2 django material for training at baabtra modelsSession 2 django material for training at baabtra models
Session 2 django material for training at baabtra models
 
Incremental View Maintenance with Coral, DBT, and Iceberg
Incremental View Maintenance with Coral, DBT, and IcebergIncremental View Maintenance with Coral, DBT, and Iceberg
Incremental View Maintenance with Coral, DBT, and Iceberg
 
Preparing for BIT – IT2301 Database Management Systems 2001g
Preparing for BIT – IT2301 Database Management Systems 2001gPreparing for BIT – IT2301 Database Management Systems 2001g
Preparing for BIT – IT2301 Database Management Systems 2001g
 
See sql server graphical execution plans in action tech republic
See sql server graphical execution plans in action   tech republicSee sql server graphical execution plans in action   tech republic
See sql server graphical execution plans in action tech republic
 
Columnstore improvements in SQL Server 2016
Columnstore improvements in SQL Server 2016Columnstore improvements in SQL Server 2016
Columnstore improvements in SQL Server 2016
 
Star schema my sql
Star schema   my sqlStar schema   my sql
Star schema my sql
 
eBusiness Website Database Design
eBusiness Website Database DesigneBusiness Website Database Design
eBusiness Website Database Design
 
Write Faster SQL with Trino.pdf
Write Faster SQL with Trino.pdfWrite Faster SQL with Trino.pdf
Write Faster SQL with Trino.pdf
 
Microsoft MCSE 70-467 it exams dumps
Microsoft MCSE 70-467 it exams dumpsMicrosoft MCSE 70-467 it exams dumps
Microsoft MCSE 70-467 it exams dumps
 
Analysis Services en SQL Server 2008
Analysis Services en SQL Server 2008Analysis Services en SQL Server 2008
Analysis Services en SQL Server 2008
 
BigdataConference Europe - BigQuery ML
BigdataConference Europe - BigQuery MLBigdataConference Europe - BigQuery ML
BigdataConference Europe - BigQuery ML
 
Simplify Feature Engineering in Your Data Warehouse
Simplify Feature Engineering in Your Data WarehouseSimplify Feature Engineering in Your Data Warehouse
Simplify Feature Engineering in Your Data Warehouse
 
Data warehousing
Data warehousingData warehousing
Data warehousing
 

Recently uploaded

100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptxAnupama Kate
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxJohnnyPlasten
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAroojKhan71
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxolyaivanovalion
 
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779Delhi Call girls
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxolyaivanovalion
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysismanisha194592
 
Data-Analysis for Chicago Crime Data 2023
Data-Analysis for Chicago Crime Data  2023Data-Analysis for Chicago Crime Data  2023
Data-Analysis for Chicago Crime Data 2023ymrp368
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxolyaivanovalion
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...amitlee9823
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfRachmat Ramadhan H
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...amitlee9823
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxolyaivanovalion
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...amitlee9823
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusTimothy Spann
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxolyaivanovalion
 

Recently uploaded (20)

(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptx
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptx
 
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptx
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysis
 
Data-Analysis for Chicago Crime Data 2023
Data-Analysis for Chicago Crime Data  2023Data-Analysis for Chicago Crime Data  2023
Data-Analysis for Chicago Crime Data 2023
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptx
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptx
 
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get CytotecAbortion pills in Doha Qatar (+966572737505 ! Get Cytotec
Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and Milvus
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFx
 

Flipkart product management database model with dba perspective

  • 1. Presentation by: Archana Jha (NI1302/075/15) Submitted to: Rani Ojha
  • 2.  Any E-commerce website data is their product.  Flipkart is an E- commerce website started in 2007 by Bansal brothers.  Now became India’s most visiting online shopping site.  A pool of multiple database which handled by DBA using Sql and NoSql databases.
  • 3.  Requirement Analysis for database designing using DBA’s perspective.  Testing of Designed Database.  Database for the “Product Section of Flipkart Website.
  • 4. Components of Flipkart Database:- 1. Customer Management 2. Product Management 3. Order Processing and Management 4. Shipment Management 5. Warehouse Management 6. Seller Management 7. Payment Management
  • 5. REQUIREMENT 1:- Products Should be categorized in Categories and Sub-Categories
  • 6.
  • 8. DBA Perspective:- Creation of separate lookup tables with one to one relationship for categories and sub- categories. Table Schema for Category:- CREATE TABLE [dbo]. [M_Product_Category]( [Id] [bigint] IDENTITY(1,1) NOT NULL, [Product_Type] [nvarchar](50) NOT NULL, [Description] [nvarchar](100) NULL, [Updated_By] [nvarchar](50) NULL, [IsActive] [bit] NULL, [Last_Updated_Date] [datetime] NULL)
  • 9. Table Schema for Sub-Category:- CREATE TABLE [dbo]. [M_Product_SubCategory]( [Id] [bigint] IDENTITY(1,1) NOT NULL, [FK_Product_Id] [bigint] NOT NULL, [Product_Sub_Category] [nvarchar](100) NULL, [Description] [nvarchar](200) NULL, [Updated_By] [nvarchar](50) NULL, [Last_Updated_Date] [datetime] NULL, [IsActive] [bit] NULL)
  • 10. REQUIREMENT 2:- 1. Product which is getting sold could be in KG, UNIT or LITRES or in Pound, etc... 2. Product can be sold in any kind of currency like be it in $, be it in EURO or INR, etc…
  • 11. DBA Perspective:- Expecting very less amount of data in this table for future so will just create two separate lookups. Table Schema for Unit Related:- CREATE TABLE [dbo]. [M_Price_Decision_Factor]( [Id] [bigint] IDENTITY(1,1) NOT NULL, [Price_Decision_Factor] [nvarchar](50) NULL, [Description] [nvarchar](500) NULL, [Updated_By] [nvarchar](50) NULL, [Last_Updated] [datetime] NULL, [IsActive] [bit] NULL)
  • 12. Table Schema for Currency Related:- CREATE TABLE [dbo]. [M_Currency_Domiance]( [Id] [bigint] IDENTITY(1,1) NOT NULL, [Currency_Type] [nvarchar](50) NULL, [Description] [nvarchar](200) NULL, [Updated_By] [nvarchar](50) NULL, [Last_Updated] [datetime] NULL, [IsActive] [bit] NULL)
  • 13. REQUIREMENT 3:- 1.Every product information should come up with its seller’s information. 2. Generalization at seller level in order to distinguish between different kind of sellers.
  • 14.
  • 15. 3. Every product information may contain maximum 5 images.
  • 16. DBA Perspective:- 1. Lookup table for seller category 2. Lookup table for sub-category of seller. 3. Lookup tables for pictures. Table Schema for Seller Category:- CREATE TABLE [dbo]. [M_Seller_Category]( [Id] [bigint] IDENTITY(1,1) NOT NULL, [Seller_Category] [nvarchar](100) NULL, [Description] [nvarchar](500) NULL, [Last_Updated] [datetime] NULL, [Updated_By] [nvarchar](100) NULL, [IsActive] [bit] NULL)
  • 17. Table Schema for Sub-Seller Category:- CREATE TABLE [dbo]. [M_Seller_SubCategory]( [Id] [bigint] IDENTITY(1,1) NOT NULL, [FK_Seller_Id] [bigint] NULL, [Seller_Sub_Category] [nvarchar](50) NULL, [Description] [nvarchar](200) NULL, [Updated_By] [nvarchar](50) NULL, [Last_Updated] [datetime] NULL, [IsActive] [bit] NULL)
  • 18. Table Schema for Picture Category:- CREATE TABLE [dbo]. [M_Product_Image_Details]( [Id] [bigint] IDENTITY(1,1) NOT NULL, [FK_Product_Id] [bigint] NOT NULL, [Product_Image_1] [nvarchar](300) NULL, [Product_Image_2] [nvarchar](300) NULL, [Product_Image_3] [nvarchar](300) NULL, [Updated_By] [nvarchar](50) NULL, [Last_Updated] [datetime] NULL, [IsActive] [bit] NULL)
  • 19. REQUIREMENT 4:- 1. A product can have multiple varients and for each varient product, price will differ. 2. A Product can have discount.
  • 20. DBA Perspective:- DBA proposed schema for product details
  • 21.
  • 22. Table Schema for Varient Category:- CREATE TABLE [dbo]. [M_Product_Varients]( [Id] [bigint] IDENTITY(1,1) NOT NULL, [Varient_Name] [nvarchar](50) NULL, [Varient_Description] [nvarchar](100) NULL, [Updated_By] [nvarchar](50) NULL, [Last_Update] [datetime] NULL, [IsActive] [bit] NULL)
  • 23. Table Schema for Values of Varient Category:- CREATE TABLE [dbo]. [Product_Varient_Value]( [Id] [bigint] IDENTITY(1,1) NOT NULL, [FK_Varient_Id] [bigint] NULL, [Varient_Value] [nvarchar](50) NULL, [Description] [nvarchar](max) NULL, [Updated_By] [nvarchar](50) NULL, [Last_Updated_Date] [datetime] NULL, [IsActive] [bit] NULL)
  • 24.
  • 25. The final query will be as follows:- SELECT Product.Product_Name, Product.Description, Product.Price, Product.SKU, Product_Varient_Value.Varient_Value,Seller.Seller_Sub_Category, Currency.Currency_Type,Price_Decision.Price_Decision_Factor, Product.Availability_Count, Product.Percentage_Discount, Product.Special_Offer_Price,Product.Special_Offer_Minimum_Quantity, Product.Special_Offer_Maximum_Quantity,Product.Special_Offer_Discount_Factor, Product.Minimum_Allowed_Buy_Quantity,Product.Maximum_Allowed_Buy_Quantity, Subcategory.Product_Sub_Category,M_Product_Category.Product_Type FROM Product INNER JOIN Product_Varient_Value ON Product.FK_Product_Varient = Product_Varient_Value.Id Inner Join M_Seller_SubCategory Seller ON Seller.Id=Product.FK_Seller_Id inner join M_Currency_Domiance Currency on Currency.Id=Product.FK_Currency_Dominance inner join M_Price_Decision_Factor Price_Decision ON Price_Decision.Id=Product.FK_Price_Decision_Factor inner join M_Product_SubCategory Subcategory ON Subcategory.Id=Product.FK_Product_Subcategory inner join M_Product_Category M_Product_Category ON M_Product_Category.Id=Subcategory.FK_Product_Id Where Product.IsActive=1
  • 26. By this presentation we conclude that a DBA has to manage all database in different- different multiple lookups and all these lookups are connected with foreign keys. It not only helpful to manage database in an appropriate manner, also reduce time of query execution and provide all necessary information to user in a short period.