on 05-25-2007 6:43 AM
hi friends
I am having 8 sql queries each query return some values i want combine the result of all the queries can you any one tell me how to do this is there anyother way other than union and normalaisation action to get the result after combining the result i want to perform some calculation.
Thanks in advance
How do you want to combine or Join these queries? Do they have a common column?
Joe Montagna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
From what you are telling me it sounds like you should be able to do this on the SQL side possibly in a stored procedure.
Or if you want to use Business Logic - You will simply need to create an xMII (Illum) Document:
Add a Document action block and define your columns
Add a sequence with all your SQL query action blocks
Add a Row action block to map the output from the queries to the columns in the xMII document.
OR if you don't want to use Business Logic try an Aggregate query - that should also work.
Joe
DevaKrishnan,
Without more specific information and shape of your data, consider the folllowing...
Add a new xMII XML Document action block. Create the column names in the document which correspond to your desired output. After each SQL query, use the repeater action to walk through each row. Use the xMII XML Row action block to add the appropriate data from the repeater into the xMII XML document. Repeat this process on each of the 8 queries.
Regards,
Michael Teti
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Create a stored procedure or view on the database server and then just call the procedure from your FixedQuery. This can easily be done within a BLS transaction as well.
Regards,
Jeremy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.