Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GROUP BY clause is missing or invalid (FoxPro OLEDB)
Message
From
18/11/2004 11:21:09
 
 
To
All
General information
Forum:
ASP.NET
Category:
ADO.NET
Title:
GROUP BY clause is missing or invalid (FoxPro OLEDB)
Environment versions
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00962667
Message ID:
00962667
Views:
194
Hi,
I have table where order info and order details placed to one table. Its de-normalize table structure. I'd like to get list of unique orders from there (interne_nr - orderID)

my code is
lcSQL = "SELECT mkstech_arbzeit.interne_nr," & _
    "mkstech_arbzeit.benutzer, " & _
    "mkstech_arbzeit.status," & _
    "mkstech_arbzeit.descr," & _
    "mkstech_arbzeit.datum," & _
    "mkstech_kunden.kurzbez" & _
      " FROM mkstech_arbzeit INNER JOIN mkstech_kunden ON " & _
      " mkstech_arbzeit.kundnr=mkstech_kunden.kundnr " &
      " GROUP BY 1 " & _
      " ORDER BY 1 "

     Dim loConnection As OleDbConnection
     Dim loCommand As OleDbCommand
     loConnection = Me.mmks_getconnection()
     loCommand = New OleDbCommand(lcSQL, loConnection)
     loConnection.Open()
     Dim loDataReader As OleDbDataReader = loCommand.ExecuteReader()
Last line return me error GROUP BY clause is missing or invalid

Any ideas how can I get the unique list of orders?
Notes:
Using VFP OLEDB Provider.

Thanks.
Denis.
Next
Reply
Map
View

Click here to load this message in the networking platform