Trying to figure out how to extract the last character from column UDF_UNIQUEKEY (7 character field) and place in a new column SIZE_INDEX. Still playing in the design view of my DB to learn but, trying to insert a SUBSTRING function in the SELECT statement is not working for me.
SELECT dbo.CI_Item.UDF_UNIQUEKEY, (dbo.CI_Item.UDF_UNIQUEKEY = SUBSTRING(dbo.CI_Item.UDF_UNIQUEKEY, 7, 1)) AS SIZE_INDEX, dbo.PO_PurchaseOrderHeader.PurchaseOrderNo, dbo.PO_PurchaseOrderHeader.VendorNo, dbo.PO_PurchaseOrderDetail.LineKey,
dbo.PO_PurchaseOrderDetail.LineSeqNo, dbo.PO_PurchaseOrderDetail.ItemCode, dbo.PO_PurchaseOrderDetail.QuantityOrdered, dbo.PO_PurchaseOrderHeader.DateUpdated, dbo.PO_PurchaseOrderHeader.TimeUpdated
FROM dbo.PO_PurchaseOrderHeader LEFT OUTER JOIN
dbo.PO_PurchaseOrderDetail ON dbo.PO_PurchaseOrderHeader.PurchaseOrderNo = dbo.PO_PurchaseOrderDetail.PurchaseOrderNo LEFT OUTER JOIN
dbo.CI_Item ON dbo.PO_PurchaseOrderDetail.ItemCode = dbo.CI_Item.ItemCode
WHERE (dbo.PO_PurchaseOrderHeader.VendorNo = '0001904')