Label:1, before the project, the database was designed with PowerDesigner, because at the time of the design did not notice, the type of int did not give length When you build the database, Oracle defaults to the type that you generate, which is a large type of bigdecimal. I felt nothing at the time. In the background, the new one bigdecimal out and then it's saved. But then a colleague in the statistical data record, COUNT (*) Statistics is also bigdecimal this time with hibernate turn very tro
converted to columns, and in that specifies which specific rows to convert, and with these we cannot understand the following SQL: SELECT *From (Selectmonth, prd_type_id, amountFrom All_saleswhereYear = 2003 and prd_type_id in (1,2,3)) pivot ( sum (amount) for (month, prd_type_i d) in ((1, 1) as Jan_prd_type_1, (2, 2) as Feb_prd_type_2, (3, 3) as Mar _prd_type_3, (4, 2) as apr_prd_type_2); Using multiple aggregate functions in a transformationSELECT *From (Selectmonth, prd_type_id, a
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.