2012-11-21 (first published: 2012-10-02)
1,588 reads
2012-11-21 (first published: 2012-10-02)
1,588 reads
2012-11-16 (first published: 2012-10-02)
1,205 reads
Constructs a restore script for all databases on the server from backup history.
2012-11-12 (first published: 2012-09-26)
1,235 reads
Find all columns containing a string value across all tables and schemas.
2012-11-07 (first published: 2012-10-12)
2,086 reads
It shrinks all log files for the databases created by users.
2012-11-02 (first published: 2012-09-27)
3,946 reads
2012-10-30 (first published: 2012-10-12)
2,327 reads
This stored procedure helps you list all tables, stored procedures, functions, view and triggers in a database.
2012-10-29 (first published: 2012-10-03)
1,887 reads
2012-10-26 (first published: 2012-10-02)
955 reads
2012-10-25 (first published: 2012-10-12)
1,954 reads
2012-10-23 (first published: 2012-09-12)
2,978 reads
By Steve Jones
I type fairly well. Well, I type fast, but I do wear out a...
By way of background, a while back I did video called “My New Favourite...
By ReviewMyDB
Index maintenance has always meant nightly jobs and a window you have to defend....
Comments posted to this topic are about the item SQL Art, Part 4: Happy...
Comments posted to this topic are about the item How We Handled a Vendor...
Comments posted to this topic are about the item Cognitive Coverage
I have this data in the dbo.Commission table in a SQL Server 2022 database.
salesperson commission Brian 12 Brian 16 Andy 7 Andy 14 Andy 21 Steve 20 Steve NULLAll the data is a varchar, and I decide to run this query to get the totals for each salesperson.
SELECT SalesPerson
, AVG(TRY_PARSE(Commission AS int)) AS TotalCommission
FROM commission
GROUP BY SalesPerson
GO
What average commission is calculated for Steve? See possible answers