How do I handle multiple rows in SSRS report?

I'm building a report...it's actually an invoice letter. On top, there's a field, Customer PO.

There's a main table, table A, and a second table, Table B. This field is in Table B and this table can have several rows with CustomerPO that relates to the main table, table A

I'm displaying CustomerPO on top of the report.

Is there anyway to have 2 SQL statements in a dataset? one to bring the customerPO and one to bring the rest of the data? I don't think because I tried it and "query designer" threw an error. Looks like there can only be one select statement.

Do I need to create a second dataset?? (I just thought of that)

report
LVL 8
CamilliaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jim HornSQL Server Data DudeCommented:
>Is there anyway to have 2 SQL statements in a dataset?
No.  Use two datasets to return two different sets.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CamilliaAuthor Commented:
So, for the "customer PO", I can use Dataset1 and for the rest of the report, dataset 2?
Jim HornSQL Server Data DudeCommented:
Can't really say based on the info/images you provide.  If CustomerPO is the same for all rows you could include that in the detail set, and in the expression do a First() to display the first CustomerPO value, knowing it's the same for all values.  Anything beyond that would better be served by two sets.
CamilliaAuthor Commented:
Thanks, Jim.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
SSRS

From novice to tech pro — start learning today.