Find all tables that have not at least a DATE column
DB version: 10 gr 2View user_tab_cols using, how can I find the tables that have not at least a column of DATE(user_tab_cols.data_Type='DATE')?
SELECT table_name
FROM user_tables
WHERE table_name NOT IN ( SELECT DISTINCT
table_name
FROM user_tab_cols
WHERE DATA_TYPE = 'DATE'
);
Concerning
Arun
Tags: Database
Similar Questions
-
Is it possible to find all photos that are not in a collection?
Is it possible to find all photos that are not in a collection? I want to find images that do not already belong to a specific collection, but should.
Hi blue,
Please take a look at the article, it should be useful: http://www.lightroomsecrets.com/blog/2008/01/selecting-images-not-in-a-collection
Kind regards
Tanuj
-
Find all tables in db with the name of the column of a particular string?
I'm looking for all the tables in a database that have a certain column name. How can I find it?Hello Atlas77,
you are posting in the wrong forum. This one is for the tool called SQL Developer.
That said, you can try the following:select table_name from dba_tab_columns where column_name='THE_COLUMN_YOU_LOOK_FOR';
If you have DBA privileges, you can try this:
select table_name from all_tab_columns where column_name='THE_COLUMN_YOU_LOOK_FOR';
HTH,
dhalek -
find the pictures that have not yet been updated with the point
The library brand photos view have had changes of development applied with a small icon in the lower right. I conclude that the catalog stores a little marker so that each photo has or has not "yet". But I can't find a way to filter or separate otherwise photos photos by this attribute. It would be helpful, because after the importation of a large number of files I apply development in order ofearly aestheticism, which of course is random compared to the catalogued command. As I do, I only look at pictures of candidates not already developed to find my next targets for development work.
If I missed a way to do it, please reply. If this isn't the case, I suggest this for a future version.
You can try to use the Smart Collection to filter by fit and filter the library metadata (hit-key to make it visible at the top of the grid) to filter by date.
-
To find a value that does not move to columns
Version of database 11g (11.2.0.3.0)
AIX OPERATING SYSTEM
I'm writing some SQL/PLSQL, who selects a value in a table that is not always in the same column. I need to find which column is on a table, then use this place of the column to find its value coresponding on another table.
Example:
So for a time-say 3, I want to be able to find first the rows and columns, it appears in on the TIME table and the upward gaze of the WALTZ in the same places of the column in the table VALS.CREATE TABLE TIMES (RUN_ID NUMBER(10),TIME1 NUMBER(10), TIME2 NUMBER(10), TIME3 NUMBER(10), TIME4 NUMBER(10),TIME5 NUMBER(10)); CREATE TABLE VALS (RUN_ID NUMBER(10),VAL1 NUMBER(10), VAL2 NUMBER(10), VAL3 NUMBER(10), VAL4 NUMBER(10),VAL5 NUMBER(10)); INSERT INTO TIMES VALUES (1000, 1,2,3,4,5); INSERT INTO TIMES VALUES (1001, 2,3,4,5,6); INSERT INTO TIMES VALUES (1002, 3,4,5,6,7); INSERT INTO VALS VALUES (1000, 101,102,103,104,105); INSERT INTO VALS VALUES (1001, 106,107,108,109,110); INSERT INTO VALS VALUES (1002, 111,112,113,114,115); SQL> select * from times; RUN_ID TIME1 TIME2 TIME3 TIME4 TIME5 ---------- ---------- ---------- ---------- ---------- ---------- 1000 1 2 3 4 5 1001 2 3 4 5 6 1002 3 4 5 6 7 SQL> select * from vals; RUN_ID VAL1 VAL2 VAL3 VAL4 VAL5 ---------- ---------- ---------- ---------- ---------- ---------- 1000 101 102 103 104 105 1001 106 107 108 109 110 1002 111 112 113 114 115
Thus, for example the time 3 above, I want to be able to return:
1000 103 RUN_ID
1001 107 RUN_ID
111 1002 RUN_ID
I got a database that stores values like that so I can't change the way the data is unfortunately inspired. Is there one clever way to do other than look at each TIME column by Union them together, then creating some dynamic sql statements to get the values of the VALS table?
This is a simplified example, but the table has 98 columns!
Any help will be greatly appreciated.
Published by: 991224 on March 1st, 2013 07:13Hello
Welcome to the forum!
Thanks for posting the CREATE TABLE and INSERT statements; It's very useful!
If you cannot permanently normalize the data, then you can normalize it on the fly.
Here's one way:WITH unpivoted_times AS ( SELECT run_id , col_num , t_val -- If wanted FROM times UNPIVOT ( t_val FOR col_num IN ( time1 AS 1 , time2 AS 2 , time3 AS 3 , time4 AS 4 , time5 AS 5 ) ) WHERE t_val IN (3) -- or whatever ) SELECT v.run_id , CASE t.col_num WHEN 1 THEN val1 WHEN 2 THEN val2 WHEN 3 THEN val3 WHEN 4 THEN val4 WHEN 5 THEN val5 END AS v_val FROM unpivoted_times t JOIN vals v ON v.run_id = t.run_id ;
If the same number of target may occur more than once on the same line at the time, then the above query generates multiple lines with the same run_id. For example, if we change your data a little examples:
-- Don't use this row: -- INSERT INTO TIMES VALUES (1002, 3,4,5,6,7); -- Use this row instead: INSERT INTO TIMES VALUES (1002, 3,3,3,6,7);
Leave all other sample data, as you have it posted, then the output is:
` RUN_ID V_VAL ---------- ---------- 1000 103 1001 107 1002 111 1002 112 1002 113
If you have 98 (not just 5) columns that need to be compared, then you will need to list all 98 of these columns at the time in the UNPIVOT clause and all 98 of vals in the expression BOX. Sorry; I don't see any way around that. You could write dynamic SQL statements to the parts of code for you.
-
Hi guys,.
I have the schema name but who want to find the names of all tables which do not have all the data, perhaps no records = 0.
I also want to find then of these tables that have names of data columns and then I want a search on that columns with column name
Need help. Your help would be really appreciated.
Thank you
If the statistics are correctly collected in the schema, then:
select * from user_tables where num_rows=0 -----> (you may user all_tables/dba_tables);
And I do not understand your second question.
I also want to find then of these tables that have names of data columns and then I want a search on that columns with column name
Not sure if this is what you need...
SELECT * FROM user_tab_cols WHERE table_name IN (SELECT table_name FROM user_tables WHERE num_rows <> 0);
See you soon,.
Manik.
-
Do I lose all the iMessages that have not been delivered to my iphone if I withdraw (from iMessage) my phone number? My current iphone is broken and I am planing to get a new one in a few months.
You may lose everything. iMessage, like most e-mail services, don't keep permanently undeliverable messages. They only keep in the short period send queue (I don't know exactly how much time but some Apple tech sites indicate no more than 10 days to two weeks) until they are purged. That's pretty standard as otherwise, large volume, messaging services would be sitting on tera-bytes of messages not delivered each month.
You actually have to change my phone number? If not, let alone sign and only in iMessage when you have the new phone with this set of numbers upward to the service.
-
How to find the names of tables that have more than 100 columns
Hi gurus,
Please help me find the names of the tables that have more than 100 columns in the database.Below will be useful for you.
SELECT atc.OWNER,atc.TABLE_NAME,count(*) FROM all_tab_columns atc GROUP BY atc.OWNER,atc.TABLE_NAME HAVING count(atc.COLUMN_NAME) > 100
Adding another point, you can use user_tab_columns, all_tab_columns, dba_tab_columns, based on your needs/access.
Thank you
SuriPublished by: Suri on February 23, 2012 11:30
-
PSE9/Win 7: Can I create a Smart Album of all images that do not have a certain tag?
With the help of PSE9 on Windows 7.
I would like to create a Smart Album that contains all images that do not have a particular tag.
When I click on create new Smart Album dialog box allows me to select "key words".
But I'm calling "Include". I can select the tags I want.
Basically, I want to include it in "exclude".
Any way to do something like that?
Hello
You can try this.
(1) view all photos
(2) check the keyword tag you are interested in
(3) under Options, Select hide correspond better results & show results that do not match (i.e. reverse the last two conditions).
to read
That should show you what you wanted to see
(4) now use the option high save search criteria as Smart Album and give it a name
This seems to remember the conditions reversed and the tag.
Good luck
Brian
-
How to list all the tables that have no data
Hi all
I want to list all the tables that have no data. (registration number is 0)
Someone help me.
Thank you
Thiensu2810Select owner, table_name from dba_tables where num_rows = 0;
This assumes that the table statistics are COMMON.
-
the list of all forms that have some Member for example "Q1".
Is it possible to list all forms that have a certain example "Q1" Member who was hard coded in the FORM?
If you can give only general ideas, which will be appreciated too... it will give me a head start.
My guess is that I have query in a combination of these tables:
HSP_FORM
HSP_FORM_Layout
HSP_FORM_attributesIf you connect to a Hyperion Planning as an administrator and select
, , you can select a member and then press the button "show its use." This will show you that forms the reference member 'directly '. This works even if you are using EPMA. If a member "indirectly" appears in a form (because you used a member function and this member was returned), it will not help, but if you specify a member name when creating the form, it will appear. I hope it's a little easier to dig through tables.
Take care
-Jake -
How can I search for all photos that have names composed of four numbers?
OT: Help search.
Hello, I want to seek a photo (.jpg), photography is as the name of 5225.jpg, which consists of four digits. How can I search for all photos that have names composed of four numbers? Thank you
I don't know how to search only images that carry the 4 numbers, but I know how to find a file that is exactly 4 letters long and ends with ".jpg".
To do this, type this in your search box (exactly as it is, including quotation marks):
"file name:"? "jpg"
It will search for all files that have exactly 4 characters followed by .jpg at the end.
-
Mr President.
I create a form based on two tables that have sequences also. When I create insert only row is inserted in the fields in table first and second fields of the table are empty. Why?
the page source is
<?xml version='1.0' encoding='UTF-8'?> <ui:composition xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:af="http://xmlns.oracle.com/adf/faces/rich" xmlns:f="http://java.sun.com/jsf/core"> <af:panelFormLayout id="pfl1"> <af:group id="Group"> <af:inputText value="#{bindings.VoucherId.inputValue}" label="#{bindings.VoucherId.hints.label}" required="#{bindings.VoucherId.hints.mandatory}" columns="#{bindings.VoucherId.hints.displayWidth}" maximumLength="#{bindings.VoucherId.hints.precision}" shortDesc="#{bindings.VoucherId.hints.tooltip}" id="it1"> <f:validator binding="#{bindings.VoucherId.validator}"/> <af:convertNumber groupingUsed="false" pattern="#{bindings.VoucherId.format}"/> </af:inputText> <af:inputDate value="#{bindings.VoucherDate.inputValue}" label="#{bindings.VoucherDate.hints.label}" required="#{bindings.VoucherDate.hints.mandatory}" columns="#{bindings.VoucherDate.hints.displayWidth}" shortDesc="#{bindings.VoucherDate.hints.tooltip}" id="id1"> <f:validator binding="#{bindings.VoucherDate.validator}"/> <af:convertDateTime pattern="#{bindings.VoucherDate.format}"/> </af:inputDate> <af:inputText value="#{bindings.Credit.inputValue}" label="#{bindings.Credit.hints.label}" required="#{bindings.Credit.hints.mandatory}" columns="#{bindings.Credit.hints.displayWidth}" maximumLength="#{bindings.Credit.hints.precision}" shortDesc="#{bindings.Credit.hints.tooltip}" id="it2"> <f:validator binding="#{bindings.Credit.validator}"/> </af:inputText> </af:group> <af:group id="g1"> <af:inputText value="#{bindings.Lineitem.inputValue}" label="#{bindings.Lineitem.hints.label}" required="#{bindings.Lineitem.hints.mandatory}" columns="#{bindings.Lineitem.hints.displayWidth}" maximumLength="#{bindings.Lineitem.hints.precision}" shortDesc="#{bindings.Lineitem.hints.tooltip}" id="it3"> <f:validator binding="#{bindings.Lineitem.validator}"/> <af:convertNumber groupingUsed="false" pattern="#{bindings.Lineitem.format}"/> </af:inputText> <af:inputText value="#{bindings.VoucherId1.inputValue}" label="#{bindings.VoucherId1.hints.label}" required="#{bindings.VoucherId1.hints.mandatory}" columns="#{bindings.VoucherId1.hints.displayWidth}" maximumLength="#{bindings.VoucherId1.hints.precision}" shortDesc="#{bindings.VoucherId1.hints.tooltip}" id="it4"> <f:validator binding="#{bindings.VoucherId1.validator}"/> <af:convertNumber groupingUsed="false" pattern="#{bindings.VoucherId1.format}"/> </af:inputText> <af:inputText value="#{bindings.Debit.inputValue}" label="#{bindings.Debit.hints.label}" required="#{bindings.Debit.hints.mandatory}" columns="#{bindings.Debit.hints.displayWidth}" maximumLength="#{bindings.Debit.hints.precision}" shortDesc="#{bindings.Debit.hints.tooltip}" id="it5"> <f:validator binding="#{bindings.Debit.validator}"/> </af:inputText> <af:inputText value="#{bindings.Credit1.inputValue}" label="#{bindings.Credit1.hints.label}" required="#{bindings.Credit1.hints.mandatory}" columns="#{bindings.Credit1.hints.displayWidth}" maximumLength="#{bindings.Credit1.hints.precision}" shortDesc="#{bindings.Credit1.hints.tooltip}" id="it6"> <f:validator binding="#{bindings.Credit1.validator}"/> </af:inputText> <af:inputText value="#{bindings.Particulars.inputValue}" label="#{bindings.Particulars.hints.label}" required="#{bindings.Particulars.hints.mandatory}" columns="#{bindings.Particulars.hints.displayWidth}" maximumLength="#{bindings.Particulars.hints.precision}" shortDesc="#{bindings.Particulars.hints.tooltip}" id="it7"> <f:validator binding="#{bindings.Particulars.validator}"/> </af:inputText> <af:inputText value="#{bindings.Amount.inputValue}" label="#{bindings.Amount.hints.label}" required="#{bindings.Amount.hints.mandatory}" columns="#{bindings.Amount.hints.displayWidth}" maximumLength="#{bindings.Amount.hints.precision}" shortDesc="#{bindings.Amount.hints.tooltip}" id="it8"> <f:validator binding="#{bindings.Amount.validator}"/> <af:convertNumber groupingUsed="false" pattern="#{bindings.Amount.format}"/> </af:inputText> </af:group> <f:facet name="footer"> <af:button text="Submit" id="b1"/> <af:button actionListener="#{bindings.CreateInsert.execute}" text="CreateInsert" disabled="#{!bindings.CreateInsert.enabled}" id="b2"/> <af:button actionListener="#{bindings.Commit.execute}" text="Commit" disabled="#{!bindings.Commit.enabled}" id="b3"/> <af:button actionListener="#{bindings.Rollback.execute}" text="Rollback" disabled="#{!bindings.Rollback.enabled}" immediate="true" id="b4"> <af:resetActionListener/> </af:button> </f:facet> </af:panelFormLayout> </ui:composition>
Concerning
Go to your VO Wizard, select the tab of the entity and to check if both the EO is editable or not.
See you soon
AJ
-
Review all patches that have been installed
We are reviewing all patches that have been installed in the PLM in our different landscapes. Is there a table in the database of each patch is installed we can examine to make sure we are insync in each environment?Hello Jason,
You can see Document 1400204,1-"How to determine what PLM for corrective processes have been applied to the database ?" "I know that you are using an Oracle database, use the following SQL command to see what patches have been installed:
SELECT * FROM VERSIONHISTORY WHERE LENGTH (RTRIM (id))<30 order="" by="" applied="">30>
Steve
-
I want to run an update on my iPod Touch, but I get a warning "it buying things... that have not been transferred to your iTunes library." How can I determine what those are? Does he want me back up my Touch before update?
Just sync or backup and they will go to the iTunes library.
Maybe you are looking for
-
What's my Macbook Pro expandable RAM?
I bought a macbook pro 13 "and its model number is 9.2 and it has only 4 GB of RAM. Is it possible to update? When I checked the memory section in the information system application, it says in the memory slots that it is scalable but how he pass? Th
-
Is there room on the drive, an SSD drive in my laptop, Qosimo F60 Thank you
-
Complex IN. collection - items in stock
When you use the complex order for items in stock, how accounting occur when the following recipes occur and during the case in advance how the system re-coup d ' état against the amount of the advance.
-
HelloI'm currently editing images so I can put them on the Web site of athletics, is to save the image to say quality 6 sufficient to prevent people from printing to good resolution, that is to say if they want to print a 6 x 4 or 8 x 10 image don't
-
HelloI practice laboratory named "HOL-SDC-1405 - results - high availability and resilient COMPUTING Infrastructure", I am POS Web Client connectivity problems. Can anyone suggest me on this?