Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help me with SQL
Message
 
 
To
01/08/2001 11:43:10
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00538338
Message ID:
00538362
Views:
9
SELECT ;
     IIF( ISNULL(Inward.Itemcode), Outward.Itemcode, Inward.Itemcode) AS Itmecode, ;
     IIF( ISNULL(Inward.Itemcode), Outward.date, Inward.date) AS date, ;
     NVL(Inward.Qantity, 0)  AS Inward, ;
     NVL(Outward.Qantity, 0) AS Outward ;
  FROM Inward ;
  FULL OUTER JOIN Outward on Inward.Itemcode = Outward.Itemcode 
>I have two views
>1. Inward register
> fields itemcode, date, quantity
>2. Outward register
> fields itecode, date, quantity
>
>Iwant to create a third view from the above two which is of format
>
>Stock register
> Fields Itemcode, Date , Inward, Outward.
>
>IS it possible using SQL statement of whould go in for usal programming method
>Rajesh
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform