Find all tables who don't have at least one DATE column

DB version:10gR2
Using user_tab_cols view, How can i find the tables who don't have at least one DATE(user_tab_cols.data_Type='DATE') column?

SELECT table_name
  FROM user_tables
WHERE table_name NOT IN  ( SELECT DISTINCT
                                  table_name
                             FROM user_tab_cols
                            WHERE DATA_TYPE  = 'DATE'
                         );Regards
Arun

Similar Messages

  • Creating SYNONYM for all tables who don't have one at once!

    Hello to all,
    I'm trying to create synonyms for every table who's missing one at the moment. I'm trying this code:
    declare
    cursor cur_objects is
    select obj.object_name , obj.owner
    from all_objects obj
    where owner = '&&SCHEMA_OWNER'
    AND NOT EXISTS (SELECT *
    FROM all_synonyms syn
    WHERE obj.object_name = syn.table_name)
    AND obj.object_type = 'TABLE'
    AND obj.object_name LIKE 'CI_%';
    begin
    for rec_objects in cur_objects loop
    begin
    dbms_output.put_line(rec_objects.object_name);
    execute immediate('create public synonym ' || rec_objects.object_name || ' for '
    || rec_objects.owner ||'.'||rec_objects.object_name )
    exception when others then
    null;
    end;
    end loop;
    end;
    I'm getting this error:
    ORA-06550: line 10, column 37:
    PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following:
    begin function package pragma procedure subtype type use
    <een ID>
    <een scheidingsteken-ID tussen dubbele aanhalingstekens> form
    current cursor
    I'm still pretty new at PL/SQL and can't get it to work. Does anyone got any tips ?
    Thnx already

    Ok now I got this error:
    RA-06550: line 17, column 1:
    PLS-00103: Encountered the symbol "EXCEPTION" when expecting one of the following:
    * & = - + ; < / > at in is mod remainder not rem return
    returning <een exponent (**)> <> or != or ~= >= <= <> and or
    like LIKE2_ LIKE4_ LIKEC_ between into overlaps using ||
    multiset bulk year DAY_ member SUBMULTISET_
    The symbol ";" was substituted for "EXCEPTION" to continue.

  • Find all users who does not have access to a shared mailbox.

    Hi all,
    We are in the proces of setting up a hybrid enviroment with our E2010 towards Office365. As part of that, we want to move several batches of users. The first bunch if users we move should not use any shared mailboxes etc. but how do I find
    those? I can see there are powershell scripts that find users who has a shared mailbox and then list the permission - but that is kind of the opposite than what I want :)
    Browsing manually through users is not practical either as we have 10000+ mailboxes at the moment.
    Hoping for a quick reply :)
    /Trev

    It is not possible to accomplish this by using powershell. Easier one is to get the list of people who has access on something with below and do easier data manipulation in Excel :
    Get-Mailbox -Resultsize Unlimited | Get-MailboxPermission | ?{$_.isinherited -eq $False -and $_.user -notlike "*self*"} | select identity, user,accessrights
    [url=http://www.lepide.com/]Lepide[/url]

  • How to find a customer who does not have any activity in the last 5 years

    HI all,
       How to find a customer who does not have any activity in the last 5 years.
    Thanks & Regards,
    Moderator message: not directly related to ABAP development, please have a look in the respective functional forum.
    Edited by: Thomas Zloch on Jan 3, 2011 2:20 PM

    Post Author: tzinser
    CA Forum: Formula
    Okay, I left off a lot of important information...
    I'm using two tables
    TWDATA
    EVENT
    From TWDATA I'm pulling the fields TWDATA.OrderNumber and TWDATA.DisbursementDate
    From EVENT I'm pulling the fields EVENT.EventCode and EVENT.CompletedDate
    The two tables are linked by OrderNumber.

  • How do you find a table that doesn't have a specific word in it.

    I have two questions.
    questions 1
    How do you find a table that doesn't have a specific word in it by using a query on the whole database?
    questions 2
    How would i list all of my cars names in my database not showing duplicates?
    I have tried, tried and tried some more to get both of these, but I guess i don't know how to query a specific word.
    I also don't know how to query everything in just 1 column name.
    If anyone could help with these that would be great I have been trying queries for over an hour now and no luck.
    Thanks

    798837 wrote:
    I tried the all_tab_columns, just like you did it, however that just gives me the column name I am looking for what is not in a column.
    For example I need to find all the tables where mustang is not = 'red' but using a single query i need to find all of the tables.
    As for number 2
    I am looking for something like this
    select distinct column_name
    from all_tab_columns
    where column_name ='AcertainColumn';Now I'm even more confused. In your example, is MUSTANG a column name? Or is it the value of a MODEL column in the CARS table? And how could that possibly relate to something that exists in multiple tables?
    If your data model is at all reasonable, I would expect that you would just want
    SELECT *
      FROM cars
    WHERE model = 'Mustang'
       AND color != 'Red'but I can't see how this would relate to data stored in multiple tables.
    Justin

  • Find all tables in db with column name of a particular string?

    I'm looking for all tables in a db that have a certain column name. How can I find this?

    John,
    thanks for your answer.
    John Mcginnis wrote:
    The quick search field in the schema browser is doing client-side filtering of the list of objects. This means we can only filter on things that we already have fetched from the database, like the object name. We have no current plans to extend the types of information that can filter on, although it is possible we might add the ability to filter based on a few other types of information that we generally fetch with the object name. However, filtering by column name would require pre-fetching the lists of columns for all tables and as such is not likely to be added to the schema browsers search field.
    I'm sure you guys had a Toad review to understand how things are done there.....so
    My 2 cents are: instead of pre-fetching the columns of all tables why don't you add a button below the table drop-down list which should fetch the tables based on the filter columns condition - exactly like Toad.
    Thanks,
    Dani

  • How to send a Pagemaker file to people who don't have this software???

    Since Pagemaker has been mentioned in regard to my last question about finding a new ink jet printer, I thought maybe someone could tell me how I can send a Pagemaker file to people to don't have a Mac and/or who don't have Pagemaker. I can't seem to convert anything to a PDF file by going to "save as". There are times that I can simply drag a Pagemaker file onto an old version of Microsoft but sometimes the type changes drastically and sometimes there is a large space between letters, especially on bold titles. Many of the files I need to send contain some simple graphics for magazine ads.
    I realize you probably can't offer a lesson but maybe there is a simple answer.
    Thanks a bunch, in advance.
    Ann C

    You need to select PDFWriter (or PDF something) in the Chooser as your default printer. I have something called PDFWriter in my Extensions folder and PDFPlugin in the Printer Descriptions folder. I'm not sure where these came from, and i'm not sure what Print2PDF is, but you're actually printing your Pagemaker file, not saving it, when you create the PDF. As for page setup, the formatting isn't always quite right with my PDFWriter either, but that's mainly when i print webpages. Haven't actually tried PDFWriter with Pagemaker.

  • Find all tables used in a stored procedure

    Hi,
    I have a requirement where i have to find all the tables used in a stored procedures from different  databases.
    Ex: i have a stored procedure where i use few tables from MASTER database and some from STAGE database.When i have written a query to find all tables used in the stored procedure, i am getting only those database table where i run the query and procedure
    exists.
    I have stored procedure SP1 in Master database, but i use the tables from both master and stage.
    When i run this, i am getting the tables only from Master database but not from stage. i hope my requirement is clear.
    I am trying to find all the tables from all databases used by a stored proc.
    ;WITH stored_procedures AS (
    SELECT 
    o.name AS proc_name, oo.name AS table_name,
    ROW_NUMBER() OVER(partition by o.name,oo.name ORDER BY o.name,oo.name) AS row
    FROM sysdepends d 
    INNER JOIN sysobjects o ON o.id=d.id
    INNER JOIN sysobjects oo ON oo.id=d.depid
    WHERE o.xtype = 'P')
    SELECT proc_name, table_name FROM stored_procedures
    WHERE row = 1
    ORDER BY proc_name
    Please advice

    Your question is not entirely clear. You need to run the query on different databases.
    You may find this blog post helpful
    How to get information about all databases without a loop
    Check the last script in that blog post and modify to your particular purpose.
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles

  • Share Reflow work with people who don't have Adobe Creative Suite?

    I see a question that was posted two years ago, but I was wondering if it was possible now to share my Reflow mockup with someone who doesn't have the software. I've tried to find a way to export a pdf, But the HTML doesnt export properly. Anyone know a way to share my Reflow work with people who don't have Adobe Creative Suite

    Reflow document is essentially a HTML document, so if the HTML export doesnt work properly, it doesnt sound like it is set up right?

  • In ITunes I don't have a listing in the column for "Devices" so I can check to see if I have sync all ringtones.  I have one downloaded but can't get it synced to my Iphone.

    In Itunes I don't have a listing in the column for "Devices" so I can check to see if my Iphone can sync all my new ringtones.  I have one ready to go but cannot get it downloaded to my Iphone.  Where is my "Devices" heading in the column on the left side of my Itunes page?

    Connect your device to computer.  In iTunes left Pane, select your iPhone under 'Devices'.  Then on th right Pane, select Tones tab.

  • How to find all table and views in the database

    Hi,
    I want to find all table and view name form the database can u tell me syntax.
    i.e. I am able to find out table name and view name in sql server ...like
    FOR VIEW :
    select table_name from information_schema.views where table_name not like 'sys%'
    FOR TABLE :
    select table_name from information_schema.tables where table_name not like 'sys%' and table_type='Base table'
    Thanks & Regards,
    Shirish

    Hello,
    Take a look at "dba_tables" and "dba_views" both of which are documented here:
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14237/toc.htm
    - Mark

  • Why can't I text friends who don't have an apple product?

    Why can't I text friends who don't have an apple product?

    The iPad cannot send traditional text messages (SMS) which are platform independent since they are a carrier service.
    The iPad uses Apple's own messaging service iMessage to send messages. Which means only Apple devices can receive those.
    If you need to message people on other platforms you need a different messaging App liike Skype or Google Hangouts.  Note, that these will not be SMS messages like your phone can send. They'll be internet based messages so the other user will have to be registered with the service you choose to use, and you will have to have him as a contact in that service to be able to send them a message.

  • Ftp 7.5 , hide directories for users who don't have access?

    hi, installed ftp 7.5 and have it working using AD credentials but users who don't have access to directories, see everything.  
    I'd like it so that they only see the directories they can access, like ABE.
    thanks!

    Hi,
    ABE will not work with FTP. I saw discussions on this topic during my search so please see if this could be considered as a workaround:
    http://answers.yahoo.com/question/index?qid=20090108064452AAfZWyO
    Meanwhile please understand that for FTP related questions you could post in IIS forum:
    http://forums.iis.net/
    If you have any feedback on our support, please send to [email protected]

  • Whenever I am sending a MSG from my iPhone 4s to friends who don't have I phone or I device my smiley(emoji) seen to be square to them and when they send MSG to me with a smiley my iPhone shows :-) ;-p like symbols. Please help I want to receive smiley

    Whenever I am sending a MSG from my iPhone 4s to friends who don't have I phone or I device my smiley(emoji) seen to be square to them and when they send MSG to me with a smiley my iPhone shows :-) ;-p like symbols. Please help I want to receive smiley from my friend

    I think you answered your own question. As your friends phones are not iPhones, but maybe Nokia or Android the smiley will appear as a different character or box. Thew only way to fix this would be to send a basic smile using the basic keyboard so that your friends will receive it as a smile and you will when they reply. Or ask your friends to check if the phones they are using have the emoji type keyboard available and ask them to update their phones. This will show the smiley when they reply to you.
    Hope this helps.

  • How to find all tables that are associated with a given domain name.

    I want to find all table, excluding the structures, of a given domain name, say, waers.
    Some of the tables are directly contains the domains while others are related with a data element which is connected to that domain.
    I want to find tables for all two case -either tables connected directly to the domain or connected via data element- and exclude the structures.
    thanks in advance.

    Hi,
    The following thing may help you.
    in se11-> search for tables having names like 'DD*'.
    From this list of tables you can find the required table to get domain, data element nad table name.
    one way of doing it:
    SELECT rollname domname
      FROM dd04l
      INTO CORRESPONDING FIELDS OF TABLE it_tab.
    SELECT rollname tabname
      FROM dd03l
      INTO CORRESPONDING FIELDS OF TABLE it_tab1
      FOR ALL ENTRIES IN it_tab
      WHERE rollname = it_tab-rollname.
    SORT it_tab1.
    DELETE ADJACENT DUPLICATES FROM it_tab1.
    LOOP AT it_tab1 INTO wa_tab.
      MODIFY it_tab FROM wa_tab
      TRANSPORTING tabname
      WHERE rollname = wa_tab-rollname.
    ENDLOOP.
    LOOP AT it_tab INTO wa_tab.
      WRITE:/ wa_tab-domname,
              wa_tab-tabname.
    ENDLOOP.
    Regards,
    Manoj Kumar P

Maybe you are looking for