Viewing 15 posts - 1 through 15 (of 825 total)
The answer is correct:
"3 out of 10 rows affected"
Case sensitivity strikes again. ??
June 18, 2026 at 7:08 am
In this case "GO" is the name of the column:
select @@version go
is the same as
select @@version AS go
or
select go = @@version
Maybe an error is generated if I use semicolon ";"
select...
June 5, 2026 at 7:00 am
The correct answer is 'Neither' because the identity column can be reseeded; therefore, a continuous sequence is not guaranteed.
March 27, 2026 at 8:10 am
If I want to check that ONLY the CustomerContactFirstName and CustomerContactLastName are update, then the right command is
IF COLUMNS_UPDATED ()= 0x0C0000
If I want to check that the CustomerContactFirstName and CustomerContactLastName...
August 27, 2025 at 6:48 am
The answer is correct, but the explanation is wrong. The error in the second statement occurs because, after the keyword DEFAULT, you must specify an expression, not the name of...
June 20, 2025 at 6:55 am
The truly correct answer is "Each full beer name and the first 20 characters of the beer description".
If "beerdescription" is NVARCHAR(MAX), than the "select" returns only 10 characters.
April 9, 2025 at 7:09 am
uhm, what about "Temporal tables"?
"Temporal tables" do not need to be backed up and restored, you can see values in the "past" and restore them with a query.
"SQL Server 2016...
March 24, 2025 at 8:07 am
UPDATE myTable WITH(NOLOCK) is not permitted by SQL SERVER, so, it's impossible to try.
In any case, I prefer the option "SET TRANSACTION ISOLATION LEVEL SNAPSHOT", so, I can read committed...
December 9, 2024 at 11:23 am
The correct answer is "ServerProperty with the EngineEdition". It returns 6 for "Azure Synapse Analytics".
September 6, 2024 at 6:55 am
Not Exists vs Not In:
SELECT *
FROM dbo.Candidates AS c
WHERE
NOT exists
( SELECT PersonName FROM dbo.Person WHERE Person.PersonName = c.PersonName);
July 29, 2024 at 7:41 am
Viewing 15 posts - 1 through 15 (of 825 total)