From: Martijn Tonies Date: January 12 2004 1:44pm Subject: Re: metric conversions List-Archive: http://lists.mysql.com/mysql/157438 Message-Id: <046c01c3d912$30c23ae0$0e02a8c0@martijn> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hi, > I recieve measurements for a product sometimes in inches, sometimes in > centimeters. > > These are stored in table1 > int not null primary key, measurement1 int, measurement2 int, type > varchar(255) > > I need to extract data from this table and store it in another table with all > measurements converted to inches. You have a different problem here. If it's a single column that holds both centimeters AND inches, depending on another column value, then you have a design problem. Not an SQL problem. A column should only hold one value. With regards, Martijn Tonies Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL Server. Upscene Productions http://www.upscene.com