Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Memo Field SQL causing problems
Message
 
To
21/09/2006 15:58:15
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01156178
Message ID:
01156215
Views:
27
This message has been marked as the solution to the initial question of the thread.
>Lots of records in iAccts with a unique field of Acct_ID. I need to get the four fields from the other tables, but only if they are contained in the iAccts table. The Disclosure field is a memo. The SQL will not allow me to use DISTINCT or GROUP BY. Do I need to do a nested SQL to get this? Sometimes I hate the ENGINEBEHAVIOR 80, but I have to use it.
>
>
>
>SELECT DISTINCT ;
>	00000 AS FootNote, ;
>	FundDisclosures.DiscID, ;
>	DisclosureList.disctitle, ;
>	DisclosureList.disclosure ;
>	FROM D:\Development\2434_Disclaimer\iAccts ;
>	JOIN D:\Development\2434_Disclaimer\FundDisclosures ON FundDisclosures.Acct_ID == iAccts.Acct_ID ;
>	JOIN D:\Development\2434_Disclaimer\DisclosureList ON DisclosureList.discid == FundDisclosures.discid ;
>	INTO CURSOR crsFundDisclaimers READWRITE
>
personally, I'm a believer in chunking SQL queries when they get too complicated for me to do in an hour :)

How about dividing the task into 2, using temp tables and then do a SQL on the 2 temps ?
Previous
Reply
Map
View

Click here to load this message in the networking platform