SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseSQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old May 26th, 2004, 04:36 PM
s.ellett s.ellett is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: Axminster, Devon
Posts: 7 s.ellett User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 m 12 sec
Reputation Power: 0
Talking SQL Grouping problem!

Hi

I am working on a simple database for a local skatepark, and there are two reports I am struggling with. The first is a report which details the parks members, it currently counts all the members and groups them by postcode the problem with this is that the entire postcode (eg EX12 5RT) is to specific they would prefer the groups to be based in the first three or four digits (eg EX2 or EX12) of the postcode any ideas on how to do this would be grately recieved.

The second problem is that they would like a list of the top 10 members with the most visits, the amount of visits for each member is held in a table it is purely the problem of getting the top 10??

The reports are currently based on 2 queries and their running on Access 2002

Any help for a newbie would be very much appreciated

Cheers
Simon

Reply With Quote
  #2  
Old May 26th, 2004, 06:09 PM
sbaxter sbaxter is offline
Moderator: Access, SQL
ASP Free God (5000 - 5499 posts)
 
Join Date: Oct 2003
Posts: 5,126 sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 1 h 2 m 51 sec
Reputation Power: 13
USe the LEFT function to trim the postal code down to 3 or 4

S-

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseSQL Development > SQL Grouping problem!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT