|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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... |
![]() |
| Viewing: Dev Shed Forums > Databases > Database Management > SQL Concatenation Issue for Oracle 9i |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|