Datasources
Hi,
First, apologize for my english... i'll try to be as clear as i can...
I'm working on FastReport4, I've made 2 datasources (let them called "DS1" and "DS2")... i'd like to make a 3rd DataSource : "DS3" wich use the data from "DS1" and "DS2" but i don't know how is the syntax to use them in "DS3".
Does somebody can help me [img]style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":unsure:" border="0" alt="unsure.gif" /> Thanks.[/img]
First, apologize for my english... i'll try to be as clear as i can...
I'm working on FastReport4, I've made 2 datasources (let them called "DS1" and "DS2")... i'd like to make a 3rd DataSource : "DS3" wich use the data from "DS1" and "DS2" but i don't know how is the syntax to use them in "DS3".
Does somebody can help me [img]style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":unsure:" border="0" alt="unsure.gif" /> Thanks.[/img]
Comments
Mick
I don't know if I'm really clear so there is a "graphical" explanation :
QUERY1:
OrderN?° Price
1234 248
1452 132
7485 784
QUERY2:
OrderN?° Price
7485 453
1234 250
1452 122
QUERY3: (like i want it to be)
OrderN?° Delta
1234 +2
7485 -331
1452 -10
Other solution - is it possible in your case to construct the third query to hold all the information like:
SELECT a.Price1, b.Price2, (a.Price1 - b.Price2) as Delta
FROM table1 a, table2 b
WHERE ...
Mick
a.Price1 is not recognized in my request, i tried to wrote it : [a.Price1] or <a.Price1> or <a."Price1"> but it seems that it doesn't work anyway.
I don't know if i have to use the IBXDataset name or IBXDataset username... I get lost
My select statement was only the idea to follow and to convert it to your database syntax.
Write here both full select statements you use to get results which you showed in a graphic form. It will help me to understand your issue.
Mick