Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
ilimax
Posting Yak Master
164 Posts |
Posted - 2005-04-20 : 17:46:33
|
| This query works fine in MS Access but does not work under ADO-VB 6SELECT Item1, First(Item2) AS FirstOfItem2, Sum(Item3) AS SumOfItem3, Item4FROM Table2GROUP BY Item1, Item4;So, this Item2 should be picked up first in grouping (or any of, in grouping )....Is there any different grouping option in query in ADO-VB6 I can use instead of "First"? |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2005-04-20 : 19:43:28
|
| What is first? It would be processing dependent so could vary from run to run.use min or max.==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
ilimax
Posting Yak Master
164 Posts |
Posted - 2005-04-21 : 10:35:45
|
| What I acctually whant here ... group by Item1 and Item4, summirize Item3, but I do not want grouping by Item2 even if is different. |
 |
|
|
|
|
|