hussainian Posted November 10, 2009 Share Posted November 10, 2009 Hi!I'm in a situation where I need some database fields which are not possible to get in the main query.I throught that the datasets will solve my problem. But i just read that a dataset can only be used in a chart or a crosstab. Is it so? What is the alternative?My problem is likeI have a report showing some columns (col1, col2) from a table and company name (companyName) from another table.My query isselect A.col1, A.col2, B.companyName from TableA A, TableB B where ........The problem is that in a scenario, where there are no rows returned from tableA, companyName field in the report is also null. I want that whether there are rows returned from a tableA or not, my company name must be displayed. I guess I made my problem clear. Please give some suggestions.Thanks & Best Regards.AsadULLAH. Link to comment Share on other sites More sharing options...
hussainian Posted November 10, 2009 Author Share Posted November 10, 2009 Let me add one more thing that there is no relation between these two tables. Link to comment Share on other sites More sharing options...
lucianc Posted December 3, 2009 Share Posted December 3, 2009 hussainianWrote: My query is select A.col1, A.col2, B.companyName from TableA A, TableB B where ........ The problem is that in a scenario, where there are no rows returned from tableA, companyName field in the report is also null. I want that whether there are rows returned from a tableA or not, my company name must be displayed. Wouldn't an outer join work?Regards,Lucian Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now