473,396 Members | 1,900 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Newest Record

I want to do a database of horses and owners, owners change so what I
want to know how to do is in the report pull the horse and current
owner only,

All help appreciated.

Jan 31 '07 #1
1 1153
On 31 Jan 2007 05:54:30 -0800, "Propoflady" <ch****@monticule.com>
wrote:

I don't know your database design, but this is a possibly equivalent
query in the Northwind sample database:
SELECT Customers.CustomerID, Customers.CompanyName, Orders.OrderID,
Orders.OrderDate
FROM Customers INNER JOIN Orders ON Customers.CustomerID =
Orders.CustomerID
WHERE (((Orders.OrderID) In (select Max(OrderID) from Orders group by
CustomerID)));

In Northwind OrderIDs increment, so in the Where clause I'm getting
the Max(OrderID) for each CustomerID.

-Tom.

>I want to do a database of horses and owners, owners change so what I
want to know how to do is in the report pull the horse and current
owner only,

All help appreciated.
Jan 31 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Bill H | last post by:
Ok, I haven't passed MYSQL 101 yet and something I thought would be a piece of cake has be stumped (it is almost 1a.m. thought ;)). MYSQL: 3.23 TABLE: file_id member_id file_name
4
by: Glenn Mulno | last post by:
Off the wall question: Is there a way to set a hyperlink so that it opens the newest file in a directory? Why: I have a page that is a link to a daily set of reports. A new report gets...
1
by: Gabriel Flemming | last post by:
does anybody know which version of the ANSI/ISO-Standard for the C language is the newest one? thx PS: although it is off-topic: which currently available version of C++ is the newest?
1
by: Boki | last post by:
Does anyone know the newest version of ms access
5
by: Bill | last post by:
Can I do this in one SQL statement? If so, please tell me how. I have wasted a ton of time on this but there has to be an easy way to do it. I should have done it with more than one statement...
1
by: Dino Buljubasic | last post by:
Hi, I am using VS2005 (C#) and SQL Server 2000. How can I make sure that: 1. Client A queries info from database and displays it in a list view or other controls on a form. If Client B...
10
by: Ryan Dahl | last post by:
Hi, I'm working on a simple performance-program, where I need to extract information from the 2 newest periods for every performance-indicator - And from there calculate a trend between these...
1
by: rgould | last post by:
Hi, Can anyone help please? select notefield, modifiedon FROM Table1 WHERE id = '100426' and (statusfield like '%criteria1%' OR statusfield like '%criteria2%')
4
by: oduamy | last post by:
Before I ask my question - I have to say THANKS for all of the wonderful information and help this forum has provided me!!! You are all invaluable. Also, I posted this on the Microsoft forum as well...
4
MindBender77
by: MindBender77 | last post by:
Hello All, I'm trying to find the newest file in a directory via the datetime created. Finally, I'm trying to use that newest timestamp to inform the user of this information in a msgbox. I've...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.