kimprogrammer
Programmer
Hello
I'm trying to filter out some data in a command and it is not working.
I have found were it says the command actually translates the command to sql - so it is not true sql
When I refresh and ask for a new prompt - all the divisions still come up - so the statement is not being translated and is being ignored (as I understand from my book)
I've done some searches and found someone using the following and used it as a guide:
WHERE right(t.eventstr,1) NOT LIKE '%B'
Here is the statement; I don't want descriptions that start with Z.
-----------------------------------------------
SELECT PCLASS FROM CPY10050
WHERE LEFT(PDescription,1) not like 'z'
UNION
SELECT '...ALL' FROM CPY10050
-----------------------------------------------------
Thanks for the help
I'm trying to filter out some data in a command and it is not working.
I have found were it says the command actually translates the command to sql - so it is not true sql
When I refresh and ask for a new prompt - all the divisions still come up - so the statement is not being translated and is being ignored (as I understand from my book)
I've done some searches and found someone using the following and used it as a guide:
WHERE right(t.eventstr,1) NOT LIKE '%B'
Here is the statement; I don't want descriptions that start with Z.
-----------------------------------------------
SELECT PCLASS FROM CPY10050
WHERE LEFT(PDescription,1) not like 'z'
UNION
SELECT '...ALL' FROM CPY10050
-----------------------------------------------------
Thanks for the help