Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Statement that always returns a record
Message
From
08/11/1999 11:19:23
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
SQL Statement that always returns a record
Miscellaneous
Thread ID:
00288450
Message ID:
00288450
Views:
63
Hello All,

I am trying to write a SQL statement that will ALWAYS return a record (as shown in the last line below) as well as any additional records that fit the WHERE statement. I thought the UNION statement would do the trick but I can't get it to work.


myquery="SELECT name, dob, sex FROM contacts ;
WHERE contacts.id = current.id UNION ;
Select 'Billy', CTOD('02/02/1974'), 1 INTO CURSOR names"

Any ideas?

Thanks,
Greg
Next
Reply
Map
View

Click here to load this message in the networking platform