A badly asked question? Sorry, I’ll work on that.
and yes, my solution does work, i’ve been writing sql for many, many years
I don’t doubt either statement. I said “I could not get it to work.”
you should really have mentioned the ENUM datatype in your first post
(aside: you should change it if you can… do a search on “ENUM is the spawn of the devil”)
Being an atheist, I don’t believe there is a devil. I take it you don’t like ENUM. I did the search and found a good explanation of the shortcomings of ENUM. I’ve been using it for years and never had a problem because I use it in such a way as not to tempt its devilish soul.
Change it to what?
could you kindly do a SHOW CREATE TABLE for the crew table
CREATE TABLE `crew` (
`id` mediumint(9) NOT NULL auto_increment,
`boat_id` mediumint(9) NOT NULL default '0',
`fname` varchar(25) NOT NULL default '',
`iname` varchar(5) NOT NULL default '',
`lname` varchar(25) NOT NULL default '',
`rank` enum('own','cap','crw','pass') NOT NULL default 'crw',
`document` varchar(30) NOT NULL default '',
`doc_type` enum('id','pass') NOT NULL default 'id',
`notes` text NOT NULL,
`date_created` date NOT NULL default '0000-00-00',
`ip_created` varchar(15) NOT NULL default '',
`reason_removed` text NOT NULL,
`date_removed` date NOT NULL default '0000-00-00',
`ip_removed` varchar(15) NOT NULL default '',
`date_modified` date NOT NULL default '0000-00-00',
`ip_modified` varchar(15) NOT NULL default '',
PRIMARY KEY (`id`),
KEY `boat_id` (`boat_id`),
KEY `lname` (`lname`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;