vasu said:
Hi all
Iam in a problem. Anyone plz help me in retreving data into single
datagrid from two different queries.
Thanks in adavance
vasu
Is it possible to join the two queries into one? Use an "Inner Join".
If two seperate tables have a like column in each that can link to
each other, then you can use that like value to create a join of the
two tables. For example, if you are pulling "names" from one table in
your first query, and then "locations" from another table in your
second query, would you somehow be able to join the two tables on a
like value and run one query to create one dataset? Let's say that
each table has a column named "IDNumber" that represents a unique
number for a certain person on both tables. Example:
SELECT
Names.Firstname,
Names.LastName,
Locations.PrimaryOffice,
Locations.AlternateOffice
FROM
Names INNER JOIN Locations ON Names.IDNumber = Locations.IDNumber
order by Names.LastName
Then all you would need to do is set the source and bind that single
dataset to the control.