Skip to content

Tag: sql

How to aggregate data by SQL?

I am not a SQL developer, but I need to make a request to sample the movement of accounts for the last month, aggregate information by client country. I could only create an sample database but I …

How can i optimize the Trigger

I have checked a lot of Question asked Previously but was not able to get how do optimize this trigger ALTER trigger [dbo].[Expample] on [dbo].[AdminUsers] for update as begin declare @Id int …

Returning values from a database with a Substring

Let’s say I’ve got 3 product description fields with the values AC-120 XXX, AC-120,CCC and AC-120 BBB. How would I get that information from a table using only AC-120 as my search argument? I’ve tried using the subStr function but that won’t return any values either Answer LIKE is very…