...
Example_Table | |
---|---|
Row | InvoiceDate |
1 |
|
2 |
|
3 |
|
Select from SELECT … FROM Example_Table WHERE … | Rows #s returned | |||||
---|---|---|---|---|---|---|
| Select InvoiceDate FROM Example_Table WHERE InvoiceDate >= 2024-01-03 |
...
Why not row # 2? |
...
| 1 | ||||
Why? |
...
should be converted internally to |
...
1 and 2 |
Target Value or Constant
Example: When run on | ||
---|---|---|
T-SQL Expression | DATEADD(DAY,-2,GETDATE()) | DATEADD(DAY,-2,CONVERT(DATE, GETDATE()) |
returns value |
| |
data type | datetime | date |
...