Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to create a report without using data set, instead using a query I have joined tables that are shown in datagrid and I want those joined table to available in report the query is

SELECT OrderLine.PName,OrderLine.Qty,(Product.PUnitPrice*OrderLine.Qty)AS Price FROM Product JOIN OrderLine ON Product.PName = OrderLine.PName AND OrderLine.OId=(SELECT MAX(OId) FROM Orders)
Posted
Comments
Rojalin Sahoo 9-Nov-15 3:50am    
what is your problem?Did you get any error? There should be Where clause in place of And.
OriginalGriff 9-Nov-15 4:19am    
And?
What happens?
What does it do that you didn't expect, or not do that you did?
What help do you need?
Sinisa Hajnal 9-Nov-15 4:22am    
Please use Improve question link and describe your problem clearly. Also, what have you tried?

1 solution

create store procedure in sql
by using the procedure you create report
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900