SQL Server join question -


This is on Microsoft SQL Server. We have a query where we are trying to join two tables on a field with numeric data.

A table has numeric (18,2) defined fields and in the second table, the decimal defined area (24, 4). When connecting with the original data types, the query has been hanged and we get out of patience before we finish (this is going on for 6 minutes ...) So we have created two areas both numeric (18,2) and curie 10 Tried to finish inside seconds Therefore, we tried to keep two areas in two decimal places (18,2) and then put the query again. Does anyone know the difference between decimal and numerical data types that will perform them in different ways?

The decimal and numeric datatype is the same thing in another SQL Server. Decimal [[P [, S])] and numerical [(P [S, S])] fixed precision and scale numbers when maximum precision is used Valid values ​​are from 10 to - 38 +1 10 ^ 38 - 1. The ISO synonyms for decimal are decimal and DC (P, S). Numerical functional is equal to decimal.

From that, I have heard about a difference that I am surprised about. I expected that the execution plan would be similar between 2 routes, can you check?


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -