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 |
|
sureshcisco
Starting Member
3 Posts |
Posted - 2011-09-19 : 02:06:26
|
| Can anyone please help I want to modify the below query, so that it returns the <pair owner, table_name> where owner is user JOHN or JIM and table_name starts with an 'C', 'D' or 'E'SQL> select table_name from all_tables where owner like "JOHN"thanks in advance. |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2011-09-19 : 02:11:15
|
make where condition like:-...where owner in ('JOHN','JIM')AND (table_name like 'C%'OR table_name like 'D%'OR table_name like 'E%')------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
|
sureshcisco
Starting Member
3 Posts |
Posted - 2011-09-20 : 04:10:29
|
| Thanks Visakh..it works excellent. |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2011-09-20 : 05:19:32
|
| welcome------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
|
|
|
|