Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL query with set deleted problem
Message
De
16/08/2006 10:00:38
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
SQL query with set deleted problem
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01145987
Message ID:
01145987
Vues:
67
Hi,

I have a form with Privatye data sesion.

So set deleted is off.
Also set engine behaviour is 70
I have a local view in data enviroment with following SQL

SELECT Artikli.artid, Artikli.sifra, Artikli.naziv, Artikli.cena_malo,;
Stavki.artid, NVL(Stavki.cena_sd,0) AS cena_sd_1,;
NVL(SUM(Stavki.kolicina),0) AS zbirno;
FROM ;
POPIS!ARTIKLI ;
LEFT OUTER JOIN POPIS!STAVKI ;
ON Artikli.artid = Stavki.artid;
WHERE Stavki.popisid = ( ?pnpopisid );
GROUP BY Artikli.artid;
ORDER BY Artikli.sifra

It works just one problem. It retrives deleted marked records from tables.

I know that solution is to put SET deleted on in Before open tables, but it is not posible in the situation (to many forms to change, somebody before me hasn't probably heard of using derived classes...).

So how to change the SQL statement to get rid of deleted records.

Thanks
Vladimir Martinovski
VCS Software Inc.
"May the FOX be with You"
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform