(SQL) Crystal Report, Linking two tables into one without breaking report, picture attached - sql

Tables in Question
I don't think I am going to be able to do what I am trying to, but thought it would be worth asking the question. In my point of sale system there is no report available for a specific type of order so I am writing a crystal report to be able to view the order type in question. Unfortunately the POS system only saves the document sequence field in one table. The document sequence is the number that is shown on a document when viewing it, all of the DocIDInternal numbers are gibberish that are not visible to employees when pulling up a document to view it.
I would like to be able to view the document sequence for both the order and the associated purchase order on my report, but I can not find a way to link both into the Documents table to access the document sequence without breaking the report. As far as I can tell I am able to link either the order or the purchase order to the document table, in order to view the document sequence field for one or the other. Neither the order table or the purchase order table contain the document sequence and it is only available through the documents table. I have searched and been unable to locate any other tables available to me that contain the document sequence field other than the documents table.

If you open Database Expert and go to the Links tab where you took the screenshot above. Double-click on the line linking your OrdersDtl and Document tables to edit the link. On the left side is a set of radio buttons that define the type of join to use with the tables. Try changing this value to "Left Outer Join" if the current selection is "Inner Join". This should solve the problem with it breaking the report, but I suspect there is more to troubleshoot before you will have the data your want from the Document table.
When Inner Join is used as the type of join, if there are no records found on the Documents table that correspond to the value of DocIdInternal on the OrdersDtl table, then the query returns no rows. When Left Outer Join is used, the query will always return all rows from the table on the left side of the join, even when no corresponding records are found on the right side of the join.
Once you have the report returning data again, now we need to determine why there are no records being linked from the Documents table. To do this, I would place the DocIdInternal database field on your report so you can verify it has a value on the OrdersDtl table. You may need to discuss this with your Database Administrator to determine if this is the proper way to link these tables.

Related

SAP Business objects how to create different kinds of join between different data providers

I have two data providers. One is a universe, one is an excel file. Excel file has column ID. I want to find ID,JOB_ID, Cost
I have created a merged dimension:- ID. When I create report with ID and Cost, I'm getting an outer joined result which is what I want. But when I add another attribute from universe it is being inner joined result. Where can I control this feature
You are ever so close. Here are the basics when working with a zero or one to many relationships. Credit for this goes to this blog post. I am copying it here if perchance that link goes dead.
As a rule of thumb , when trying to merge DP’s with a 1xN relationship
:
Merge the common fields
Use the dimension coming from the N side query
Create detail variables from the 1 side query for each dimension needed with associated dimension equal the merged dimension
Check "Show rows with empty dimension values" on Table formatting for each table using dimensions coming from both queries.
Here is a screen shot to highlight where to find the setting in step #4.

Pentaho merge two tables

I'm new to Pentaho.
This is the transformation I'm trying to do:
Import Transactions and Merchant and merge these two tables using MERCH_KEY
However, this isn't working, see below:
This is table Transactions:
And this is table Merchant:
And this is the Merge join:
This all seems good, but it's not working and I have no idea why.
From the preview, I can see the two tables are being imported, so how can I merge them?
Remove all fields except "MERCH_KEY" from the right-side list.
The Merge join step is a little misleading with its behavior, as it only allows you to click Get Fields and get ALL fields, but doesn't let you pick a single field in a dropdown.
As the name suggest, these are the key fields that will be compared in the join, so fields need to be in the correct order. In your case, you only need the one. The other input fields (from both tables) will be automatically added to the output stream, with fields from the second table getting renamed if duplicated.

Mapping Tables in Access Without ID

If I have multiple tables all from the same XML source, but one of those tables has a number of different items in one column, and no column specifying who those items belong to, while another table has a list of each person and an ID for each person is it possible to link the two tables, or would the person ID or name need to be present in the items table?
In a similar situation, I made a VBA routine that would crawl the database in search of whatever I entered.
Systematically following the few clues I had yielded a lot of information. The routine itself was just a few hundred lines of code.
Open Database
Get all Tables
For Each Table
Get all Fields
For Each Field
If Field type is text ... and
If Field size is not TOO Long ...
Search for string
If found, write to a results bucket
Next
Next
So my answer is Yes, it can be done. But,
There is painstaking work to get it running (depends really on your VBA expertise)
The more you know about your real-world connections, the better you can exploit the tool.

SQL Server tool that allows navigating through key relationships

Does anyone have a knowledge of a tool that allows to navigate over reliationships between entities in sql server database?
I want to be able to list all rows in a table and then (for selected row) jump to all rows that match (in a context of relation between tables).
The same thing can be done in LINQ to SQL by querying navigation properties but it's not convinient to do this in code all the time.
I tried to use LINQPad but query results are not interactive in this way - again it can be done in code.
Thanks for answers in advance:)
Try PL/SQL Developer, It should be working as you expect.
For eg: If we view a table, the 1st few rows of the table will be shown.
Then when you want to go to a child table or parent table from that. You had 2 types of hierarchy button for each.
The button circled in image was one of them. And this one particularly was for finding child references from this table.
On clicking it you will be show you the table references from this table using the foreign key relation ship. And on selecting one of them it will change the sql query to filter out with the table and column you selected.
The application was a bit different from other tools out in market, but once you got to know how to use it.
I think this is their home page

SQL Reporting Service - Data Model

I create a data model that would replace two cut down tables. With these two table I placed a Many to One relationships.
When I create reports that just uses a single table (This is the Destination table, within Data source views relationship) its missing records that should be displayed. The records that do not display are records that do no have a linked record in the other table.
Help
You probably need to create a query or a view that includes an outer join. Search your docs for OUTER JOIN. That should take you where you need to be. Topics should include LEFT, RIGHT, and FULL outer joins.