answersLogoWhite

0

There are three types of SQL:

1.	Cognos SQL

2.	Native SQL

3.	Pass-through SQL

Cognos SQL

Framework Manager generates Cognos SQL in a more efficient manner in order to keep its functionality. It is common for Cognos SQL to be translated into Native SQL before being transmitted to the database for processing. Some actions or functions may not be supported by the database in some instances. Only a portion of the Cognos SQL is transmitted to the database in these situations. As a result, the database handles part of the query and the Cognos server handles the rest.

Advantages:

  1. Has the ability to include metadata from many sources.

  2. Reduce the number of database constraints

  3. Interact more effectively with Cognos applications.

Disadvantages:

You cannot use non standard SQL.

Native SQL

Databases such as Oracle, SQL Server, and DB2 all support SQL. Using Native SQL in a model query subject with many data sources is not possible.

Advantages:

  1. All relevant query subjects are optimized for performance.

  2. You can utilize SQL that is specific to the database you are using.

Disadvantages:

  1. You cannot use SQL that the data source does not support for sub queries.

  2. The query subject may not be compatible with different database types.

Pass-through SQL

Allows the usage of Native SQL without regard to the limitations imposed on subqueries by the data source. Subqueries are not processed in Pass-Through SQL query subjects. It is instead supplied directly to the data source that generates query results for each subject.

It is important to keep in mind that pass-through SQL is delivered straight to the data source rather than being optimized by the Framework Manager, therefore performance will be lower than with the other query options.

Using curly brackets around your SQL statement in a Tabular SQL object causes that SQL statement to be passed through to the database. Cognos has not validated this SQL, so take that into consideration.

Step1: Create a Tabular SQL object. Write a statement surrounded with { }.

Actual:

SELECT * FROM ORDER HEADER

Pass-Through:

{SELECT * FROM ORDER HEADER}

Advantages:

  1. You can use any SQL supported by the database.

Disadvantages:

  1. Framework manager does not have the ability to automatically optimize performance. In some cases, the SQL won't function with another data source.
User Avatar

elinafransis01

Lvl 5
3y ago

What else can I help you with?

Related Questions

What are SQL classes and where can I take them?

SQL is a type of database/database language. There are many variants including MySQL, MS-SQL, ProsgreSQL, etc. Courses are offered at your local community college as well as many online resources.


Is SQL An application to manage Data in a database?

SQL is a language broad term to define a type of database. More specific ones are My SQL (open source) and MicroSoft SQL


What type of database does WikiAnswers use?

My SQL


How to define a user defined function in SQL?

Not possible in SQL, but possible in many vendor-specific SQL-based languages like Oracle PL/SQL.


Can you uninstall SQL server?

Yes. The mechanism would depend on the type of SQL installed. Microsoft SQL Server can be un-installed from the Control Panel->Add/Remove Programs.


What are SQL data types used for?

There are many purposes behind 'SQL' data types. The most common use of 'SQL' is with website programming and hosting services, as well as HTML coding.


What is the most common type of join in SQL?

Inner Join


What is a SQL Server instance?

An SQL Server instance is a complete SQL server and you can install many instances on a machine but you can have only 1 default instance.


Where can someone find information on clustering a SQL server?

There are many places where one can find information on clustering an SQL server. One can find this information from many different SQL related how-to sites.


How would one describe a SQL case?

SQL means Structure Query Language, which appears in 1974. It is a static and strong type of database which allows specify several operations on it. SQL was developed by IBM.


What does the acronym SQL stand for?

SQL stands for Structured Query Language as it refers to the type of database query or database server which accepts the query.


What companies offer SQL server integration services?

SQL Server Integration Services is not a type of service, it is a component of a software package called Microsoft SQL Server. The only company that offers this software is Microsoft.