What is the difference between SQL Server and Oracle?

Source: Internet
Author: User

Sqlserver does not support set difference and intersection operations.

I recently developed a database based on sqlserver2000.Program. There is a part of the computation that requires a large number of aggregate queries. I found a query operation statement through the data.

Except

The syntax structure is:

(Sql1)
Except
(Sql2)

However, no matter how I execute it, an error occurs:

There is a syntax error near the keyword 'couldn t'

My analysis is that since minus (set difference calculation) in Oracle is also used in this way, it should be no problem to use it like this. But it cannot. No way. I checked a lot of information on the Internet and on the csdn forum. It indicates that sqlserver does not support this set operation at all, and only supports the union operation ). We need to use the not in statement to create the intersection and difference set of the set. We all know that the not in statement has poor performance. Moreover, it is not easy to use such statements as minus. I really don't know.

Is SQL server really worse than oracle? What is the difference?

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.