Viewing 15 posts - 1 through 15 (of 622 total)
From the conversation it sounds like the OP has a string field that is actually holding multuiple pieces of information. The issue here is actually one of poor database design. ...
April 16, 2024 at 4:06 pm
With great power comes great responsibiity!
Yes it is techincally possible but I would strongly dicourage it as a design pattern. Much better to create a properly structured set of tables...
April 16, 2024 at 8:42 am
I have resorted to setting the DATEFIRST in the SQL Agent job, but I still want to know WHY SQL agent and Query window behave differently.
April 15, 2024 at 10:56 am
Interesting idea.
The HASH would effectively act as a proxy for the DirectoryFullPath.ID and DirectoryNameOfFile.ID and apart from the fact that they are calculated on the base data rather then added...
March 4, 2024 at 1:07 pm
As with other GPT coding experiences, both brilliant and stupid at the same time. The players table should not have the team in it. Firstly team name is unlikely to...
March 16, 2023 at 8:54 am
Although the original question wasn't clear, I think what the OP wants to know is the number of books in each status at the end of each day so a...
November 18, 2022 at 7:13 pm
I am actually trying to write a data quality trap becasue I need to report the date to a government agency. If the date eists in the correct format it...
November 18, 2022 at 7:07 pm
I love answering my own questions. The syntax is:
SELECT @MapRules.query('/root/collections/collection[groupby = "RoomNumber"]')
This give you the inner XML for the collection which I can convert to a SQL table and iterate...
October 14, 2022 at 1:02 pm
CSS support is still patchy, but a lot of that is because CSS is moving so quickly now and the parsing engine does not exist when viewing on older email...
September 29, 2022 at 4:37 pm
+1 for stairways.
EdEx and Udemy will have plenty of courese for free (or cheap for Udemy) but they may be focussed on mySQL or postgress rather than t-SQL but the...
September 14, 2022 at 9:41 pm
I have only scan -read the conversation and not opened the workbook, but it sounds like you want to move the day number to 3 columns and populate those columns...
September 14, 2022 at 9:33 pm
You might find it easier to reason about with EXCEPT and INTERCECT.
SELECT DISTINCT KEY FROM myTable WHERE type = 'COLL' and subtype = 'MOD'
EXCEPT
SELECT DISTINCT KEY FROM...
September 14, 2022 at 9:20 pm
You also need to consider licencing costs for MSSQL and they can be very complicated. From memory the minumum licence is 4 cores and then in multiples of 2 up...
September 12, 2022 at 4:45 pm
Would STUFF...FOR XML be faster that STRING_AGG? I think they both will be doing ReBAR under the hood.
Can you pre-calculate the string contatenation and persist it? You could then index...
September 12, 2022 at 4:39 pm
I'm not aware of anything that would allow you to do that, but if it helps:
VLOOKUP is the equivalent of a JOIN
MATCH is the equivalent of a WHERE
SUM and MAX...
September 12, 2022 at 1:52 pm
Viewing 15 posts - 1 through 15 (of 622 total)