|
|
|
|
|
|
| Author |
Message |
Andy Hassall *nix forums Guru
Joined: 20 Feb 2005
Posts: 874
|
Posted: Sat Feb 12, 2005 10:52 am Post subject:
Re: SQLPLUS - rollup concatenation question
|
|
|
On Fri, 11 Feb 2005 16:16:25 -0600, "Dan Levy" <Dee-Arr-Levy@lucent.com> wrote:
| Quote: | A query of the kind brains of the group.
Is there any function available in sqlplus that will allow the concatenation
rollup of a textual field with an SQL query.
And if available, what is the earliest version of Oracle that this will work
on.
For example this would look like
Mytable
A B
---+---
ape bug
ape dog
ape man
cat rat
cat dog
select concatenationrollup(A,B,';') from Mytable;
A B
--- ---
ape bug;dog;man
cat dog;rat
|
Not with that exact syntax, but close; you need a user-defined aggregation
function, and a "group by A". Go to http://asktom.oracle.com and search for
"STRAGG" - 9i or later.
--
Andy Hassall / <andy@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool |
|
| Back to top |
|
 |
DA Morgan *nix forums Guru
Joined: 06 Mar 2005
Posts: 1042
|
Posted: Fri Feb 11, 2005 10:44 pm Post subject:
Re: SQLPLUS - rollup concatenation question
|
|
|
Dan Levy wrote:
| Quote: | A query of the kind brains of the group.
Is there any function available in sqlplus that will allow the concatenation
rollup of a textual field with an SQL query.
And if available, what is the earliest version of Oracle that this will work
on.
For example this would look like
Mytable
A B
---+---
ape bug
ape dog
ape man
cat rat
cat dog
select concatenationrollup(A,B,';') from Mytable;
A B
--- ---
ape bug;dog;man
cat dog;rat
Thanks in advance
Dan
If replying by email please use
drlevy@glowing.com (replace "glowing" with "lucent")
|
No. You will need to use PL/SQL.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace 'x' with 'u' to respond) |
|
| Back to top |
|
 |
Dan Levy *nix forums beginner
Joined: 11 Feb 2005
Posts: 1
|
Posted: Fri Feb 11, 2005 9:16 pm Post subject:
SQLPLUS - rollup concatenation question
|
|
|
A query of the kind brains of the group.
Is there any function available in sqlplus that will allow the concatenation
rollup of a textual field with an SQL query.
And if available, what is the earliest version of Oracle that this will work
on.
For example this would look like
Mytable
A B
---+---
ape bug
ape dog
ape man
cat rat
cat dog
select concatenationrollup(A,B,';') from Mytable;
A B
--- ---
ape bug;dog;man
cat dog;rat
Thanks in advance
Dan
If replying by email please use
drlevy@glowing.com (replace "glowing" with "lucent") |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Thu Jan 08, 2009 12:28 am | All times are GMT
|
|
Myspace Generators | Repair Bad Credit | Web Advertising | Loans | Debt Consolidation
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|