Struggling to get query correct

Lance James 371 Reputation points
2022-06-17T19:50:35.79+00:00

I have three tables

tblShipperHead(ShipNum, ShipDate, Qty1)
tblMinMax(PTNO, Max, CustInv, LastQtyRecd, LastDateRecd, CustInv)
tblPartInv(OnHand)

Desired results set, but not showing the derived field. It is for data filtering.

212548-image.png

Want to use the tables to arrive at the Last Shipment of each PTNO in tblMinMax.

Transact-SQL
Transact-SQL
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
4,675 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Naomi Nosonovsky 8,051 Reputation points
    2022-06-17T20:06:19.377+00:00

    So what exactly is the issue? You can create a new computed column at the table level or you can add this column in the view (you can create view in code, right)?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.