Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use this in select - SQL
Message
De
30/03/2006 00:36:07
Mk Sharma
Shrishti Solutions
Mumbai, Inde
 
 
À
28/03/2006 06:55:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01108273
Message ID:
01109058
Vues:
25
thank you sir,
i got solution
SELECT Sales1.* ;
FROM Sales1 ;
INNER JOIN selsal on Sales1.BillNo = selsal.billno ;
INNER JOIN pcode1 on Sales1.pcode = pcode1.pcode ;
INNER JOIN igroup on pcode.igroup = igroup.igroup ;
WHERE selsa.sels = "Y" ;
AND igroup.selg = "Y" ;
AND between(sales1.billdate,mydate,Mydate1) ;
INTO TABLE tsales1
please help me for below code in select-sql :
mydate=ctod("01/01/2006")
mydate1=ctod("28/02/2006")
sele a
use igroup
inde on igroup for selg='Y' to selig

igcond='.t.'
sele igroup
goto top
if !eof()
   igcond="found('igroup')"
endif

sele b
use pcode1
set rela to igroup into igroup addi
inde on pcode for &igcond to selpc
pcond='.t.'
sele pcode1
goto top
if !eof()
   pcond="found('pcode1')"
endif

sele c
use selsal
inde on billno for sels='Y' to selbill

selcond='.t.'
sele selsal
goto top
if !eof()
   slecond="found('selsal')"
endif

use sales1
set order to billdate
set rela to billno into selsal addi
set rela to pcode into pcode1 addi

seek mydate
copy to tsales1 for &selcond and &pcond WHILE BILLDATE<=MYDATE1
SELE F
USE TSALES1
please help me.

WARM REGARDS,
MK.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform