Precautions for use of Birt

Source: Internet
Author: User

Sometimes it is necessary to sort the data when using Birt:

General sorting uses the sorting property of the control directly to sort in a positive and reverse order

But to put a piece of data in front, you need to classify the data when the SQL statement is introduced into the result bounds.

Examples of categorical statements:

SELECT case when T1. Due_dt<t1. Data_date then 1 ELSE 2 END as aa_sort

, T1. Report_date

, T1. Due_dt

, T2. Curr_cd_name

, T1. Subordinate_account

, T1. Tradetype

, T1. Amt

From RPT_FX_POSITION_PTB T1

Left JOIN TEST T2

On T1. CURR_CD = T2. Curr_cd

ORDER by T1. Due_dt ASC

This time the results set can be sorted according to Aa_sort , but the results will not be shown.

Precautions for use of Birt

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.