[SQL] tree-structured query

2006-09-29 Thread chester c young
in a simple tree structured tabletable t(  id primary key,  pnt_id references t( id ),  name);does anyone know an easy howbeit sneaky way of determining ancestory and decendency without recursive functions,select name from t where exists thanks for insight Get your own web address for just $1.

[SQL] regexp_replace usage

2006-09-29 Thread chester c young
column name in table bue has miscapitalized Mc names, eg, 'John Mcneil' instead of 'John McNeil'.(this should be easy but) how do you construct the update query?also, regexp_string( 'Mcneil', 'Mc(.*)', initcap('\\1') ) => 'neil' _not_ Neil' - is this correct? All-new Yahoo! Mail - Fire up a mor