Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Crear una Consulta
Message
From
22/11/2006 14:22:17
John Baird
Coatesville, Pennsylvania, United States
 
 
To
22/11/2006 14:02:29
Luis Parada
Prosoft´s de Venezuela, C.A.
Valencia, Venezuela
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 7.0
Miscellaneous
Thread ID:
01171882
Message ID:
01171895
Views:
9
This message has been marked as a message which has helped to the initial question of the thread.
Translation:

I am creating an administrative system (multi-company) in VFP 9.0 using SQL Server 2000 as the back end database. We have a table called "Articles" which lists all of the existing products for the companies, identified by the key "Id_empressa". The structure of the table is as follows:
    Id_registro N(9,0)
    Id_empresa  N(9,0)
    Id_articulo N(9,0)
    codigo      C(6)
    Nombre      C(100)
    grupo       C(6)
   Existencia  N(9,0)
These are just some of the fields, there are 26 in total.

My question is:
How can I create a cursor which shows all of the articles in a specic group and the count of all articles in an existing code within specific companies and also show, in the same cursor, those articles which appear in the same group but are not found in the companies list of articles.


>Muy Buenas Tardes.
>Estoy realizando un sistema administrativo (Multiempresa) en Visual Foxpro 9.0 con motor de Bases de Datos SQL SERVER 2000, Tenemos una tabla llamada "ARTICULOS" en donde se introducen todos los productos de las empresas existente, logicamente diferenciada por el "ID_Empresa". Dicha estructura de la tabla es la siguiente:
>Id_registro N(9,0)
>Id_empresa N(9,0)
>Id_articulo N(9,0)
>codigo C(6)
>Nombre C(100)
>grupo C(6)
>Existencia N(9,0)
>(Estos son algunos campos) son 26 campos en total
>
>Mi pregunta es la siquiente:
>
>Como hago para crear una consulta (SELECT ó CURSOR), en donde me muestre todos los articulos de un grupo específico y que me sumen las existencia de los articulos del mismo codigo que se encuentren en las distintas empresas, y ademas q me muestre en la misma consulta (SELECT ó CURSOR), los articulos que pertenecen al mismo grupo pero que no se encuentre en las demas empresas.
>
>Muchas gracias de antemano.
Previous
Reply
Map
View

Click here to load this message in the networking platform