SQL Query single bank account repeat

Source: Internet
Author: User

Not one unit more bank account.

Today Chengdu company Xiangjiao payment when the unit name in the pop-up net silver to 1, from the bank to see is normal, just in the molecular group of Companies click Modify Bank save on the prompt error "bank account cannot be repeated"

Select *  from  Select bankacc,bankname,pk_accbank,unitname,ts,Count(pk_accbank)over by     from Bd_accbank)  where R>= 2 

Sure enough there was this problem.

When I do, I use SUM (pk_accbank) over (partition by BANKACC), and then the error ORA-01722 Invalid number

Ask the group of Chen Hai, is the sum of the column has a problem, I summed up the numbers.

Low-level error, using Count

SQL Query single bank account repeat

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.