Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Use Sql in one time
Message
 
 
To
23/02/2006 20:06:03
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01098751
Message ID:
01099278
Views:
16
Hi Paul,

There's a problem with your TaxesTable design. It niether has a primary key nor it has a conbination of fields that can be used as a primary key.


>
>I have 3 tables :
>
>Mastertable
>batchno
>
>11111
>22222
>33333
>44444
>
>Detailtable:
>Batchno Price product
>
>11111 1000 01
>22222 2000 02
>11111 1500 03
>22222 2500 04
>
>TaxesTable :
>Batchno Tax product
>
>11111 10 01
>11111 20 01
>11111 30 03
>11111 40 03
>22222 10 02
>22222 20 02
>22222 30 04
>22222 40 04
>
>How to create a SQL command to get the result as :
>
>batchno product price tax1 tax2 total(Price + Tax )
>11111 01 1000 10 20 1030
>11111 03 1500 30 40 1570
>
>22222 02 2000 10 20 2030
>22222 04 2500 30 40 2570
>
>............................................
>............................................
>
>Tia
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform