Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
View to Select Union
Message
From
24/10/2003 13:43:00
 
 
To
All
General information
Forum:
ASP.NET
Category:
Databases
Title:
View to Select Union
Miscellaneous
Thread ID:
00842327
Message ID:
00842327
Views:
54
From a DataSet, I have dumped everything into a view. So, I have this:
      ' Get it into a view
      Dim loView As DataView
      loView = loData.Tables("Temp").DefaultView
This view contains fields such as Speaker1, Speaker2 and Speaker3. So, for each meeting, there can be up to three speakers.

Now, I need to take that and select everything, by the use of union, into one view which will list all speakers. In VFP, I would do something like this:
SELECT Speaker1 AS Speaker From Temp WHERE SpeakerID1>0;
 UNION;
 SELECT Speaker2 AS Speaker From Temp WHERE SpeakerID2>0;
 UNION;
 SELECT Speaker3 AS Speaker From Temp WHERE SpeakerID3>0;
 INTO CURSOR Temp2
How would I go from the VB.NET code, with the view, to obtain this?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform