Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need a query 1

Status
Not open for further replies.

whtisthat

Technical User
Mar 27, 2004
12
US
I need a query please any help
if you do a select * from all_tables I need to find out similar table which ends with _all and _tl
the reason I want to make a view _VL. eg:
oe_headers_types_all
oe_headers_types_tl

Th
 
select name1 from
(select substr(table_name,1,length(table_name)-4) name1 from all_tables
where table_name like '%_ALL'),
(select substr(table_name,1,length(table_name)-3) name2 from all_tables
where table_name like '%_TL')
where name1 = name2
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top