Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > Oracle
| Search | Today's Posts | Mark Forums Read
Oracle General Oracle database discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Oracle section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old October 14th, 2005, 01:16 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , USA.
Posts: 141
Thanks: 0
Thanked 0 Times in 0 Posts
Default Rows 2 Columns

I have a table with a list of records in it with an ID and a name.

I have another table that has an ID, a value, and also the ID from the first table. I am trying to make a view of the second table, but it needs to show the ID from the first table in different columns if they are different.

For example
in table A

ID NAME
1 A
2 B

Table 2
ID VALUE Tble1ID
1 1 1
1 1 2
2 2 1
2 2 2

View I need:
ID A B
1 1 1
2 2 2

How can I do this.

Chris
__________________
Chris


Similar Threads
Thread Thread Starter Forum Replies Last Post
Refer to Rows and Columns RayL Access VBA 3 May 23rd, 2007 09:13 AM
Columns To Rows alyeng2000 SQL Language 2 March 11th, 2005 03:08 PM
showing columns as rows zee_ahmed2002 SQL Server 2000 2 October 28th, 2004 04:58 AM
Rows into columns shamsad SQL Language 0 April 7th, 2004 04:39 AM
Rows into columns shamsad Oracle 0 April 7th, 2004 04:38 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.