Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data Shaping with three tables..
Message
De
28/10/2003 14:22:43
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
28/10/2003 13:25:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00843662
Message ID:
00843704
Vues:
21
>Hi,
>Can anyone give me the syntax to setup a table with more than 1 level
>of hierarchy in a data shape for example:
>
>--this works perfect!!
>strSh = "SHAPE {SELECT distinct moc001 FROM styles} "+;
> "APPEND ({SELECT moc001,moc002,mon001 FROM styles} "+;
> " AS CollectStyles RELATE moc001 TO moc001)"
>
>
>--need to add another level...this attempt doesnt work...
>strSh = "SHAPE {SELECT distinct moc001 FROM styles} "+;
> "APPEND (SHAPE {select distinct moc002 from styles}"+;
> "APPEND ({SELECT moc001,moc002,mon001 FROM styles}) "+;
> "RELATE moc001 TO moc001)"
>
>--Maybe one more level?
>
>What I would like to get is
>
>+MOC001
> +MOC002
> +other values
>
>FYI the database is oracle,db2 or sqlserver..
>
>BR
>Tim

Tim,
Do a search for HierarchicalFlexGrid and I can assure you'd find samples with 'select ...' and the easier 'table' :)
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