Select Names NOT Starting with Vowels in MS SQL Server

Introduction

Sometime we may need to select the column results that the string not starting with Vowels. In this article, We will have a look, How to select the columns results not starting with Vowels. In our previous articles we discussed how to select columns results 

Example

As an example, we have a StudentDetails table, first lets select all the results from the table.

SELECT [StudentId]
      ,[FirstName]
      ,[LastName]
      ,[RegistrationNumber]
      ,[Degree]
      ,[CreatedDate]
      ,[CreatedBy]
  FROM [PracticalWorks].[Details].[StudentDetails]
Fig.1 Entire Table Results

Now lets select student names not starting with Vowels.

SELECT [StudentId]
      ,[FirstName]
      ,[LastName]
      ,[RegistrationNumber]
      ,[Degree]
      ,[CreatedDate]
      ,[CreatedBy]
  FROM [PracticalWorks].[Details].[StudentDetails] 
  WHERE [FirstName] NOT LIKE '[aeiou]%'
Fig.2 Column results not starting with Vowels

Conclusion

In this article we have discussed about selecting the columns results not starting with Vowels. I hope you all found this article useful. Please share your feedback in the comment section.

Watch Video Tutorial of this article
Video Tutorial of this Article

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Website Built with WordPress.com.

Up ↑

%d bloggers like this: