Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
View or Sql? How do i do this...?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00398920
Message ID:
00398979
Vues:
11
>Nick,
>
>Not sure of one more thing:
>
>
>The Inventory table has RecordId and Description fields.
>
>The Order_Items has a foreign key into Inventory. Its a One-To-Many,
>Order_Items.ItemId -> Inventory.RecordId.
>

So, you want the description from Inventory table to be in your Order_Items view, right?
According to this it should be:

CREATE SQL VIEW v_items AS ;
SELECT ORDER_ITEMS.* , Inventory.Description ;
FROM ORDER_ITEMS ;
INNER JOIN inventory ;
ON Order_Items.ItemId = Inventory.RecordId;
WHERE ORDER_ITEMS.ParentId = ?cCustomerId
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform