Oracle Merge function content

Source: Internet
Author: User

--minus to go to the difference set, take the first set to have one but the second set does not, and sort by the first field
SelectT.bumenbm fromT_HQ_BM TminusSelectB.bumenbm fromt_hq_bm2 B--intersect intersection, take two sets of all, and sort by the first fieldSelectT.bumenbm fromT_HQ_BM TintersectSelectB.bumenbm fromt_hq_bm2 b--union to re-merge, to repeat the record, and to sort by the first fieldSelectT.bumenbm fromT_HQ_BM TUnionSelectB.bumenbm fromt_hq_bm2 B--union All has a heavy merge, does not go to duplicate records, does not sortSelectT.bumenbm fromT_HQ_BM TUnion AllSelectB.bumenbm fromt_hq_bm2 B--order by, coincident and sortedSelectT.bumenbm fromT_HQ_BM TUnion AllSelectB.bumenbm fromT_HQ_BM2 bOrder by 1 desc

Oracle Merge function content

Related Article

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.