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.
| Author |
Topic |
|
Oli4
Starting Member
4 Posts |
Posted - 2010-10-01 : 08:06:42
|
| Hey I have this code:Select name, Patindex('%o%', name) as positiefrom AUTEURThis shows a list of all the names of authors and the position of the first (letter) o in the name. Problem is I just want to show te names that have an o in them. How do I adjust the code?example: Broos 3 Dirk 0I don't need to see Dirk 0 because there is no O in the name.thxHere today, gone tomorrow |
|
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
Posted - 2010-10-01 : 08:24:28
|
I just want to show te names with te position O.Sorry - what do you mean? No, you're never too old to Yak'n'Roll if you're too young to die. |
 |
|
|
pk_bohra
Master Smack Fu Yak Hacker
1182 Posts |
Posted - 2010-10-01 : 08:26:03
|
| Can you please post some sample data for us to understand your requirement. |
 |
|
|
Sachin.Nand
2937 Posts |
Posted - 2010-10-01 : 08:30:38
|
| [code]Select name as positie from AUTEUR where name like '%o%'[/code]PBUH |
 |
|
|
|
|
|