SlideShare a Scribd company logo
1 of 2
MODELO RELACIONAL
                                                  PRODUCTOS
CODIGO      NOMBRE        MARCA        PRECIO          USO           CANTIDAD     UNIDAD        STOCK       ID_EMPRESA
Int (10)   VarChar(20) VarChar(20) Doublé (10) VarChar(20)            Int(10)   VarChar(15)     Int(10)        Int(10)
  PK                                                  NULL                                       NULL        FK NULL
                                                    On delete                                  On delete      On delete
Not Null     Not Null     Not Null     Not Null      Set Null        Not Null    Not null       Set Null       Set Null
125684      NEGRITO        BIMBO     $       5.00 ALIMENTICIO          62        GRAMOS           15            1237
125685       FANTA      COCA-COLA $          9.00 ALIMENTICIO         600       MILILITROS        50            1238
125686      MIRINDA        PEPSI     $       8.50 ALIMENTICIO         600       MILILITROS        60            1239
125687     EMPERADOR      GAMESA     $       7.00 ALIMENTICIO         101        GRAMOS           15            1240
125688     GARRAFON BONAFONT $             21.00 ALIMENTICIO           20         LITROS           9            1241
  0 -9      A – Z /a –z  A – Z /a –z    $ 0 -9     A – Z /a –z        0-9       A – Z /a –z      0-9            0-9




                                                           PROVEEDOR
                                                                                                              HORA DE     HORA DE
  ID        NOMBRE        A. PAT.       A. MAT.         CALLE          NUM       COLONIA      TELEFONO
                                                                                                             APERTURA      CIERRE
Int (10)   VarChar(20) VarChar(20) VarChar(20) VarChar(50) VarChar(20) VarChar(50) VarChar(20) VarChar(15) VarChar(20)
                                                                                    On delete
  PK                                                        Set default              Set null
Not Null     Not Null    Not Null    Not Null    Not Null     "S/N"      Not Null     Null       Not Null    Not Null
                                                  Calzada
                                                                                San Lorenzo
 1237       ALBERTO      QUIZAMAN      ALTAMIRA Adolfo Lopez          "S/N"                 238-3820017      08:00 a.m.   08:00 p.m.
                                                                                 Teotipilco
                                                  Mateos
            ANA LUZ      GONZALEZ       CASTRO         Ave. Via                 San Rafael
 1238                                                                  2623                   238-3825126    08:00 a.m.   08:00 p.m.
                                                        Puebla
                                                     Carr. Federal    "S/N"      San Pablo
 1239      APOLINAR       QUIROZ       CAMACHO        Tehuacan-                 Tepetzingo    238-3740696    08:00 a.m.   08:00 p.m.
                                                      Teotitlan
                                                     Carr. Federal    "S/N"     San Nicolas
 1240       ALONSO         PEREZ         REYES        Tehuacan-                  Tetizintla   238-3826060    08:00 a.m.   08:00 p.m.
                                                       Orizaba
                                                     Carr. Federal
 1241       ANTONIO      MIRANDA        RIVERA        Tehuacan-       "S/N"     Los Angeles 238-2661214      08:00 a.m.   08:00 p.m.
                                                        Puebla
                                                      LISTA DE                  LISTA DE                     12:00 a.m.   12:00 a.m.
 0-9       A – Z /a –z   A – Z /a –z   A – Z /a –z                     0-9                       0-9
                                                       CALLES                   COLONIAS                     12:00 p.m.   12:00 p.m.
MODELO RELACIONAL




                   COMPRA                                               CLIENTE
                            FECHA DE
    ID       TOTAL_PAGO
                             COMPRA
                                        N° CLIENTE       N° CLIENTE     NOMBRE           TELEFONO
   Int(10)   Doublé(10)       Date       Int (10)         Int (10)    VarChar(15) VarChar(15)
                                                                                   On delete
    PK                                     FK               PK                      Set null
  Not Null     Not null      Not Null    Not Null         Not Null     Not Null       null
     1       $     45.00   07/02/2013       1                1        venta al publico 238-1175556
     2       $     54.00   08/02/2013       2                2        venta al publico 238-1175556
     3       $ 170.00      09/02/2013       3                3        venta al publico 238-1175556
     4       $ 105.00      10/02/2013       4                4        venta al publico     null
     5       $     63.00   11/02/2013       5                5        venta al publico 238-1175556
                            1/1/1900                                     Venta al
   0-9         $0-9                                         0-9                            0-9
                           31/12/2040                                    publico




             TENER
