Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help me write a select sql statement
Message
From
19/08/2000 02:39:20
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
18/08/2000 20:24:01
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00406948
Message ID:
00406986
Views:
14
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform