Microsoft
Software
Hardware
Network
Question : SQL Query
Hi,
I have the following tables.
Vendors - V
Items - I
Vendor Items (Which has a combination of Item and Vendor as its primary key) - VI
VI has a comment field with numeric values - COMMENT_1
I want to get all records from V along with the greatest COMMENT_1 in VI where V.VENDOR = VI.VENDOR
Thanks in advance. I hope my question is clear.
Ariel
Answer : SQL Query
Here is your corrected query:
SELECT *
FROM PO_VEND V
INNER JOIN (SELECT VEND_NO,
MAX(COMMNT_1) COMMENT_ONE
FROM PO_VEND_ITEM
GROUP BY VEND_NO
) VI ON V.VEND_NO = VI.VEND_NO
Random Solutions
Line position
MS Outlook and Amicus Atorney
Configure SharePoint 3.0 to send document library alerts that include "comments"
Itunes windows 7 64 bits compatibility management
strName and msgbox
Pb in sharepoint MOSS 2007 with explorer view - webdav
"Unrecognized tag prefix or device filter 'cc1'"
edit ad add to xml fie
MS Access 2003 - Assign Current Date and Current time to two different keystrokes
How do I add a percentage received or pie graph to an Access report?