Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SELECT - SQL
Message
De
11/01/2000 11:17:35
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
11/01/2000 10:15:12
John Vlahos
V I Software Solutions Design
Mississauga, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00316166
Message ID:
00316239
Vues:
16
>Hi Everyone,
>
>I would like to display within a grid information pertaining to a specific item number.
>
>I have the following four tables.
>
>Sales Order, Sales Order Items, Customer File and the Item File
>
>I would like to display within the grid ALL sale order items from the Sales Order Items table, for a specific item, regardless of the sales order they belong to. It will represent the history of any given item number.
>
>With the above display, I would like for each sale order item line found, to display the CUSTCODE, customer who placed the order, which is in the parent Sales Order table, and the CUSTNAME which is stored in the Customer table, and the Item Name which is stored in the Item table.
>
>Can I do this with one SELECT-SQL statement?
>
>Thanks in advance!


Yes you could John.
This pretty much resembles testdata.dbc's, customer, orders, orditems and products table joining :) There is a sample view in testdata.dbc doing it. Open the view in designer and check SQL syntax.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform