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: multiple tables query
PostPosted: Wed May 05, 2010 1:21 pm 
Newbie

Joined: Wed May 05, 2010 1:16 pm
Posts: 7
I am confused now. i created the xml files, the back end c# code properties and all relationship between files, now i need to call a wcf service to return a list of different colunms? how to do that? i have been trying so many things...

select a.proj_id,a.manager_empid,b.activity_id,b.last_dml_dttm,c.descr,d.user_name
,d.first_name || ' ' || d.last_name as Name
from table a,
table b,
table c,
table d
where a.proj_id=:project_id
and a.proj_id=b.proj_id
and a.proj_id=c.proj_id
and a.manager_empid=d.user_id
and b.last_dml_dttm =(select max(last_dml_dttm) from project_activity where proj_id=:project_id);

i have no luck, where to start... do i use the objects to build that query and i can i build a query like that?


Top
 Profile  
 
 Post subject: Re: multiple tables query
PostPosted: Thu May 06, 2010 3:40 am 
Beginner
Beginner

Joined: Fri Feb 27, 2009 6:07 am
Posts: 38
Location: Moscow,Russia
It is possible, if you define [DataContract] for all objects in the query.


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.