Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 One field len query

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2000-10-26 : 20:34:21
Bill M writes "
Hello,

I want to optain an answer for this
Tablename mytable
fieldname myname

value of name is keyword1,keyword2
I would like to optain the number of chrs left of the , using an sql statement like.
SELECT * FROM mytable WHERE Len(Left([myname],InStr([myname],",")-1)) =" & Request.QueryString("size")

the answer it should return is 8

But using sql server instr and left die
is there away around this the query must be done in the sql statement."
   

- Advertisement -