Viewing 3 posts - 1 through 3 (of 3 total)
Thanks Ten Centuries, exactly what I was looking for.
March 20, 2021 at 5:22 pm
filter out all rows where the stock is SOLD AND the delivery date <> Date
If I do above, then rownumber 3 & 12 will be excluded. Don't want to exclude...
March 19, 2021 at 10:48 pm
Below is the create and insert scripts
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[TEST_SAMPLE]') AND type in (N'U'))
DROP TABLE [dbo].[TEST_SAMPLE]
GO
CREATE TABLE [dbo].[TEST_SAMPLE](
[NR] [varchar](9) NOT NULL,
[ControlNo] [float] NULL,
[LocationNo] [varchar](50)...
March 19, 2021 at 11:34 am
Viewing 3 posts - 1 through 3 (of 3 total)