X-Original-To: pgsql-sql-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id BB42A9FA441 for ; Thu, 29 Jun 2006 03:28:44 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 15091-08 for ; Thu, 29 Jun 2006 03:28:31 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from gateway.infics.com (gateway.infics.com [202.54.39.20]) by postgresql.org (Postfix) with ESMTP id BC31C9FA395 for ; Thu, 29 Jun 2006 03:28:27 -0300 (ADT) X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C69B45.3984F631" Subject: can any one solve this problem Date: Thu, 29 Jun 2006 11:58:23 +0530 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: can any one solve this problem Thread-Index: AcabRTkK+CZFdrIXQrKKhtHtgS6DQQ== From: "Penchalaiah P." To: X-imss-version: 2.040 X-imss-result: Passed X-imss-scores: Clean:86.42201 C:2 M:4 S:5 R:5 X-imss-settings: Baseline:2 C:1 M:1 S:1 R:1 (0.1500 0.1500) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/311 X-Sequence-Number: 25547 This is a multi-part message in MIME format. ------_=_NextPart_001_01C69B45.3984F631 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable emp_table( Cdacno varchar (7) (primary key), Personal_No varchar (10)(foreign key), Name varchar (40)); =0D personal_table ( Personal_No varchar (10) (primary key), Cdacno varchar (7), Date_Of_Birth date); =0D unit_master ( Unit id varchar (10) (primary key), Unit_Name varchar(25), Unit_Location varchar(25)); =0D Unit_Details_table ( Unit_id varchar (foreign key) CDA_No varchar(7) foreign key); =0D rank_table( Rank_ID numeric(2)(primary key), Rank_Code numeric(2), Rank_Name varchar (25)); =0D Rank_Date_table ( Rank_Date__ID numeric NOT NULL, CDA_No varchar(7) (foreign key), Rank_ID numeric(2)); =0D My query is ....if I give cdacno I have to get per_no from personal_table.. With this I have to display rank_name from rank_table ,name from emp_table, unit_name from unit_master.. =0D Like that if I give per_no I have to get cdacno from emp_table.. .. With this I have to display rank_name from rank_table ,name from emp_table, unit_name from unit_master.. =0D And here unit_name is depends on unit_details_table ..and rank_name is depends on rank_date_table..=0D =0D Doing these things first it has to check when we r giving cdacno.. whether per_no is null or not.. like this if I give per_no it has to check cdacno is null or not. =0D Let me know the solution.. But I written one function to this to get per_no if I give cdacno...................... =0D =0D Thanks & Regards Penchal reddy | Software Engineer =0D Infinite Computer Solutions | Exciting Times...Infinite Possibilities... SEI-CMMI level 5 | ISO 9001:2000 IT SERVICES | BPO Telecom | Finance | Healthcare | Manufacturing | Energy & Utilities | Retail & Distribution | Government Tel +91-80-5193-0000(Ext:503)| Fax +91-80-51930009 | Cell No +91-9980012376|www.infics.com =0D Information transmitted by this e-mail is proprietary to Infinite Computer Solutions and/ or its Customers and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please notify us immediately at info.in@infics.com and delete this mail from your records. =0D Information transmitted by this e-mail is proprietary to Infinite Computer= Solutions and / or its Customers and is intended for use only by the= individual or the entity to which it is addressed, and may contain= information that is privileged, confidential or exempt from disclosure= under applicable law. If you are not the intended recipient or it appears= that this mail has been forwarded to you without proper authority, you are= notified that any use or dissemination of this information in any manner= is strictly prohibited. In such cases, please notify us immediately at= info.in@infics.com and delete this email from your records. ------_=_NextPart_001_01C69B45.3984F631 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

emp_table(

Cdacno varchar (7) (primary= key),

Personal_No varchar= (10)(foreign key),

Name varchar= (40));

 

personal_table (

Personal_No varchar (10)= (primary key),

Cdacno varchar= (7),

Date_Of_Birth= date);

 

unit_master (

Unit id varchar (10) (primary= key),

Unit_Name= varchar(25),

Unit_Location= varchar(25));

 

Unit_Details_table (

 Unit_id varchar (foreign= key)

CDA_No varchar(7) foreign= key);

 

rank_table(

Rank_ID numeric(2)(primary= key),

Rank_Code= numeric(2),

Rank_Name varchar= (25));

 

Rank_Date_table (

  Rank_Date__ID numeric= NOT NULL,

  CDA_No varchar(7)= (foreign key),

  Rank_ID= numeric(2));

 

My query is ….if I give cdacno I have to get= per_no from personal_table.. With this I have to display rank_name from rank_table ,name from emp_table, unit_name from= unit_master..

 

Like that if I give per_no I have to get cdacno from emp_table.. .. With this I have to display rank_name from rank_table ,name= from emp_table, unit_name from unit_master..

 

And here unit_name is depends on unit_details_table= ..and rank_name is depends on rank_date_table..

 

Doing these things first it has to check when we r= giving cdacno.. whether  per_no is null or not.. like this if I give per_no= it has to check cdacno is null or not.

 

Let me know the solution..

But I written one function to this to get per_no if I= give cdacno………………….<= /font>

 

 

Thanks  & = Regards

Penchal reddy | Software Engineer           <= font color=3Dnavy>

Infinite Computer Solutions= | Exciting Times…Infinite Possibilities...=

SEI-CMMI level 5 | ISO 9001:2000

IT SERVICES | BPO            =             &nb= sp;            =             &nb= sp;            =             &nb= sp;            =             &nb= sp;            =             &nb= sp;            =             &nb= sp;            =         

Telecom | Financ= e |= Healthcare | Manufa= cturing |= Energy & Utilities | Retail & Distribution |= Government        = ;            &n= bsp;            = ;            &n= bsp;         

Tel= +91-80-5193-0000(Ext:503)| Fax  +91-80-51930009 | Cell No  +91-9980012376|www.infics.com         &nb= sp;

Information transmitted by this e-mail is proprietary to Infinite Computer Solutions and/ or its Customers and is intended for use only by the individual or entity to which it is addressed,= and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or= it appears that this mail has been forwarded to you without proper authority,= you are notified that any use or dissemination of this information in any= manner is strictly prohibited. In such cases, please notify us immediately= at info.in@infics.com and delete this mail from your= records.

 

Information= transmitted by this e-mail is proprietary to Infinite Computer Solutions= and / or its Customers and is intended for use only by the individual or= the entity to which it is addressed, and may contain information that is= privileged, confidential or exempt from disclosure under applicable law.= If you are not the intended recipient or it appears that this mail has= been forwarded to you without proper authority, you are notified that any= use or dissemination of this information in any manner is strictly= prohibited. In such cases, please notify us immediately at= info.in@infics.com and delete this email from your records.
------_=_NextPart_001_01C69B45.3984F631--