Viewing 15 posts - 61 through 75 (of 1,470 total)
This took a bit of head scratching. I managed to solve it, assuming that there are a max of 3 parts per group (as per your example).
I then added a...
July 18, 2024 at 8:42 am
Create some sample data
DECLARE @SAMPLE_SIZE BIGINT = 1000;
DECLARE
@MinInt int = 10000
,...
July 12, 2024 at 6:23 am
This article from Brent Ozar might help
June 20, 2024 at 2:53 am
A TVP is a table variable. Variables do not have any statistics. Historically SQL always assumed that a table variable contained exactly 1 record. In SQL 2019, this was changed...
June 20, 2024 at 2:35 am
To create sample data for people to assist you with ...
CREATE TABLE #TsetData (RBDCTL int, RBDTTC int, RBDTYR int);
INSERT INTO #TsetData ( RBDCTL, RBDTTC, RBDTYR )
VALUES...
April 11, 2024 at 2:35 pm
OK, try it as a basic aggregate
SELECT RBDCTL
, RBDTTC
...
April 11, 2024 at 2:33 pm
Try using a window function
SELECT RBDCTL
, RBDTTC
, MaxYear...
April 11, 2024 at 2:06 pm
Since you have not provided an expected output, hopefully this will get you started
DECLARE @RefTable table (
ID ...
April 11, 2024 at 10:15 am
I use the following script to search for dependencies
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
DECLARE
@ObjectSchema SYSNAME = '' /* You can limit the...
February 26, 2024 at 8:16 am
...To make matters worse, sometimes the tablet simply does not work. It just sits there with a "loading profile" message. Sometimes the best solution is not an IT solution.
It...
February 22, 2024 at 2:39 pm
I tried Charindex (Name: ) and Charindex(Sal:) then seond - one but no luck yet 🙁
Please help me. Thank you
CharIndex only uses a single character. For a...
February 1, 2024 at 6:35 am
Something like this
CREATE TABLE #MyTable (ID int, DATA NVARCHAR(MAX))
INSERT INTO #MyTable values (1, 'ID:12345, Name: Chris , Tiger, Sal:3000, City: NYC')
...
January 31, 2024 at 9:09 am
I tried Charindex (Name: ) and Charindex(Sal:) then seond - one but no luck yet 🙁
Please help me. Thank you
CharIndex only uses a single character.
For a group of characters,...
January 31, 2024 at 8:54 am
Viewing 15 posts - 61 through 75 (of 1,470 total)