Re: Blank field in column
From: Hari (hari_prasad_k_at_hotmail.com)
Date: 07/01/04
- Next message: Steve Kass: "Re: Error using QA"
- Previous message: Bill: "Blank field in column"
- In reply to: Bill: "Blank field in column"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 1 Jul 2004 08:53:26 +0530
Hi,
Use the below query to delete invoice number with NULLS, 0's and Blanks:-
DELETE FROM ORDER_HEADER
WHERE (INVOICE_NUMBER IS NULL) OR (INVOICE_NUMBER = '0')
OR (DATALENGTH(LTRIM(RTRIM(INVOICE_NUMBER)))=0)
-- Thanks Hari MCDBA "Bill" <anonymous@discussions.microsoft.com> wrote in message news:238c201c45ef6$c0af5ba0$a601280a@phx.gbl... > I am using the following query: > > DELETE FROM ORDER_HEADER > WHERE (INVOICE_NUMBER IS NULL) OR (INVOICE_NUMBER = '0') > > This works fine but doesn't remove the records where the > INVOICE_NUMBER field is blank. > > Is there a way to identify a blank or empty field?
- Next message: Steve Kass: "Re: Error using QA"
- Previous message: Bill: "Blank field in column"
- In reply to: Bill: "Blank field in column"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|