Digitalcandy02
MIS
I am making a view and want to make a column that returns a boolean. The column will check for a record in another table, if it exists then true else false.
This is what I have and ofcourse it doesn't work but the linking is correct.
(Select Top 1 LotID From TravelerLot Where LotID = dbo.WorkOrderLot.ID)
All that code does is returns a NULL value if it doesn't exist and the LotID if it does. I'd rather it be a boolean.
This is what I have and ofcourse it doesn't work but the linking is correct.
(Select Top 1 LotID From TravelerLot Where LotID = dbo.WorkOrderLot.ID)
All that code does is returns a NULL value if it doesn't exist and the LotID if it does. I'd rather it be a boolean.