I am new to this. The query below is Golom's response to one of my earlier questions (It produced the desired result by the way) Thanks!
In the following SQL query, there is a P. and an M. preceeding the fields in the select command and later in the From command the table names are preceeded by the P. and M.
Why??
Also, on the Inner join the "M" that preceeds "Inner" is not understood by me.
Toward the bottom of the query, X. is used. - also not understood.
Please enlighten me.
Thanks in advance.
Select M.str_ProdDesc, M.Str_UOM, P.Str_VendorItemID,
P.Str_VendorID, P.Num_MarItemID,
P.Cur_VendorPrice, P.Date_QuoteDate
From Tbl_MarItems M Inner Join Tbl_VendorPrice P
ON M.Auto_MarItemID = P.Num_MarItemID
WHERE P.Cur_VendorPrice =
(Select MIN(X.Cur_VendorPrice) From Tbl_VendorPrice X
Where X.Num_MarItemID = M.Auto_MarItemID )
In the following SQL query, there is a P. and an M. preceeding the fields in the select command and later in the From command the table names are preceeded by the P. and M.
Why??
Also, on the Inner join the "M" that preceeds "Inner" is not understood by me.
Toward the bottom of the query, X. is used. - also not understood.
Please enlighten me.
Thanks in advance.
Select M.str_ProdDesc, M.Str_UOM, P.Str_VendorItemID,
P.Str_VendorID, P.Num_MarItemID,
P.Cur_VendorPrice, P.Date_QuoteDate
From Tbl_MarItems M Inner Join Tbl_VendorPrice P
ON M.Auto_MarItemID = P.Num_MarItemID
WHERE P.Cur_VendorPrice =
(Select MIN(X.Cur_VendorPrice) From Tbl_VendorPrice X
Where X.Num_MarItemID = M.Auto_MarItemID )