Selasa, 12 Juli 2011

[MS_AccessPros] Select top 5 values from query

 

This is the main query and i have to show only top 5 values from Cost Per Person field

SELECT Reservation.ReservationID, Reservation.StartDate, Reservation.EndDate, Property.PropertyID, Property.PropertyName, Reservation.People, Reservation.Rate, Format([Rate]/[People],"Currency") AS [Cost Per Person]
FROM Property INNER JOIN (Guest INNER JOIN Reservation ON Guest.GuestID = Reservation.GuestID) ON Property.PropertyID = Reservation.PropertyID
ORDER BY Format([Rate]/[People],"Currency") DESC;

[Non-text portions of this message have been removed]

__._,_.___
Recent Activity:
.

__,_._,___

Tidak ada komentar:

Posting Komentar