Como retornar somente linhas não nulas em Consulta (SELECT) existente na linguagem de Manipulação de Dados (DML) do Azure SQL/SQL Server
This T-SQL code performs a query on the "erp. Collaborators" with a specific condition. I'll explain each part
of the code:SELECTContributor, Admission AS FirstDay
:FROM erp. Collaborators
:Dismissal IS NOT NULL:WHERE
Therefore, the code returns the employees and the date of admission (renamed to "FirstDay") from the "erp. Employees", but only for those who have been laid off, i.e. whose "Dismissal" column is not null. This query is useful when you want to get specific information about laid-off employees in an organization.
Data Scientist and Consultant for Digital and Analytics Solutions
@fabioms