CODIGO_PRO. ID_COMPRA      CANTIDAD
   Int(10)    Int(10)       Int(10)

    FK           FK           PK

  Not Null    Not Null      Not Null
  125684         1             8
  125685         2             6
  125686         3            20
  125687         4            15
  125688         5             3
   0-9         0-9           0-9

More Related Content

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Modelo relacional

  • 1. MODELO RELACIONAL PRODUCTOS CODIGO NOMBRE MARCA PRECIO USO CANTIDAD UNIDAD STOCK ID_EMPRESA Int (10) VarChar(20) VarChar(20) Doublé (10) VarChar(20) Int(10) VarChar(15) Int(10) Int(10) PK NULL NULL FK NULL On delete On delete On delete Not Null Not Null Not Null Not Null Set Null Not Null Not null Set Null Set Null 125684 NEGRITO BIMBO $ 5.00 ALIMENTICIO 62 GRAMOS 15 1237 125685 FANTA COCA-COLA $ 9.00 ALIMENTICIO 600 MILILITROS 50 1238 125686 MIRINDA PEPSI $ 8.50 ALIMENTICIO 600 MILILITROS 60 1239 125687 EMPERADOR GAMESA $ 7.00 ALIMENTICIO 101 GRAMOS 15 1240 125688 GARRAFON BONAFONT $ 21.00 ALIMENTICIO 20 LITROS 9 1241 0 -9 A – Z /a –z A – Z /a –z $ 0 -9 A – Z /a –z 0-9 A – Z /a –z 0-9 0-9 PROVEEDOR HORA DE HORA DE ID NOMBRE A. PAT. A. MAT. CALLE NUM COLONIA TELEFONO APERTURA CIERRE Int (10) VarChar(20) VarChar(20) VarChar(20) VarChar(50) VarChar(20) VarChar(50) VarChar(20) VarChar(15) VarChar(20) On delete PK Set default Set null Not Null Not Null Not Null Not Null Not Null "S/N" Not Null Null Not Null Not Null Calzada San Lorenzo 1237 ALBERTO QUIZAMAN ALTAMIRA Adolfo Lopez "S/N" 238-3820017 08:00 a.m. 08:00 p.m. Teotipilco Mateos ANA LUZ GONZALEZ CASTRO Ave. Via San Rafael 1238 2623 238-3825126 08:00 a.m. 08:00 p.m. Puebla Carr. Federal "S/N" San Pablo 1239 APOLINAR QUIROZ CAMACHO Tehuacan- Tepetzingo 238-3740696 08:00 a.m. 08:00 p.m. Teotitlan Carr. Federal "S/N" San Nicolas 1240 ALONSO PEREZ REYES Tehuacan- Tetizintla 238-3826060 08:00 a.m. 08:00 p.m. Orizaba Carr. Federal 1241 ANTONIO MIRANDA RIVERA Tehuacan- "S/N" Los Angeles 238-2661214 08:00 a.m. 08:00 p.m. Puebla LISTA DE LISTA DE 12:00 a.m. 12:00 a.m. 0-9 A – Z /a –z A – Z /a –z A – Z /a –z 0-9 0-9 CALLES COLONIAS 12:00 p.m. 12:00 p.m.
  • 2. MODELO RELACIONAL COMPRA CLIENTE FECHA DE ID TOTAL_PAGO COMPRA N° CLIENTE N° CLIENTE NOMBRE TELEFONO Int(10) Doublé(10) Date Int (10) Int (10) VarChar(15) VarChar(15) On delete PK FK PK Set null Not Null Not null Not Null Not Null Not Null Not Null null 1 $ 45.00 07/02/2013 1 1 venta al publico 238-1175556 2 $ 54.00 08/02/2013 2 2 venta al publico 238-1175556 3 $ 170.00 09/02/2013 3 3 venta al publico 238-1175556 4 $ 105.00 10/02/2013 4 4 venta al publico null 5 $ 63.00 11/02/2013 5 5 venta al publico 238-1175556 1/1/1900 Venta al 0-9 $0-9 0-9 0-9 31/12/2040 publico TENER CODIGO_PRO. ID_COMPRA CANTIDAD Int(10) Int(10) Int(10) FK FK PK Not Null Not Null Not Null 125684 1 8 125685 2 6 125686 3 20 125687 4 15 125688 5 3 0-9 0-9 0-9