Expert Answer Center > Experts On Demand > View Answer
EMAIL THIS
Experts on Demand
  EXPERTS ON DEMAND HOME     POSE A QUESTION     VIEW ANSWERS     BROWSE BY TOPIC        RSS FEEDS  
I am trying to get (STORIES_MONTH, STORIES_YEAR, CODES AND HEADLINES) TABLES from user_tables. I am passing these table names to another procedure. The problem is I want the tables to be in specific order (stories_month, stories_year, codes and headlines).

I tried all methods I know, but could not get the table names in the desired order from the database. Is there any way I can store them some place and then retrieve them? If so, can you provide me with the query/procedure? QUESTION POSED ON: 25 JUL 2005
QUESTION ANSWERED BY: Rudy Limeback Try this:

order 
by case when tablename='stories_month' then 0 else 1 end
 , case when tablename='stories_year' then 0 else 1 end
 , case when tablename='codes' then 0 else 1 end
 , case when tablename='headlines' then 0 else 1 end
HomeExperts on DemandIT Expert Webcast SeriesExpert KnowledgebaseSite Index
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts