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
Suri
Published by: Suri on February 23, 2012 11:30
Tags: Database
Similar Questions
-
How to change the name used when I downloaded more than 80 photos and classified with the wrong name
I downloaded more than 80 pictures and inadvertently gave them all the wrong name. I know that I can change them one at a time, but how I can change the whole set at once?
Open the folder the photos are in and go to... Edition / select all...
Right-click the first picture of the highlighted (miniature group
(or file name), and then from the menu choose... Name change.Enter a descriptive name for the group... Summer vacation
.. .for example... also add a number...Summer vacation (10001)... jpg...
Then left click... Enter... and Windows will be consecutively
the remaining photos.Summer vacation (10001)... jpg
Summer vacation (10002)... jpg
Summer vacation (10003)... jpg -
How to find the name of the Oracle database server?
People,
Hello. I installed Oracle Database 11 g 2 OS Oracle Linux 5. The installed directory is/home/user/OracleDB_Home and/home/user/OracleDB_Base.
Host name is "mylinux". Name of the database instance is PT853.
I use "mylinux" as the name of the database server, it does not work. I use another way to do as below:
Export ORACLE_HOME = / home/user/OracleDB_Home
Can I use "mylinux ORACLE_HOME" as the name of the database server, it does not work either.
My question is:How to find the name of the database server Oracle with Oracle Linux 5 OS?
Thank you.You must learn the basic of database Oracle.
Please don't regard it not same as SQL server in terms of configuration.
You never specify the database server name in Oracle.
You specify the host name in only two places, 1) Tnsnames.ora/JDBC/ODBC (or any client you want to connect) and listener.ora) 2.
There was nothing called specify the name of the Oracle database from an oracle database server.
Concerning
Anurag.
-
How to find the user Apex table
Hello
Please let me know, how to find the user apex table. I need validate the unique user based on the same, for which I use below function.
DECLARE
VAL A BOOLEAN;
BEGIN
VAL: = APEX_UTIL.IS_USERNAME_UNIQUE (p_username =
(: P6_USERNAME);
END;
However, in this case, he always comes back "FALSE," saying new user exists.
Kindly help me in fixing this problem.There is a view called apex_workspace_apex_users.
Details under Home > utilities > Application Express views
André
-
How to have more than 20 columns in a table in the form of adobe?
I see that there is limitaion of not having more than 20 columns in my table in the form of adobe, is it possible that I can have more than 20 columns in a table in the form of adobe in landscape mode.
Hello
Which applies only to the Table Wizard. Once the table is placed on the page, you can add columns manually in the menu or by right-clicking a column.
You can also use fields in a repeating subform (rather than the object of the table).
Good luck
Niall
-
How can I convert a PDF file that is larger than 100 MB?
Hello! How can I convert a PDF file that is larger than 100 MB?
Hi larissat90944947,
As you have discovered, there is a 100 MB file size limit for files to download for ExportPDF online service. Acrobat has such a limitation, however. If you want, you can start a free 30 day trial of Acrobat. You can download the trial of http://www.adobe.com/products/acrobat.html.
Best,
Sara
-
Is it possible to adjust the sound volume of Windows to more than 100%?
Hello
I have a very simple question:
Is it possible to adjust the sound volume of Windows to more than 100%?
I explain why I need to do this:
I can watch DVD files or .avi with my computer and VLC, that allows to adjust the volume to 100%. Some DVDs have a very low sound. So if I set VLC to 200% volume and the system volume to 100%, I can watch movies in good sound conditions. Then, my computer speakers are strong enough for me watching a movie.However, I have a problem with VSD: I use VOD with Windows media player and that player does not allow me to adjust the sound to more than 100%. So I put the sound of Windows media player at 100%, the sound of Windows to 100%, but the sound is very low.
Please don't tell me to buy speakers, mine are pretty strong, and I find it uncomfortable to plug the speakers.
Please don't tell me to use a software that increase the volume of the file I want to watch VOD.
Is there a way to increase the sound volume of Windows to more than 100%?
Please don t tell me this, please don t tell me that. You want to hear other people's opinions or what?
AFAIK all sound level settings in Windows are synchronized and if you change the sound level in the properties of the speaker at the same level will appear in the Windows for the Volume Mobility Center and the maximum level is 100%. No more than that.
As you already wrote the sound level can be increased in combination with Windows and some players.
Is there any other way to watch these videos, but using WMP?
-
Impossible to transmit emails that have more than 5 attachments!
original title: transfer of emails that have more than 5 attachments!
When I try to send an e-mail that has multiple attachments, I get a message box telling me that I can't send the message with more than 5 attachments and to remove enough spare to have only 5 attachments, if you remove up to 5 attachments, you lose the overall concept of the message. Anyway is to convey these email with all attachments intact?
It is very probably a restriction by your e-mail provider, and not your e-mail program (but possible) - perhaps you might want to discuss the limitation with them and see if they offer an option or an upgrade that allows more than 5 attachments. What e-mail you program use, and maybe, if I have, I can check to see if there is a limitation of fixation setting somewhere (or direct you to a place that specializes in this email program, if this isn't the one I have). If the e-mail provider allows it, and the e-mail program is not, then one option or solution until we can find a better solution is to connect to your online account and treat these emails there where it should be possible to do it without getting the error message.
I hope this helps.
Good luck!
Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.
-
Query to retrieve records that have more than one assignment_id
Hello
I'm writing a query to extract all records in the table per_all_assignments_f that has more than one different assignment_id for each person_id. Here's the query I wrote, it retrieves the records, even if a person_id assignment_id duplicate, but I need records that have more than one assignement_id without duplicate for each person_id
Select assignment_id, person_id, assignment_id
Of per_all_assignments_f
Having count (assignment_id) > 1
Person_id group, assignment_id
Thank you.
PKMaybe something like that?
select * From per_all_assignments_f f1 where exists (select 1 from per_all_assignments_f f2 where f2.person_id = f1.person_id and f2.assignment_id != f1.assignment_id );
Published by: SomeoneElse on May 7, 2010 14:23
(you can add a SEPARATE from the outer query if you wish)
-
Tables compressed with more than 255 columns
Hello
Anyone for a sql to find tables compressed with more than 255 columns.
Thank you
Jonu
SELECT table_name,
County (column_name)
Of utc user_tab_columns
WHERE utc.table_name IN (SELECT table_name
From user_tables
Compression WHERE = "ENABLED")
HAVING Count(column_name) 255 >
GROUP BY table_name
-
How to find the name of a column in a table
Hi all
I have a Table that contains approximately 100 columns.
I need to find the column name, to find in specific columns containing data like 'abc '.
Ex: I have a table like temp_table_name
the columns are col1, col2, col3, col4, col5, col6, col7, col8,.... col99
I'm looking for with data specific like 'abc '.
Need to find the name of the table column that contains data of 'abc '.
Please suggest me. How to find in a single query... :-)
Actually I'm looking through a column of the table as below
Select count (*) in the temp_table_name where col1 = 'abc '.
FOR I IN 1.20 LOOP
ln_num_of_rows: = 0;
lv_column_name_search: = "col" | I have;
lv_sql: = ' select count (*) in the temp_table_name where ' | lv_column_name_search | "= abc";
EXECUTE IMMEDIATE lv_sql INTO ln_num_of_rows;
IF ln_num_of_rows > 0
-column found in lv_column_name_search
EXIT;
END IF;
END LOOP;
But I'm gettig performance problem.
How can I do this in any other alternative way? could you suggest any way possible as soon as POSSIBLE.It's probably never going to be effective - realistic, you have to scan completes the picture.
You could probably improve a little things by doing something like
SELECT DISTINCT column_name FROM ( SELECT (CASE WHEN col1 = 'abc' THEN 'col1' WHEN col2 = 'abc' THEN 'col2' WHEN col3 = 'abc' THEN 'col3' ... WHEN col20 = 'abc' THEN 'col20' ELSE NULL END) column_name FROM table_name WHERE col1 = 'abc' OR col2 = 'abc' ... OR col20 = 'abc' )
but it's never going to be incredibly fast.
Justin
-
How to find the name that differ just a little
Hi all
I wonder if is a short distance to find the name that differ for 2/3 characters;
Example, I have a table that contains 1 varchar2 column.
Martello
point
Pistola
cemmello
Cammelli
I need to write a query like:
Select * from table where colum = point
in the result set, I want to
point
cemmello
Cammelli
Thank you
F.
Hello francy77
In fact, it is not possible. There is a SQL "soundex" function, which "returns a string containing the phonetic representation of the
char
. This function allows you to compare the words that are spelled differently, but sound as well in English. »Example: Smith could be written as "SMYTHE".
Try this:
SELECT first_name
FROM (SELECT 'Smith' AS the name OF DOUBLE UNION ALL
SELECT 'Sophie' AS the name OF THE DOUBLE)
WHERE SOUNDEX (first_name) = SOUNDEX ('Smythe')
;
You get two records...
But if you have a specific logic, then you must create a function and he set what text - what you want text input.
Is it useful or the solution for you?
-
Hi all
any help please...
I have a lot of tables in the diagram
Select * from tab; show all tables...
Now, there is a single table called has columns as name like this, dept, empno, joindate, sal...
now the description column in table present in so many other tables in the schema above...
How can I know the names of tables where this 'Description' column shows.
Note: I use the 10 g version and I do not have DBA privilege on the diagram...
Thanks in advance
ASP.Are you logged in as owner of these tables? Otherwise (and it seems that you're not), you have privileges on these table? If you do, use:
SELECT OWNER, TABLE_NAME FROM ALL_TAB_COLUMNS WHERE COLUMN_NAME = 'DESIGNATION' /
If you don't have privileges, but you can choose from DBA_TAB_COLUMNS, use:
SELECT OWNER, TABLE_NAME FROM DBA_TAB_COLUMNS WHERE COLUMN_NAME = 'DESIGNATION' /
Otherwise ask your DBA to run it.
SY.
-
How to find the name of the column in the tables
Hello..
Suppose that there are thousands of table in the database. Out of them a few tables contain the column name as 'ENTRY_BY '.
I want to know the tables that have columns like "ENTRY_BY".
... Please suggest for this query.
all_tab_cols
Select * from all_tab_cols
where column_name like ' % INPUT % ';
Post edited by: Rajavignesh
-
How to find the name of the procedure call or a package?
Hi all..
Is it possible to find the name of the procedure or the calling package?
I mean.. If proc_1 calls proc_2 how can I find in proc_2 proc_1 call?
Proc_2 is called from a different procedure? I need to write to the size of the code that should fire depends on the Proc he calls?
Please help me solve this problem.
Thank youYou could try OWA_UTIL. WHO_CALLED_ME
"This procedure returns information (in the form of output parameters) on the unity of PL/SQL code that called it."
See:
http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14258/w_util.htm#sthref11492
Maybe you are looking for
-
Notes crashes in the second each time I open it.
Notes crashes evertime I try to open it. I tried closing, discount, etc, nothing works.
-
What is the function local folders are used in TB? When should I use/non use?
What is the 'local folders' function does TB? How is it related to the 'archives '. 2015 archives disappear after 2015 or 2016 pop up? Why not just add subfolders Archives rather than 2015 Archives? Documentation on these topics?
-
FaceTime/iMessage, do not connect
any time I try to connect with my apple ID just little loading symbol continue to go and he never charges / open face time - the same as with iMessage? any advice-simple instructions if possible
-
My screen turned sepia toned all of a sudden!
All of a sudden my iPhone 6 s screen turned sepia color. How to get back to normal? Go to the brightness under settings did not work. Or he works at power off, or lock and home. Help, please.
-
Cannot start from the CD on Satellite L10
Hi, I had several problems during the last two weeks with my Toshiba laptop. I decided to back up all my files and use the recovery disk to erase everything. I put in the disc and then changed the BIOS so that the CD/DVD drive was the first. (I hope,