I need a help!!!

Posts   
 
    
fatihtat
User
Posts: 15
Joined: 23-Feb-2010
# Posted on: 24-Mar-2010 08:21:00   

Hi everyone, i have a different scenario for getting data with calculation. I have two table in the database that one is station, the other is data. I want to get only sum of root station. However, the users can insert data only child station. How do i do this? I added a picture demostrate the situation.

Walaa avatar
Walaa
Support Team
Posts: 14994
Joined: 21-Aug-2005
# Posted on: 24-Mar-2010 10:51:00   

I'm not sure what you want or what's the problem.

So would you please exaplain it in more details and step by step, mabe by posting code snippets of what you have tried.

fatihtat
User
Posts: 15
Joined: 23-Feb-2010
# Posted on: 24-Mar-2010 14:27:34   

I have a table that include the station information. I have a table that include the data of the station.

Stations are two type; parent and child. There are a self-relation on the table.

I want to get data from table, but i want to calculate value from child datas and display this data on the parent station like parent station data.

I hope this is clear. I added a picture for station, data tables and wanted result table. You can see it as attachment.

Walaa avatar
Walaa
Support Team
Posts: 14994
Joined: 21-Aug-2005
# Posted on: 24-Mar-2010 15:09:16   

what I understand is that you want to display fields of root/parent stations. With aggregated data of child stations.

Could you please post the SQL query of what you need to disaplay, and then we can work it out wih LLBLGen code.