These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Re: Need Help Sql and Mapped Domain Object
PostPosted: Fri Mar 18, 2005 10:46 am 
Newbie

Joined: Fri Mar 18, 2005 9:10 am
Posts: 6
Can any one please help me with following qeury

CDDB IS A TABLE
FCS_DIVISION IS A TABLE

I have a domian class mapped to CDDB table , no class mapped to FCS_DIVISION

I need a list of CDDB classes and FCS_DIVISION.FCSD_DESCRIPTIONs

SELECT CDDB.DEALER_NUM
CDDB.DEALERNAME,
CDDB.ADDRESS,
CDDB.CITY,
CDDB.STATE,
CDDB.ZIPCODE,
CDDB.TELEPHONE,
CDDB.PARTS_ACCT_NO,
CDDB.ZONE,
CDDB.DIVISION,
CDDB.DISTRICT ,
FCS_DIVISION.FCSD_DESCRIPTION
FROM CDDB, FCS_DIVISION
WHERE CDDB.DISTRICT = FCS_DIVISION.FCSD_CODE

thanks and regards,
Vinaypal Vemula


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 18, 2005 12:08 pm 
Regular
Regular

Joined: Tue Jan 27, 2004 12:22 pm
Posts: 103
Also map the other table.

_________________
Dencel
- The sun has never seen a shadow -


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.