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
Argument not specified for parameter 'sender' of 'Protected Sub EmailRegAttendeeNotices_Cl<wbr />ick(sender<wbr /> As Object, e As System.EventArgs)'.
How to set a font to a CMenu ?
sql permissions to use adp
ASP.NET SOAP Server/Client with Complex Types
How do you create ODBC in VBA to retrieve a text file from remote server then populate access table?
How do I push out customized header/footer templates in Word 2007
vlookup - answer for "dummies"
find filenames in a text file
How to call a sub in a seperate class file
Access VBA - Need to wait a few seconds...