ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

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 Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old July 13th, 2003, 06:50 PM
bews bews is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Australia
Posts: 13 bews User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
searching results from a search

I'm just wondering if i can do the following

I have a mdb file with the fields Country, Name, Date. The data when filled out would like like this

Australia - John - 21/7/02
Australia - Bill - 22/7/02
Australia - wendy - 23/7/02
Usa - Geoff - 23/7/02
Usa - Bill - 23/8/02

What i need to do is a search on the name "Bill" but only search on the latest records added to the database for each Country (by date) and return a result that matches "Bill".

I currently have a search set up that does an outter and inner search but it searches for anything matching "Bill" and then returns the latest records for anything that its matched (so i get results for Australia because its found a bill record but it displays the latest record for wendy)

any help or directions for me to continue my search would be greatly appreciated

Reply With Quote
  #2  
Old July 13th, 2003, 10:35 PM
victorpendleton victorpendleton is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2003
Location: No es importante
Posts: 2,065 victorpendleton User rank is Private First Class (20 - 50 Reputation Level)victorpendleton User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 6 h 31 m 56 sec
Reputation Power: 8
Search for the name where max(date) and limit the result set to one record. If you are using ROWCOUNT n in MS SQL
or Limit n in MySQL. What DBMS are you using?

Reply With Quote
  #3  
Old July 13th, 2003, 10:35 PM
bews bews is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Australia
Posts: 13 bews User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
well i was just using an access db at the moment

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > searching results from a search


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 3 hosted by Hostway