Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Community Discussions (All other subjects)
 Select and Group By
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

kefka1911
Starting Member

Canada
8 Posts

Posted - 29 October 2004 :  11:10:16  Show Profile  Send kefka1911 an AOL message
This is my Select Statment for my Webpage.
Sql = "select SUBJECTS, ORG_LEVEL_1, RECORD_OWNER, DELETION_DATE "_
& "from XML_EXPORT "_
& "order by SUBJECTS;"

I want to use the GROUP BY Clause to Group my Subjects togeather.
When I try adding the line (group by SUBJECTS)
I get this error.
"You tried to execute a query that does not include the specified expression 'ORG_LEVEL_1' as part of an aggregate function. " What should I do?

Edited by - ruirib on 29 October 2004 15:25:16

Podge
Support Moderator

Ireland
3776 Posts

Posted - 29 October 2004 :  13:23:41  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
Stab in the dark.

Try this;

Sql = "select SUBJECTS, ORG_LEVEL_1, RECORD_OWNER, DELETION_DATE "_
& "from XML_EXPORT "_
& "group by SUBJECTS, ORG_LEVEL_1, RECORD_OWNER, DELETION_DATE " _
& "order by SUBJECTS;"

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.

Edited by - Podge on 29 October 2004 13:56:53
Go to Top of Page

kefka1911
Starting Member

Canada
8 Posts

Posted - 29 October 2004 :  14:54:27  Show Profile  Send kefka1911 an AOL message
What good does that do me, it doesn't do any actual grouping, I want to group all like Subjects togeather so I don't have any duplicates
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 29 October 2004 :  15:24:32  Show Profile  Send ruirib a Yahoo! Message
kefka1911, this forum is for posts related to Snitz problems while using Access DBs. All other posts should be made in the Community Discussions forums (either ASP or All Other Subjects).

I'm moving this post to the proper forum.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

sr_erick
Senior Member

USA
1318 Posts

Posted - 29 October 2004 :  17:31:33  Show Profile  Visit sr_erick's Homepage  Send sr_erick a Yahoo! Message
select distinct(SUBJECTS), ORG_LEVEL_1, RECORD_OWNER, DELETION_DATE
from XML_EXPORT
group by ORG_LEVEL_1, RECORD_OWNER, DELETION_DATE




Erick
Snowmobile Fanatics

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.24 seconds. Powered By: Snitz Forums 2000 Version 3.4.07