separate column
Oracle 12 c.
I have a table that has several columns for the accommodation of the languages (for some reason that I don't want a child table to accommodate the langauges). Try to find the DISTINCT languages in the table.
col1
col2
COL3
COL4
The sample files are:
COL1 COL2 COL3 COL4
Row1: English Spanish Italian Korean
row2: English Japanese Spanish
row3: English Spanish Thai Danish
Italian German row4
If there is only a SINGLE column which hosts the languages, I can just use:
Select distinct col1 of table X.
But now there are several accommodation the langauges columns, how do I enumerate the distinct (NON-DUPPLICATE) langauges, such as return the result set to:
English
Spanish
Korean
Italian
Japanese
Thai
German
Danish
Thank you for helping.
Scott
Hi, Scott.
scottjhn wrote:
Oracle 12 c.
I have a table that has several columns for the accommodation of the languages (for some reason that I don't want a child table to accommodate the langauges).
Looks like you already realize that it is a design of the wrong table. Any reason you have booked using this model, you should think about it again. The reasonable way to store data and the reasonable way to solve this problem, are all languages to in 1 column. If you store the data in a smart way, you will have to convert on the fly, whenever you have to solve a problem like this. You can use SELECT... UNPIVOT function to convert the 4 columns in 1 and then use plain old SEPARATE to get a single output.
The FAQ Forum page on swivel also treats of unpivoting. See Re: 4. How can I convert rows to columns?
If you get stuck, see this other Forum FAQ page: Re: 2. How can I ask a question on the forums?
Tags: Database
Similar Questions
-
A way to return to the controls at the top of the files and thumbnails when hovering over the name of the file?
I can't even read the sticker because it has been moved to a separate column on the right.
Hi Bobca,
I'm sorry, but the forecast of nail has been deprecated in the latest version due to security problems.
Kind regards
Nicos
-
Values of Colum as separate columns
I have a table that looks like this:
Company (varchar),
FieldName (varchar)
Valuex (varchar)
Data can look like this:
Company Fieldname valuex
------------- --------------- -----------
John 123 name
MiddleName 123 C
LastName 123 Smith
I would like to write a query that comes out like this:
MiddleName t first name last name company
------------- ------------ ---------------- ------------
Smith John 123 C
It can be? Thanks in advance.Hello
Column definitions must be hard-coded in the application.
You cannot hardcode anything today and make sure that it reflects accurately data next year.
but you can write soemthing today who, when it is executed next year, will make the hardcode then.
This is called dynamic SQL.
Here's a way to do it in SQL * Plus, with the command of the COIL:/* How to Pivot a Table with a Dynamic Number of Columns For example, you want to make a cross-tab output of the scott.emp table. Each row will represent a department. There will be a separate column for each job. Each cell will contain the number of employees in a specific department having a specific job. The exact same solution must work with any number of departments and columns. (Within reason: there's no guarantee this will work if you want 2000 columns.) */ PROMPT ========== 0. Basic Pivot ========== SELECT deptno , COUNT (CASE WHEN job = 'ANALYST' THEN 1 END) AS analyst_cnt , COUNT (CASE WHEN job = 'CLERK' THEN 1 END) AS clerk_cnt , COUNT (CASE WHEN job = 'MANAGER' THEN 1 END) AS manager_cnt FROM scott.emp WHERE job IN ('ANALYST', 'CLERK', 'MANAGER') GROUP BY deptno ORDER BY deptno ; PROMPT ========== 1. Dynamic Pivot ========== -- ***** Start of dynamic_pivot.sql ***** -- Suppress SQL*Plus features that interfere with raw output SET FEEDBACK OFF SET PAGESIZE 0 SPOOL p:\sql\cookbook\dynamic_pivot_subscript.sql SELECT DISTINCT ', COUNT (CASE WHEN job = ''' || job || ''' ' AS txt1 , 'THEN 1 END) AS ' || job || '_CNT' AS txt2 FROM scott.emp ORDER BY txt1; SPOOL OFF -- Restore SQL*Plus features suppressed earlier SET FEEDBACK ON SET PAGESIZE 50 SPOOL p:\sql\cookbook\dynamic_pivot.lst SELECT deptno @@dynamic_pivot_subscript FROM scott.emp GROUP BY deptno ORDER BY deptno ; SPOOL OFF -- ***** End of dynamic_pivot.sql ***** /* EXPLANATION: The basic pivot assumes you know the number of distinct jobs, and the name of each one. If you do, then writing a pivot query is simply a matter of writing the correct number of ", COUNT ... AS ..."\ lines, with the name entered in two places on each one. That is easily done by a preliminary query, which uses SPOOL to write a sub-script (called dynamic_pivot_subscript.sql in this example). The main script invokes this sub-script at the proper point. In practice, .SQL scripts usually contain one or more complete statements, but there's nothing that says they have to. This one contains just a fragment from the middle of a SELECT statement. Before creating the sub-script, remember to turn off SQL*Plus features that are designed to help humans read the output (such as headings and feedback messages like "7 rows selected.", since we do not want these to appear in the sub-script. Remember to turn these features on again before running the main query. */
The first HOLD file that it creates, dynaic_pivot_subscript.sql, looks like this
, COUNT (CASE WHEN job = 'ANALYST' THEN 1 END) AS ANALYST_CNT , COUNT (CASE WHEN job = 'CLERK' THEN 1 END) AS CLERK_CNT , COUNT (CASE WHEN job = 'MANAGER' THEN 1 END) AS MANAGER_CNT , COUNT (CASE WHEN job = 'PRESIDENT' THEN 1 END) AS PRESIDENT_CNT , COUNT (CASE WHEN job = 'SALESMAN' THEN 1 END) AS SALESMAN_CNT
-
SUM and CASES on SEPARATE column
1 query 1:
SELECT IN_SRC_SYSTEM, COUNT (1)
(SELECT
(IN THE CASE WHERE THE VALUE LIKE '% LO %' THEN 'LO'
WHAT VALUE LIKE ' % THE % ' THEN 'THE
WHAT VALUE LIKE '% SAP %' THEN 'SAP '.
WHAT VALUE AS 'SPA %' THEN 'SPA' OTHER 'OTHER '.
IN_SRC_SYSTEM END)
OF LOGTD
WHEN TRUNC (DATE_AGS) = TRUNC (SYSDATE)-1
AND LOG_STATUS = 'P '.
AND VALUE IS NOT NULL)
IN_SRC_SYSTEM GROUP
ORDER BY 1;
output:
IN_SRC_SYSTEM count (*)
THE 62140
LO 59611
SAP 2685
SPA 95
I changed above query returns the results online wise.
Question:-how to add a total of column below sql. (I can reach to above sql by cumulative Group)
SELECT
SUM (CASE WHERE THE VALUE LIKE '% LO %' THEN 1 0) OTHERWISE END "LO."
SUM (CASE WHERE THE VALUE AS THE ' %') THEN 1 OTHER END 0 'LA',)
SUM (CASE WHERE THE VALUE AS "SAP %') THEN 1 OTHER 0 END 'SAP',)
SUM (CASE WHERE THE VALUE LIKE ' % SPA %') THEN 1 ANOTHER END 'SPA' 0)
OF LOGTD
WHEN TRUNC (DATE_AGS) = TRUNC (SYSDATE)-1
AND LOG_STATUS = 'P '.
AND VALUE IS NOT NULL
output
THE SAP LO SPA
62140 59611 2685 95
2.
SELECT ERR_SRC_SYSTEM, COUNT (VALUE)
(SELECT DISTINCT VALUE,
(IN THE CASE WHERE THE VALUE LIKE '% LO %' THEN 'LO'
WHAT VALUE LIKE ' % THE % ' THEN 'THE
WHAT VALUE LIKE '% SAP %' THEN 'SAP '.
WHAT VALUE AS 'SPA %' THEN 'SPA' OTHER 'OTHER '.
ERR_SRC_SYSTEM END)
OF LOGTD
WHEN TRUNC (DATEAGS) = TRUNC (SYSDATE)-1
AND LOG_STATUS = 'E '.
AND VALUE IS NOT NULL)
ERR_SRC_SYSTEM GROUP
ORDER BY 1;
ERR_SRC_SYSTEM, COUNT (VALUE)
THE 174
LO 3
63 SPA
Question:-how to display columns for bottom case distinct values and the State (I can reach to above sql by cumulative Group)
Expected:
THE SPA SAP LO
174-3-63-0
I tried something below, but it didn't work because it lead to a distinct value for the column name
SELECT
SUM (SEPARATE CASE WHEN TRANSACTION_SID LIKE '% LO %' THEN 1 0) OTHERWISE END "LO."
SUM (DISTINCT CASES WHERE TRANSACTION_SID LIKE ' % THE %') THEN 1 OTHER END 0 'LA',)
SUM (DISTINCT CASES WHERE TRANSACTION_SID LIKE ' % SAP %') THEN 1 OTHER 0 END 'SAP',)
SUM (separate BOX WHEN TRANSACTION_SID LIKE '% SPA %' THEN 1 ELSE 0 END) "SPA".
OF OD_LG_TRANSACTION_LOG
WHEN TRUNC (CREATED_DATE) = TRUNC (SYSDATE)-1
AND LOG_STATUS = 'E '.
AND TRANSACTION_SID IS NOT NULL
Kind regards
Veera
It's a shame that we didn't give examples of input data to go with your question. Therefore, it is difficult to answer. Saying that, here are my attempts to answer your questions:
(1) to add columns, you do: col1 and col2 +... + colN. This applies, even if those columns are functions - for example. (Col1) FN + fn (col2) +... + fn (colN).
(2) maybe you're after something like ' count (distinct cases where trasnaction_sid ' % THE %' as the end value)?
For example I think you're after, based on a small sample of the dataset:
with sample_data as (select 1 col1, 'abc' col2 from dual union all select 2 col1, 'bcd' col2 from dual union all select 3 col1, 'abc' col2 from dual union all select 4 col1, 'efg' col2 from dual union all select 5 col1, 'abc' col2 from dual union all select 6 col1, 'hij' col2 from dual union all select 7 col1, 'bcd' col2 from dual union all select 8 col1, 'dfg' col2 from dual union all select 9 col1, 'cde' col2 from dual) select count(distinct case when col2 like '%b%' then col2 end) b, count(distinct case when col2 like '%d%' then col2 end) d, count(distinct case when col2 like '%l%' then col2 end) l from sample_data; B D L ---------- ---------- ---------- 2 3 0
-
Choose two separate columns and others do not separate
Hello
I want two columns separate (X, Y) with other columns (GID, CODE, TID). Please help me on how to do it.
In the example below, the first and last have the same X and Y and distinct should be applied to this two columns, and then select the other columns (GID, CODE, TID) as well in the query.
GID CODE TID X THERE 730 MKPR 1 2.356536 48.72052 730 MKPR 2 2.355627 48.72069 730 MKPR 3 2.355628 48.72264 730 MKPR 4 2.355773 48.72239 730 MKPR 5 2.355816 48.72229 730 MKPR 6 2.355832 48.72225 730 MKPR 7 2.355939 48.72201 730 MKPR 8 2.356039 48.72177 730 MKPR 9 2.356088 48.72165 730 MKPR 10 2.356147 48.72151 730 MKPR 11 2.35619 48.7214 730 MKPR 12 2.35626 48.72123 730 MKPR 13 2.35632 48.72111 730 MKPR 14 2.356385 48.72099 730 MKPR 15 2.356536 48.72052 Yes, you can change the data in the example and try.
Concerning
Mr. Mahir Quluzade
p.s. If the answer to your question, then please mark your thread receives a response to the forum clear.
-
A separate column and display the most recent revision of column B
Hi all
Need some help here. I have a table and need to display the latest revision. But the problem is, I can't use SEPARATE for the TITLE column. I'm really stuck
Table name: SPECIFICATION
TITLE REVIEW
SPEC-01 HAS
SPEC-01 B
SPEC-01B
SPEC-01
SPEC-02 HAS
SPEC-02 B
The result should be as below:
TITLE REVIEW
SPEC-01
SPEC-02 BExample:
SQL> SELECT * FROM specification; TITLE R ---------- - SPEC-01 A SPEC-01 B SPEC-01 C SPEC-01 D SPEC-02 A SPEC-02 B 6 rows selected. SQL> SELECT title, MAX(revision) 2 FROM specification 3 group by title; TITLE M ---------- - SPEC-01 D SPEC-02 B
-
Can sql RS only 1 column of return can be printed as a separate column value
Hello
I wonder if the result set sql returning only one column can be printed as a separate values column?
IE.with a simple change to select empno, emp; It should be able to print.
101,102,103
Instead of
EmpNo
----------
101
102
103
Thank you
Jean ClaudeHere is an example with the EMP table in the Scott schema.
select ltrim(sys_connect_by_path(empno,','),',') empno_list from (select e.*, row_number() over(order by empno) rno from emp e) where connect_by_isleaf = 1 start with rno = 1 connect by rno = prior rno+1
-
Separate columns for different languages
I'm new to Indesign, even if I know the basics of using similar software. I practiced a bit, but would appreciate some tips before starting a large project. I need to produce a book of poems about 150. The poems are in separate documents of Word and more run to two or three pages. Each poem has been translated into English. Styles have been applied to Word documents.
I wish that both languages appear side by side. How can I set up a document in Indesign so that the text in language1 not swamped on the second column on the same page? I want to spill over into column 1 on the next page. I am finding it quite difficult to manage so would be grateful for the help.
Thank you
Marion
Put two images on the master page, linking left left and right right on each page.
-
Insert in the table in separate columns
I did the vi in the attachments. This basically vi, calculate a value from the device, this is the channel dashboard. I need more so: when calculating terminate, I need to insert data into a table, but the problem is: the number of lines in the constant table is the number of columns, I need the Temp Org chart. And these values are variable. I need a method to do this automatically. Or, I need a vi to 'build' these columns according to the number of rows in the table of constants.
If the table of constants (number of lines) and the channel table (number of items) to match the size, where the other constants come when the size has to increase?
What intrigues me is your use of construction "array index... build array. It's the same as truncate the initial 3-element array, regardless of the number of items is originally in there.
Here's a quick rewrite that eliminates some of the questionable things. As I mentioned in the first sentence, I don't know really what you want.
-
Attributes of OBIEE separate column in analysis
Hi all
I am fairly new to create analysis OBIEE and I need help. We have a table called 'Attributes of Service request' and there is an attribute called "number of days open. Currently, for the column that's just showing ' < = 5 days open ' and I'm looking to display other attributes, such as 'open 6-20 days' (each in their own column), open from 21 to 40 days "etc... and I can't seem to find how do."
As always, thanks for the help!
Looks like you need a column logic days open age group.
Find out the right answer here: BI report ages? It will give you a place to start and apply the same technique to your question.
If you want a column to each slice, then just evaluate each specific cases.
EX:
for the less equal than 5 logical column:
CASE WHEN #DaysOpen > = 5 THEN END to 1 0 OTHERWISE
for the logical column 6-20:
CASE WHEN #DaysOpen<5 and="" #daysopen="">5><=20 then="" 1="" else="" 0="">=20>
NOTE: together the aggregation rule on these sum... now you have a 'meter' of the 'elements' in the buckets...
-
Update of Table, summarizing the content of the separate column.
Hi all
Small update problem: -.
CREATE THE TABLE:
DATA: -.CREATE TABLE TestTab10 ( GROUPID VARCHAR2(10), ITEMS_1 NUMBER(2), ITEMS_2 NUMBER(2), ITEMS_3 NUMBER(2), TOT_ITEMS VARCHAR(50), SEQNO NUMBER(10) );
Select * from TestTab10;INSERT INTO TestTab10("GROUPID","ITEMS_1","ITEMS_2","ITEMS_3","TOT_ITEMS","SEQNO") VALUES ('10001','12','13','','','123456'); INSERT INTO TestTab10("GROUPID","ITEMS_1","ITEMS_2","ITEMS_3","TOT_ITEMS","SEQNO") VALUES ('10001','12','','16','','123457'); INSERT INTO TestTab10("GROUPID","ITEMS_1","ITEMS_2","ITEMS_3","TOT_ITEMS","SEQNO") VALUES ('10002','','','','','123458'); INSERT INTO TestTab10("GROUPID","ITEMS_1","ITEMS_2","ITEMS_3","TOT_ITEMS","SEQNO") VALUES ('10003','','13','','','123459'); INSERT INTO TestTab10("GROUPID","ITEMS_1","ITEMS_2","ITEMS_3","TOT_ITEMS","SEQNO") VALUES ('10003','','13','','','123460'); INSERT INTO TestTab10("GROUPID","ITEMS_1","ITEMS_2","ITEMS_3","TOT_ITEMS","SEQNO") VALUES ('10003','','13','','','123461'); INSERT INTO TestTab10("GROUPID","ITEMS_1","ITEMS_2","ITEMS_3","TOT_ITEMS","SEQNO") VALUES ('10004','11','13','','','123462'); INSERT INTO TestTab10("GROUPID","ITEMS_1","ITEMS_2","ITEMS_3","TOT_ITEMS","SEQNO") VALUES ('10004','','12','','','123463'); INSERT INTO TestTab10("GROUPID","ITEMS_1","ITEMS_2","ITEMS_3","TOT_ITEMS","SEQNO") VALUES ('10004','','13','14','','123464');
Desired results: -.GROUPID ITEMS_1 ITEMS_2 ITEMS_3 TOT_ITEMS SEQNO ---------- ---------- ---------- ---------- -------------------------------------------------- ---------- 10001 12 13 123456 10001 12 16 123457 10002 123458 10003 13 123459 10003 13 123460 10003 13 123461 10004 11 13 123462 10004 12 123463 10004 13 14 123464
I need to update the Tot_items column with the number of distinct elements which is held within each groupid.GROUPID ITEMS_1 ITEMS_2 ITEMS_3 TOT_ITEMS SEQNO ---------- ---------- ---------- ---------- -------------------------------------------------- ---------- 10001 12 13 121316 123456 10001 12 16 121316 123457 10002 123458 10003 13 13 123459 10003 13 13 123460 10003 13 13 123461 10004 11 13 11131214 123462 10004 12 11131214 123463 10004 13 14 11131214 123464
The ideas people?
Thanks in advance.Lack OP wants ordered items:
merge into testtab10 a using ( with t as ( select rowid rid, listagg(items_1 || ',' || items_2 || ',' || items_3,',') within group (order by seqno) over(partition by groupid) items from testtab10 ) select rid, xmlquery( 'string-join(for $n in distinct-values(ora:tokenize($str,",")) order by xs:integer($n) return $n,",")' passing ',' || items as "str" returning content ) tot_items from t ) b on (a.rowid = b.rid) when matched then update set a.tot_items = b.tot_items / 9 rows merged. SQL> select * 2 from testtab10 3 / GROUPID ITEMS_1 ITEMS_2 ITEMS_3 TOT_ITEMS SEQNO ---------- ---------- ---------- ---------- -------------------- ---------- 10001 12 13 12,13,16 123456 10001 12 16 12,13,16 123457 10002 123458 10003 13 13 123459 10003 13 13 123460 10003 13 13 123461 10004 11 13 11,12,13,14 123462 10004 12 11,12,13,14 123463 10004 13 14 11,12,13,14 123464 9 rows selected. SQL>
SY.
-
How to READ XML and display hirarechy and data in separate columns 2
Hi, I have the following XML example and I need to extract the hirarechy and values separately. If the value is null, hirarechy must be displayed. Please advice!
for example,.
I want to output something this link
NŒUD
---------------------------
8. TEST4. FIVE
8. TEST4. SIX
8. TEST4. 7. TEST2. TWO
8. TEST4. 7. TEST2. THREE
VALUE
------------------------------------
1
5
I test m
example of XML data:
<? XML version = "1.0"? >
rowset <>
< ROW >
< 8 >
< TEST4 >
< 5 > 1 < / FIVE >
< 6 / >
< 7 >
< TEST2 >
< TWO > 5 < / TWO >
test of m i < 3 > < / 3 >
< 4 >
< A > 26 March 12 < / ONE >
< / OVEN >
< / TEST2 >
< / SEVEN >
< / TEST4 >
< TEST4 >
< 5 > 1 < / FIVE >
< SIX > 26 March 12 < / SIX >
< 7 >
< TEST2 >
< TWO > 5 < / TWO >
< 3 > 67 < / 3 >
< 4 >
< A > 26 March 12 < / ONE >
< / OVEN >
< / TEST2 >
< / SEVEN >
< / TEST4 >
< / 8 >
< / ROW >
< / LINES >
Thank you
Published by: Saad at March 26, 2012 15:18What is xml_test in your example? his error on this one.
This is a table of xmltype object I used to store your XML for my first tests.
Sorry, I forgot to remove the part while testing with a variable binding in place.Try this one (pass your real xmltype variable instead of xmltype(:xmldoc)):)
SELECT x.node_id , x.node_value FROM XMLTable( 'declare function local:getChildren($e as node(), $pID as xs:string?) as element()* { for $i in $e/(child::*|attribute::*) let $ID := if ($pID) then concat($pID,".",name($i)) else name($i) return element r { attribute is_leaf {empty($i/child::*)} , element node_id {$ID} , element parent_node_id {$pID} , element node_name {name($i)} , if ($i instance of attribute()) then ( element node_value {data($i)}, element node_kind {"attribute"} ) else ( element node_value {$i/text()}, element node_kind {"element"} ) } | local:getChildren($i,$ID) }; (: :) local:getChildren($d/ROWSET/ROW,())' passing xmltype(:xmldoc) as "d" columns node_id varchar2(100) path 'node_id' , node_name varchar2(30) path 'node_name' , node_value varchar2(2000) path 'node_value' , parent_node_id varchar2(100) path 'parent_node_id' , node_kind varchar2(30) path 'node_kind' , is_leaf varchar2(5) path '@is_leaf' ) x WHERE is_leaf = 'true' ;
-
How to show the value of string with spaces in separate columns
Hi all, I am using Oracle 10 g.
create table
Insert a tablecreate table sample_test ( Name VARCHAR2(20 BYTE))
Select * from sample_test;insert into sample_test values ('JOAN SCT') insert into sample_test values ('MELIA FILCK') insert into sample_test values ('SSAN LIER-LILEY') insert into sample_test values ('C.M. DANY WES') insert into sample_test values ('A L SCOTT')
I would like the following outputName JOAN SCT MELIA FILCK SSAN LIER-LILEY C.M. DANY WES A L SCOTT
whenever there is a space in the name of the value next to who should be included in another column. Please note the name joan has TBS of two spaces. but it must be treated as a single space.NAME1 NAME2 NAME3 JOAN SCT MELIA FILCK SSAN LIER-LILEY C.M. DANY WES A L SCOTT
also is it possible to get something like that
the value before the first space on the right must be everything in domain Name1 Name2.NAME1 NAME2 JOAN SCT MELIA FILCK SSAN LIER-LILEY C.M.DANY WES A L SCOTT
Thanks in advance.Hello
Since you have Oracle 10, you can use regular expressions:
For the release of 3 columns:
SELECT REGEXP_SUBSTR (name, '[^ ]+', 1, 1) AS name1 , REGEXP_SUBSTR (name, '[^ ]+', 1, 2) AS name2 , REGEXP_SUBSTR (name, '[^ ]+', 1, 3) AS name3 FROM sample_test;
[^ xyz] means "any character except x, y or z."
+ means "1 or more of the previous ones.
The 4th argument to REGEXP_SUBSTR indicates where we want the appearance of the model.For the release of 2 columns:
SELECT REGEXP_REPLACE (name, ' *[^ ]+$') AS before_last_space , REGEXP_SUBSTR (name, '[^ ]+$') AS after_last_space FROM sample_test;
$ here means "the end of the string.
In Oracle 10, you will often use REGEXP_REPLACE to get substrings.
Thanks for posting the CREATE TABLE and INSERT statements; It's very useful!
Published by: Frank Kulash, 7 Sep 2011 15:21
-
Is there a way to select lines or separate columns in the tables?
This seems to be something very simple, but does not seem to Indesign (I currently use CS4) to facilitate the selection of rows or columns that are not side by side.
Usually, something like this is done with a modifier key, for example now control and selecting each desired line/column/cell is selected.
Even if there is a script or command or something which selects every second row/column, that would be enough.
Most of these things are too specific to be included as a feature (in fact, I would include alternating fills row/column to this as well), but are easily scriptable.
This fast javascript seems to do what you want:
firstRowToChange = 1; table = app.selection[0]; if (table.hasOwnProperty("baseline")) table = table.parent; if (table instanceof Cell) table = table.parent; if (table instanceof Column) table = table.parent; if (table instanceof Row) table = table.parent; if (table instanceof Table) { for (a=firstRowToChange; a
-
Total number of lines, separate column count
Hello
I am looking for a procedure that inserts following data columns:
Table_name Column_name COUNT (*), count (DISTINCT column_name)
EX: Employee 5000 4500 emp_name
Employee 5000 10 emp_location
I want this for the entire schema.
I have a procedure that gives me count (*), but I am not able to write a procedure to count (DISTINCT column_name)
If anyone can help me, that would be really helpful
Thank youHello
Yes, you certainly want to use all_tab_cols, since you need the column names.
The error seems to come from the EXECUTE IMMEDIATE statement, then put in comment declaration. Highlight the text that you run in a variable, as I showed you before, and use dbms_output.put_line see what dynamic types of SQL statements are produced. If you see no errors, after a few lines of the output produced by put_line and the results of the execution of these same SELECT statements manually.
Maybe you are looking for
-
what I put up a new e-mail account, because I thought that I could sync it, but I connect to my account and it says: not verified email account, so I check and send it me email account on internet explore, and when I open and try to verify the accoun
-
Quickly see that only photos not albums?
I noticed that as soon as I put a picture in an album, looking at all the photos he doesn't let me move them to other albums. However, I don't see, to show only the photos that are not yet in the albums in order to select them and move them into alb
-
MIT neuer PC Windows 10, keine Musik mehr da!
Hallo, vielleicht kann mir ja someone please help. I have a new PC mit Windows 10. Habe mir die iTunes App loading und... iTunes completely leer ist. Wo finde ich meine Musik und meine Einkaufe wieder? Hilfe!
-
Aironet 1130AG and 802. 1 x
Can someone help me with the configuration for authentication of 802 sources. 1 x Aironet 1130AG? I want to configure authentication for 802. 1 x based on certificates from the machine (Windows XP and 7), is it possible? The access point runs in stan
-
I bought and paid for, Lightroom 6 stand-alone update for update of Lightroom 5, for my iMac (retina, 5 K, 27 inches, end of 2015) OS X El Capitan, 10.11.5 (15F34).However, after 2 hours of waiting, the download is "stuck" out of 762,3 MB 730,4 MB, w