Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Nevermind the other one, this is simpler
Message
From
21/09/2006 20:06:24
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
21/09/2006 16:52:41
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01156202
Message ID:
01156236
Views:
20
This message has been marked as the solution to the initial question of the thread.
>
>
>MyNumericField     MyMemoField
>
>1                  Blah
>2                  BlahBlah
>2                  BlahBlah
>3                  BlahBlahBlah
>
>I only want:
>
>1                  Blah
>2                  BlahBlah
>3                  BlahBlahBlah
>
>But I can't group by a memo field, so how can I get this to work:
>
>SELECT MyNumericField, MyMemoField FROM MyTable INTO MyCursor
>
>
Raphael's reply to previous one would stand:)
Something like:
select distinct myNumericField from myTable into cursor crsTemp 
&& from your original SQL only memo field is removed

select tmp.*,myMemoField ;
 from myTable inner join crsTemp tmp on myTable.myNumericField = tmp.myNumericField ;
 into cursor myCursor [readwrite]
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform