Problems displaying this newsletter? View online.
SQL Server Central
Featured Contents
Question of the Day
The Voice of the DBA
 

Career Advice for Tech

Louis Davidson is a thoughtful individual, and I enjoy the opportunities I get to sit and chat with him. Recently, he wrote a great piece on his career advice for moving into tech. He discusses things he wishes he had known earlier in his career. It is an interesting read, especially in this era where AI seems to be disrupting not only our day-to-day jobs but also our employment options. Companies are still hiring, but at the same time it appears there are less positions available. When I look at the BLS, there is job growth in non-farm payrolls. Lenny's newsletter for tech shows something else: fewer engineers, more PMs. Brent's monthly posts have relatively few openings listed.

These give an interesting mix on the job market. The general sentiment I hear from others is that there are few jobs and people are trying to hold onto their jobs. In light of Louis' question, "What would make you leave your job?" I'm guessing some sort of contract guarantee would be necessary for many people. Or maybe a crazy salary, knowing that the high compensation might be a trade for much, much less security. These days, I see more people wanting security over high salaries. Outside the AI vendor world, that is.

I like the piece from Louis as it includes a lot of the things I learned to ask myself early on. What's my total compensation (salary in the piece), which is more than money. Benefits, time off, and more are a trade for the hours spent at work, so knowing that commitment is important. On-call, travel, and more take you away from life. Balance matters, since I assume most of you want a life outside of work. Know the contract in its entirety and get things in writing, especially any sort of offer.

I know a lot of people are nervous about a career in tech with all the AI assistance being used. The important thing to remember is that the AI LLM isn't smart. It's very capable, and it can do lots of work quickly. That can be useful work, or wasted effort (and tokens). We see plenty of that. More than ever, you need to show an employer they derive value from you showing up. Not you closing tickets, or pasting in code from SQL Server Central or an LLM chat, but actually working as a teammate. Guiding, judging, thinking about the implications, and evaluating solutions. Whether in dev, ops, or management.

Bring value, and you have a career. Looking for a shortcut, not growing your skills, blindly trusting teammates (human or machine), and you might find yourself struggling to move forward (or even remain employed).

I still think IT is a viable, and lucrative career. It's not easy, but nothing is. The trades (electrician, plumber, welder, etc.) are things I hear people recommend, but the reality is that all these jobs can be hard, and might not be as safe as you think. Ultimately, if you enjoy something, you'll put up with the downsides of the job. If you hate the work, nothing makes it better.

 

Steve Jones - SSC Editor

Join the debate, and respond to today's editorial on the forums

 
 Featured Contents
SQLServerCentral Article

How to Store AI Output in SQL Server: A Practical Data Model

vgupta from SQLServerCentral

Learn how to store AI output in SQL Server with a practical schema for model lineage, JSON, human review, citations, and SQL Server 2025 vectors.

External Article

Simple way to export SQL Server data to Text Files

Additional Articles from MSSQLTips.com

You need to share selected data from your SQL Server database with an external user without providing access to the database. What are ways you can export data from SQL Server?

Blog Post

From the SQL Server Central Blogs - What's New in SQL Server for the Developer: SQL Server 2012

Jeff Taylor from Jeff Taylor

Part 1 of my What's New in SQL Server for the Developer series. IIF, CHOOSE, TRY_CONVERT, FORMAT, THROW, SEQUENCE, OFFSET/FETCH and EOMONTH, with examples you can run today.

Blog Post

From the SQL Server Central Blogs - Flyway Tips: More Object History

Steve Jones - SSC Editor from The Voice of the DBA

I wrote about Flyway Desktop Object History in a previous tip. This feature has been enhanced, so I wanted to write an update. More History The changes now can...

SQL Server Advanced Troubleshooting and Performance Tuning: Best Practices and Techniques

Site Owners from SQLServerCentral

This practical book provides a comprehensive overview of troubleshooting and performance tuning best practices for Microsoft SQL Server. Database engineers, including database developers and administrators, will learn how to identify performance issues, troubleshoot the system in a holistic fashion, and properly prioritize tuning efforts to attain the best system performance possible.

 

 Question of the Day

Today's question (by Steve Jones - SSC Editor):

 

Severe Errors

Which class of errors are automatically written to the error log?

Think you know the answer? Click here, and find out if you are right.

 

 

 Yesterday's Question of the Day (by Steve Jones - SSC Editor)

Missing Returns

I have a few tables in my SQL 2025 database:

CREATE TABLE [dbo].[Customer]
(
[CustomerID] [int] NOT NULL,
[CustomerName] [varchar] (200) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[AddressKey] [int] NULL,
[CustomerStatus] [int] NULL,
[CustomerContact] [varchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ContactEmail] [varchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[PreferredName] [char] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Customer] ADD CONSTRAINT [CustomerPK] PRIMARY KEY CLUSTERED ([CustomerID]) ON [PRIMARY]
GO
CREATE TABLE [dbo].[Orders]
(
[OrderID] [int] NOT NULL,
[CustomerID] [int] NOT NULL,
[ProductID] [int] NOT NULL,
[OrderDate] [date] NOT NULL,
[Quantity] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Orders] ADD CONSTRAINT [PK__Orders__C3905BAFE0146D59] PRIMARY KEY CLUSTERED ([OrderID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Orders] ADD CONSTRAINT [FK_Orders_Customers] FOREIGN KEY ([CustomerID]) REFERENCES [dbo].[Customers] ([CustomerID])
GO
ALTER TABLE [dbo].[Orders] ADD CONSTRAINT [FK_Orders_Products] FOREIGN KEY ([ProductID]) REFERENCES [dbo].[Products] ([ProductID])
GO
CREATE TABLE dbo.CustomerReturn
( EntryID INT NOT NULL CONSTRAINT CustomerReturnPK PRIMARY KEY
, CustomerID INT
, ReturnDate DATETIME
, OrderID INT NOT NULL
)
GO

There are multiple rows in all these tables. I am trying to find how many customers have never returned anything, and I run this:

SELECT count(*)
FROM dbo.Customer
WHERE CustomerID NOT IN
      (
          SELECT CustomerID FROM dbo.CustomerReturn
      );

I get zero rows, but I know there are customers who have not returned anything. What is wrong?

Answer: The NOT IN doesn't work if any row in dbo.CustomerReturn has a NULL in the CustomerID column

Explanation: While it's possible I've misread the data, the more likely issue is that NOT IN fails if there are any rows returned with a NULL. You can see this with this code:

SELECT MockTable.ID,
       MockTable.Status
FROM
(
    VALUES
        (1, 'Active'),
        (2, 'Pending'),
        (3, 'Inactive')
) AS MockTable (ID, Status)
WHERE ID NOT IN
      (
          SELECT id FROM (VALUES (1), (2), (NULL)) AS n (id)
      )

Ref: IN - https://learn.microsoft.com/en-us/sql/t-sql/language-elements/in-transact-sql?view=sql-server-ver17

Discuss this question and answer on the forums

 

 

 

Database Pros Who Need Your Help

Here's a few of the new posts today on the forums. To see more, visit the forums.


SQL Server 2017 - Administration
Weird problem altering logins with sysadmin account - Has anyone ever seen this before? I have sysadmin permission on a server. I tried to run code to revoke connect to a login (REVOKE CONNECT TO [MyDomain\WindowsSecurityGroup];), which failed with this error: Msg 15151, Level 16, State 1, Line 5 Cannot find the user 'MyDomain\WindowsSecurityGroup', because it does not exist or you do not […]
Editorials
Moving to a New Platform - Comments posted to this topic are about the item Moving to a New Platform
An Unlimited Token Budget - Comments posted to this topic are about the item An Unlimited Token Budget
Data Lost in the Cloud - Comments posted to this topic are about the item Data Lost in the Cloud
Pay for Performance - Comments posted to this topic are about the item Pay for Performance
People Matter - Comments posted to this topic are about the item People Matter
Helping an English Student with R - Comments posted to this topic are about the item Helping an English Student with R
Article Discussions by Author
The Speed of Count - Comments posted to this topic are about the item The Speed of Count
Detecting Outliers in Power BI Using IQR - Comments posted to this topic are about the item Detecting Outliers in Power BI Using IQR
Why Successful SQL Server Backups Are Not Enough - Comments posted to this topic are about the item Why Successful SQL Server Backups Are Not Enough
Adding Bits II - Comments posted to this topic are about the item Adding Bits II
Switching Schema II - Comments posted to this topic are about the item Switching Schema II
A Practical Approach to Automating SQL Server Email Notifications - Comments posted to this topic are about the item A Practical Approach to Automating SQL Server Email Notifications
Server-level Roles - Comments posted to this topic are about the item Server-level Roles
Tracking Inserted, Updated, and Deleted Rows with SQL Server OUTPUT - Comments posted to this topic are about the item Tracking Inserted, Updated, and Deleted Rows with SQL Server OUTPUT
 

 

RSS FeedTwitter

This email has been sent to {email}. To be removed from this list, please click here. If you have any problems leaving the list, please contact the webmaster@sqlservercentral.com. This newsletter was sent to you because you signed up at SQLServerCentral.com.
©2019 Redgate Software Ltd, Newnham House, Cambridge Business Park, Cambridge, CB4 0WZ, United Kingdom. All rights reserved.
webmaster@sqlservercentral.com

 

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -