470,614 Members | 1,440 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,614 developers. It's quick & easy.

How to relate an attribute of one table with the attributes of another related table

Hello everyone,

I am a new user of postgresql... I have to create a table named person

create table person (

personname varchar(40),

telefonnumber varchar(20)


Now, I have to create tables for personname and telefonnumber like:

create table personname (

firstname varchar(20),
lastname varchar(20)



create table telefonnumber (

countrycode varchar(20),
areacode varchar(20),
number int4
Now, when the personname table has attributes:
firstname = 'John'
lastname= 'Paul'

and similarly somevalues for telefonnumber table,

i must have the value of personname attribute in person table as 'John
Paul' and the telefonnumber attribute of person table must be the
integration of attributes in the telefonnumber table.

Pls. guide me how to make this possible?...Is there any way to do so?

Thanx for spending ur valuable time and waiting for ur reply.

Jaggy Bala.
Nov 11 '05 #1
0 1041

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by relaxedrob | last post: by
2 posts views Thread by gary.goodwin | last post: by
5 posts views Thread by =?Utf-8?B?UVNJRGV2ZWxvcGVy?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.