PostgreSQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesPostgreSQL Help

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:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old April 16th, 2008, 01:22 AM
royz4u royz4u is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 1 royz4u User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 46 m 8 sec
Reputation Power: 0
Select from 3 tables to display unique data for each particular Case No

Hi Friends,
I have 3 tables from which i have to display a set of records, for one particular attribute .say : Case no.
But when i am writing the select statement, all the rows of that particular Case no are retrieved. and i am unable to repair the query, acc to my needs.
---------------------------------------------------------
my tables are
1. CASEFILING table - from where COMPLAINANT , RESPONDENT,COMPL_ADV,RESP_ADV to retrieve
2. COURTROOM table - from where CASESTAGEID to be retrieved
3. CASESTAGE table- from where CASESTAGE to be retrieved for a specific CASESTAGEID (from COURTROOM table)

CASEFILING , COURTROOM table have pkey as CASE_ID_IN
---------------------------------------------------------

Another thing, in COURTROOM table, there can be many records wrt only one CASE_ID_IN .But they have different HEARINGNO, which could be 1 ,2 .....and so on.

So while retrieving the data, i was using MAX(HEARINGNO).
But still i can retirive only one row, for only one caseno. and no result, for other case nos.

Pls Help
Thanks in advance
royz4u

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesPostgreSQL Help > Select from 3 tables to display unique data for each particular Case No


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