![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
What is wrong with select left(workdesc,50) as wd,* from cwkt; where left(funccode,1)="$" and "P#"$wd order by wd where workdesc is a memo? I do not get an error message, but I also get no rows returned. I expected plenty, and the rows are there. If I replace the second conjunct with "P#"$workdesc it works. What is the difference in meaning between the two statements? ("P#" will normally be at the beginning of the memo.) Sincerely, Gene Wirchenko |
#3
| |||
| |||
|
|
What is wrong with select left(workdesc,50) as wd,* from cwkt; where left(funccode,1)="$" and "P#"$wd order by wd where workdesc is a memo? I do not get an error message, but I also get no rows returned. I expected plenty, and the rows are there. If I replace the second conjunct with "P#"$workdesc it works. What is the difference in meaning between the two statements? ("P#" will normally be at the beginning of the memo.) Sincerely, Gene Wirchenko |
#4
| |||
| |||
|
|
"wd" is not yet known by the WHERE condition parser. It doesn't become known until the records are retrieved and needed for the ORDER BY. At least, that's my SWAG on how it works, I have no inside actual knowledge of the way the VFP SQL parser works. -- Fred Microsoft Visual FoxPro MVP "Gene Wirchenko" <genew (AT) ucantrade (DOT) com.NOTHERE> wrote in message news:5fq0419s5v6lg87jitouvn0rkba75ckbtt (AT) 4ax (DOT) com... What is wrong with select left(workdesc,50) as wd,* from cwkt; where left(funccode,1)="$" and "P#"$wd order by wd where workdesc is a memo? I do not get an error message, but I also get no rows returned. I expected plenty, and the rows are there. If I replace the second conjunct with "P#"$workdesc it works. What is the difference in meaning between the two statements? ("P#" will normally be at the beginning of the memo.) Sincerely, Gene Wirchenko |
![]() |
| Thread Tools | |
| Display Modes | |
| |