Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
List of valid apps
Message
From
11/08/2004 16:22:30
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
List of valid apps
Miscellaneous
Thread ID:
00932479
Message ID:
00932479
Views:
37
Hi all,
Can I create a single SQL-statement based on conditions below?
* I have the following tables:
create cursor apps_ (appid i, appname c(10))
insert into apps_ values (1,"AppV1") && version 1 of app1
insert into apps_ values (2,"OtherApp")
insert into apps_ values (3,"Yetanother")
insert into apps_ values (4,"AppV2") && version 2 of app1
create cursor modules_ (moduleid i, appid i, modulename c(10))
insert into modules_ values (1,1,"Demand Module") && app version 1, demand module
insert into modules_ values (2,4,"Demand Module") && app version 2, demand module
insert into modules_ values (3,1,"Inv Module")    && app version 1, inv module
insert into modules_ values (4,4,"Inv Module")    && app version 2, inv module

* Given: ModuleName = 'Inv Module' OR ModuleID = 3
* Can I create a single query to give me the following result:
*   appid, appname
*       1  "AppV1"
*       4  "AppV2
ramil
~~ learning to stand still
Next
Reply
Map
View

Click here to load this message in the networking platform