Home » SQL & PL/SQL » SQL & PL/SQL » RE: Procedure for updating nulls
RE: Procedure for updating nulls [message #40343] Mon, 30 September 2002 10:02 Go to next message
premila
Messages: 10
Registered: September 2002
Junior Member
i am performing data cleaning on a large badly designed database and many of records are null in some tables.

For example i have a table Customers which has the following fields

Create table Customers
(CustomerID varchar2(5),
CONSTRAINT customers_pk primary key(CustomerID),
CompanyName varchar2(40)CONSTRAINT cust_company_nn NOT NULL,
ContactName varchar2(30)CONSTRAINT cust_contactname_nn NOT NULL,
Address varchar2(60),
City varchar2(15) CONSTRAINT city_nn NOT NULL,
Region varchar2(15)CONSTRAINT region_nn NOT NULL,
Country Char(15)CONSTRAINT country_nn NOT NULL
);

it has some records where region, country and contactname are null. how do i write a procedure to update this table at once rather than updating a record a time using update statement.

Premila
Re: RE: Procedure for updating nulls [message #40346 is a reply to message #40343] Mon, 30 September 2002 15:09 Go to previous message
Todd Barry
Messages: 4819
Registered: August 2001
Senior Member
Already answered in another forum:

http://www.orafaq.net/msgboard/newbies/messages/4670.htm
Previous Topic: How do I get this function to compile?
Next Topic: How to reference a record field dynamically with another variable
Goto Forum:
  


Current Time: Tue May 07 14:28:01 CDT 2024