SunQuest
           Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDatabase Management

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old July 14th, 2003, 11:42 AM
bingbing bingbing is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 6 bingbing User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to bingbing
Unhappy SQL Concatenation Issue for Oracle 9i

Hi,

I'm currently using Oracle 9i for a class database project. I'm kinda stuck at the following problem...I have a view called LING shown below:

A B C D
- - - -
2 4 1 1

The problem is I'm trying to create a view (Oracle's view) called TEMP that will look like this:

A B C D E
- - - - ------
2 4 1 1 2411

I've tried using CONCAT (concatenation) but to no avail. The following is a sample of my code:

create or replace view TEMP AS
select LING.A, LING.B, LING.C, LING.D, LINK.E
from LING, LINK
where E=
(select A||B||C||D from LING);

The view TEMP can be created but there's nothing inside when i

select * from TEMP;

Anyone knows the correct syntax to combine string and put in column E? Thanks for your time...

Last edited by bingbing : July 14th, 2003 at 11:48 AM.

Reply With Quote
  #2  
Old July 14th, 2003, 12:00 PM
swampBoogie swampBoogie is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Jan 2003
Location: Paris Uppland
Posts: 1,766 swampBoogie User rank is Sergeant Major (2000 - 5000 Reputation Level)swampBoogie User rank is Sergeant Major (2000 - 5000 Reputation Level)swampBoogie User rank is Sergeant Major (2000 - 5000 Reputation Level)swampBoogie User rank is Sergeant Major (2000 - 5000 Reputation Level)swampBoogie User rank is Sergeant Major (2000 - 5000 Reputation Level)swampBoogie User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Weeks 4 Days 6 h 15 m 31 sec
Reputation Power: 37
What is link?

Code:
create or replace view TEMP AS
select LING.A, LING.B, LING.C, LING.D,  A||B||C||D as e
from LING

Reply With Quote
  #3  
Old July 14th, 2003, 12:04 PM
bingbing bingbing is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 6 bingbing User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to bingbing
Talking reply

LINK is another table that i select column E from. Columns A, B, C, D are from LING while E is from LINK.
Anyway I'll try to test the code out...thanks for ur help...

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > SQL Concatenation Issue for Oracle 9i


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway