Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help me write a select sql statement
Message
De
19/08/2000 02:39:20
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
18/08/2000 20:24:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00406948
Message ID:
00406986
Vues:
15
>I have the following tables:
>
>1. Customers.Customerid (inner join) Products.Customerid
>2. Customers.Addressid (inner join) Address.Addressid
>3. Customers.Customerid (inner join) invoices.invoiceid
>4. Invoices.Invoiceid (inner join) invdetail.invoiceid
>
>I would like to create a cursor where "Invoice.cTypd = 'EST'"


select * ;
 from FORCE Customers a ;
    inner join Products b on a.CustomerId = b.CustomerId ;
    inner join Address c on a.AddressId = c.AddressId ;
    inner join Invoices d on a.CustomerId = d.CustomerId ;
    inner join Invdetail e on d.InvoiceId = e.InvoiceId ;
 where d.cTypd = 'EST' ;
 into cursor myCursor
2. Customers.Addressid (inner join) Address.Addressid
3. Customers.Customerid (inner join) invoices.invoiceid
questionable on connecting expressions (of course might be exactly like that).
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