Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
/----------------------\ | TYPE | STYPE | OTHER | \----------------------/
/----------------------\ | TYPE | STYPE | OTHER | |----------------------| | AAA | BBB | X=CCC | \----------------------/
select * from targettablename where type='AAA' and stype='BBB' and x=' +CCC';
/-----------------------------\ | TYPE | STYPE | OTHER | |-----------------------------| | AA|BB | BB% | X=CC%&Y=DDD | |-----------------------------| | AA|BB | | X=CC%&Y=DDD | |-----------------------------| | AA | BB% | X=CC%&Y=DD% | \-----------------------------/
select * from targettablename where type in ('AA','BB') and stype like + 'BB%' and X like 'CC%' and y='DDD'; select * from targettablename where type in ('AA','BB') and X like 'CC +%' and y='DDD'; select * from targettablename where type = 'AA' and stype like 'BB%' a +nd X like 'CC%' and y like 'DD%';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: SQL queries from weird data
by choroba (Cardinal) on Feb 19, 2013 at 16:02 UTC | |
by Anonymous Monk on Feb 19, 2013 at 16:10 UTC | |
|
Re: SQL queries from weird data
by RichardK (Parson) on Feb 19, 2013 at 15:43 UTC | |
by Neighbour (Friar) on Feb 19, 2013 at 15:47 UTC | |
by Anonymous Monk on Feb 19, 2013 at 15:51 UTC | |
|
Re: SQL queries from weird data
by locked_user sundialsvc4 (Abbot) on Feb 19, 2013 at 19:44 UTC | |
|
Re: SQL queries from weird data
by Anonymous Monk on Feb 19, 2013 at 15:36 UTC | |
by Anonymous Monk on Feb 19, 2013 at 15:52 UTC |