Which product was purchased the most? T-SQL
Suppose you had a list of product sales and were curious about which one was sold the most? It’s a...
2012-04-02
9,415 reads
Suppose you had a list of product sales and were curious about which one was sold the most? It’s a...
2012-04-02
9,415 reads
I know this isn't related to SQL Server, but it is related to security and privacy.
If an employer or...
2012-04-02
2,398 reads
One of the things I like about SQLSaturday is that it’s a place to try new ideas. This year on...
2012-04-01
692 reads
Over and over again, I get asked which DBA books I recommend. With this in mind, this month’s qustion is...
2012-04-01
1,115 reads
After installing the SQL Server 2012 on my laptop, I found there is only online document available, no local book...
2012-04-01
26,001 reads
As I have announced in my DevWeek and SQLbits sessions, you can find my session materials
(slides & samples) here for download:...
2012-04-01
828 reads
LAUNCH If you have been hiding under a rock, you have probably not heard that SQL 2012 has launched. With it, some really cool features are now available to...
2012-04-01
4 reads
LAUNCH
If you have been hiding under a rock, you have probably not heard that SQL 2012 has launched. With it,...
2012-04-01
992 reads
if you run BACKUP DATABASE T-SQL, there is a parameter STATS which reports the percentage complete, However when you run the...
2012-03-31
1,922 reads
I was just looking at the schedule for Houston, an amazing 10 tracks for this event on April 21, 2012....
2012-03-31
1,525 reads
I’m excited to announce the release of a new open-source project that fully automates...
One of my favourite features of SQL Server 2022 was the T-SQL Snapshot Backups....
By Steve Jones
I have said and written this many times: Redgate Software is the type of...
Comments posted to this topic are about the item Optional Parameter Plan Optimization in...
Comments posted to this topic are about the item AI Experience Gap that we...
There is a table tmp_tab:
CREATE TABLE tmp_tab ( id int, val int );
INSERT INTO tmp_tab VALUES (1, 1), (2, NULL), (3, 3), (4, 4), (5, 5);You want to order the rows ids by the following expression:
ISNULL(val, id) + 1Which of the following queries produces the expected ordering and why? (Select all correct) See possible answers