Viewing 6 posts - 1 through 7 (of 7 total)
It'll just run once.
Does that mean all the orders will get the same invoice numbers?
May 20, 2016 at 8:36 pm
J Livingston SQL (5/19/2016)
yahya-236450 (5/19/2016)
First time they would all be null then we start with Invoice No = 1 for first row that falls under the criteria when the query...
May 20, 2016 at 2:37 am
J Livingston SQL (5/19/2016)
May 20, 2016 at 2:33 am
Hi Kevin
Invoice numbers are assigned when the above query is run on order delivery etc. Before that invoice number has no value. We can start with zero value fro invoice...
May 20, 2016 at 2:32 am
Hi
First time they would all be null then we start with Invoice No = 1 for first row that falls under the criteria when the query is run and then...
May 19, 2016 at 5:49 pm
Hi Drew
DDL and DML code below.
Your first link end up at the MSDN Order By page; https://msdn.microsoft.com/en-us/library/ms188385.aspx?f=255&MSPPError=-2147217396
Regards
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Orders](
[ID] [int] IDENTITY(1,1) NOT NULL,
[DeliveryDate] [datetime] NULL,
[InvoiceNo] [int]...
May 19, 2016 at 4:41 pm
Viewing 6 posts - 1 through 7 (of 7 total)