lbravo

I have spent all my life creating applications, writing software and automating processes. My entire career has been an exciting journey that I'm very proud of. I had the privilege of creating one of the first websites in the world, built an application that was used to estimate traffic volumes in large cities such as Rome and Sao Paulo, created an accounting system, received a national award for my IT contributions.

Collaborating closely with exceptional talents from across the globe, I proudly hold the distinction of being a Microsoft charter member. My credentials encompass Microsoft certifications in SQL Server, database development, and Azure. Currently, I am diligently pursuing an Artificial Intelligence certification from Microsoft.

I have also embarked on a journey of knowledge sharing, with the publication of my inaugural technical articles, with more in the pipeline.
Outside the domain of computers, I enjoy cooking, going to the beach, jogging, writing, teaching and contributing as much as I can to make this world a better place for us all. If I don't feel passionate about something, I just don't do it.

Blogs

A Last Minute Trip to the EU

By

My life has some crazy travel stretches for sure. Between speaking, office visits, customer...

Part 3 of 3: Tuning DiskANN — R, Alpha, L, Beam Width, Recall and Latency

By

In Part 1, we saw how ‘Vamana’ represents vectors as nodes, connects them with...

Automated SQL Server Benchmarking with HammerDB and Docker: A Complete Testing Framework

By

I’m excited to announce the release of a new open-source project that fully automates...

Read the latest Blogs

Forums

ORDER BY alias

By aniap

Comments posted to this topic are about the item ORDER BY alias

Optional Parameter Plan Optimization in SQL Server 2025: Fixing the Kitchen-Sink Search Procedure

By vgupta

Comments posted to this topic are about the item Optional Parameter Plan Optimization in...

AI Experience Gap that we keep talking about

By Pat Wright

Comments posted to this topic are about the item AI Experience Gap that we...

Visit the forum

Question of the Day

ORDER BY alias

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) + 1
Which of the following queries produces the expected ordering and why? (Select all correct)

See possible answers