mwm
08-06-2007, 03:09 PM
I have a single table that containes payments of home utilities such as water, gas and electric. the tables has accounts numbers for each utility. the homes have address, lot number and its a townhouse it includes unit number. What I need to do is to create one table to have the address, lot, unit, and account number for each utility. then have a second table that will only have the payment records. I don't know how to write a query to do this. any suggestion is much appreciated.
Thank You
CREATE TABLE `Paymentstype` (
`ID` INTEGER NOT NULL,
`community` VARCHAR(255),
`lot` DOUBLE NULL,
`unit` INTEGER,
`address` VARCHAR(255),
`account` VARCHAR(255),
`one` VARCHAR(255),
`two` VARCHAR(255),
`three` VARCHAR(255),
`four` VARCHAR(255),
`five` VARCHAR(255),
`six` VARCHAR(255),
`seven` INTEGER,
`type` VARCHAR(255)
) TYPE=MyISAM;
Thank You
CREATE TABLE `Paymentstype` (
`ID` INTEGER NOT NULL,
`community` VARCHAR(255),
`lot` DOUBLE NULL,
`unit` INTEGER,
`address` VARCHAR(255),
`account` VARCHAR(255),
`one` VARCHAR(255),
`two` VARCHAR(255),
`three` VARCHAR(255),
`four` VARCHAR(255),
`five` VARCHAR(255),
`six` VARCHAR(255),
`seven` INTEGER,
`type` VARCHAR(255)
) TYPE=MyISAM;