Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sobre Grade de Produtos
Message
From
17/05/2003 15:33:14
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
17/05/2003 15:23:40
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00789722
Message ID:
00789733
Views:
33
>Entendi
>
>+ ou - uma tabela assim
>
>
>produto.dbf
>codigo, descrição, qtd, preço
>
>001001 - Sapato Nike - 10 - 75,00
>
>
>chamada grade.dbf
>
>
>produto, grade, tamanho, cor, qtd
>
>001001 , 001, 37, Preto, 2
>001001 , 001, 38, Preto, 1
>001001 , 001, 37, Branco, 3
>001001 , 001, 38, Branco, 3
>001001 , 001, 39, Azul , 1
>
>total 10 sapatos, é isso ? esta tabela é apenas demonstrativa ?

Podería ser. Também podería ter tres tabelas, com tres nívels 1) só produtos, 2) separado por cores 3) separado por cores e números.

Ou, podería ter uma tabela des-normalizada, com varios campos para os diferentes cores (ou números).

Porem, acho que as duas tabelas que vocé propone são apropiadas - se precissar um total separado só por cores ou só por números, pode fazerlo num reporte.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform