Selecting Top N Rows from Excel Source
Excel is a significant source of data in most enterprises. Therefore there is a large amount of Excel work being...
2010-02-20
273 reads
Excel is a significant source of data in most enterprises. Therefore there is a large amount of Excel work being...
2010-02-20
273 reads
Any of us can work with some simple MDX queries and get them to do what we want, but in...
2010-02-20
295 reads
Security in SSAS is a simple yet powerful application of windows integrated security. MDX adds extra power to this by...
2010-02-20
335 reads
There are sometimes some cool things you can do with a language that is not really it’s primary focus. T-SQL...
2010-02-20
400 reads
I often get asked when we are discussing loading dimension tables in SSIS, why the key columns from the table...
2010-02-20
355 reads
Ran across this in Make Magazine, http://www.bigkidbike.com/, these are totally custom bikes, with names like Bigger Wheel, Lizard, and Kitten....
2010-02-19
551 reads
I posted a note to allow snapshots to be backed up in SQL Server. The inability to do so, and...
2010-02-19
1,480 reads
I was having a conversation recently with a friend and former co-worker of mine. He's bounced around here and there,...
2010-02-19
798 reads
Microsoft has provided a free tool that allows you to easily create a SQL Azure database, and then synchronize the...
2010-02-19
1,578 reads
Recently a client requested to create a Reporting Services expression that emulated the CASE WHEN statement from T-SQL. The expression...
2010-02-19
4,291 reads
By Steve Jones
I type fairly well. Well, I type fast, but I do wear out a...
By ReviewMyDB
Index maintenance has always meant nightly jobs and a window you have to defend....
I’m sure you’ve all heard the tale of Goldilocks and the Three Bears, but...
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