Viewing 9 posts - 1 through 9 (of 9 total)
I also tried it with:
total [bigint] NULL
Results are the same 10 records
To get the 8 records, the select statement should look like this:
SELECT
st.SalesPersonID
, st.total
, RANK () OVER (PARTITION BY st.SalesPersonID
ORDER...
February 12, 2025 at 1:59 pm
After correcting the script:
USE TEST
CREATE TABLE [dbo].[SalesTracking]
(
[SalesDate] [datetime] NULL,
[SalesPersonID] [int] NULL,
[CustomerID] [int] NOT NULL,
[PONumber] [varchar] (80) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[paid] [bit] NULL,
total [money] NULL
) ON [PRIMARY]
GO
CREATE CLUSTERED INDEX...
February 12, 2025 at 1:43 pm
Delving into a bit of "Rudolph the Red-Nosed Reindeer" trivia:
While the song does list all Nine of the reindeer, it does not specifically say that Santa used all of them...
December 26, 2024 at 2:22 pm
Am I missing something here?
If I am reading this correctly, Microsoft is saying that an Update lock is converted to an Exclusive lock.
"Only one transaction can obtain an update (U)...
January 4, 2021 at 2:33 pm
The implied multiplication comes into play because of the negative sign.
Think about Algebra
-100/-100*x can be written as -100/-100x
Algebra would solve this problem by multiplying the -100 and x first.
In our...
June 9, 2020 at 3:21 pm
SQL reads from left to right
Example 16/4/4 is interpreted as (16/4)/4 = 1 instead of 16/(4/4)=16
SQL is using implied multiplication.
Multiplication is interpreted as having higher precedence than division, so that...
June 9, 2020 at 2:55 pm
From
READ COMMITTED
Specifies that statements cannot read data that has been modified but not committed by other transactions. This prevents dirty reads. Data can be changed by other transactions...
February 18, 2020 at 2:42 pm
But if you sort by locale DESCENDING as in the possible answers, you will...
December 27, 2017 at 8:08 am
The correct answer is Movie
I had to add a Genre to the last record set and correct the syntax for the movie title [It's a Wonderful Life] to get...
December 27, 2017 at 7:55 am
Viewing 9 posts - 1 through 9 (of 9 total)
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy