I have a report where a query named "Query1" is created using the default data items present in the package. When I look into the Tools ---> Show Generated SQL/MDX, IBM Cognos shows 2 generated Native SQL queries for the query named "Query1". How does 2 query get created --- Query1.0 & Query 1.1 ? Under what scenario does this happen? FYI --- The changes that is done in the environment is that a new model is added under a product family at the starting of this month. Could this be the reason why 2 SQL queries has been generated? Can someone explain what happens at the backend?
2 Generated SQL/MDX queries under a SQL query in IBM Cognos
1k Views Asked by user3215886 At
1
There are 1 best solutions below
Related Questions in SQL
- Can MVC.NET prevent SQL-injection at razor or controller level?
- SQL server not returning all rows
- When dealing with databases, does adding a different table when we can use a simple hash a good thing?
- Creating a parametrized field name for a SELECT clause
- Combine two rows based on common ID
- Column displays each count
- Slick query for one to optional one (zero or one) relationship
- Aggregate and count in PostgreSQL
- MAX and GROUP BY - SQL
- SQL statement for a tricky 2 table query
- How to create nested selects with sql?
- Pull and push data from and into sql databases using Excel VBA without pasting the data in Excel sheets
- Best Practice for adding columns to a Table in Oracle database
- SQL FIFO STACK using two tables
- SQL Query - Order by String (which contains number and chars)
Related Questions in COGNOS
- IBM Cognos _days_between function not working
- Average of top counts and use it in conditional prompts in Cognos
- Missing values in Cognos Report prompt
- Extract multiple Cognos report definitions
- Creating retention report in Cognos 10
- Using cognos report studio prompts in pass through SQL
- Cognos Framework manager alternatives on Linux only
- Cognos/Framework Manager: Double Counting
- COGNOS - Days Between Excluding Weekend
- Dynamic SQL versus using the model
- Cognos BI 10.1.2 how to create a new user?
- Cognos Crosstab Report Calculated Column Totalling Incorrectly
- How to reuse query and page in Cognos report when running reports on multiple levels
- Query in COGNOS (Report Studio)
- How to add custom css in Cognos?
Related Questions in NATIVE-SQL
- Native sql using entity framework without entity class
- Why to use the Hibernate Query addScalar method?
- Symfony & Doctrine : DQL Max() with groupBy
- How to configure default database schema for native queries in pure JPA?
- Dynamic Query in Oracle
- Write native SQL in Core Data
- Hibernate ResultTransformer with addEntity - what's the correct syntax?
- Does Hibernate using preparedStatement internally when native update query?
- How to escape '--' in hibernate createSqlQuery?
- I am having a hard time joining between unrelated domains in JPA
- How to make native query for nested projection in Spring Data JPA
- Horizontal Rows as Vertical Columns in SQL Server
- ConverterNotFoundException only in Testing time
- 2 Generated SQL/MDX queries under a SQL query in IBM Cognos
- Select n number of records from oracle database
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Generally, there are two reasons that you will see multiple separate queries in the generated SQL:
In the case of 1 you will end up with a cross join. In the case of 2, Cognos will retrieve the data separately from each source and then stitch them together in memory on the Cognos report server.
There may be other reasons that more than one separate query is shown in generated SQL but these two are the ones I've come across in my work.