Viewing 15 posts - 46 through 60 (of 61 total)
I'd tackle this as you've suggested in terms of three initial tables (but would need to understand their functionality).
To parse the main table, I'd denormalise each row into staging table,...
September 14, 2022 at 8:58 am
Microsoft themselves have loads of documentation, from overviews to technical examples:
https://docs.microsoft.com/en-us/azure/azure-sql/database/single-database-overview?view=azuresql
September 13, 2022 at 8:38 am
That's strange, it should run in less than a second.
Do you have a DBA to refer this to or are you the DBA for this?
September 6, 2022 at 2:51 pm
Do you have a message broker running? Have the messages stopped being consumed?
The query below might shed some light on it for you:
SELECT sch.[name], obj.[name], ISNULL(obj.[type_desc],...
September 6, 2022 at 1:03 pm
Hi Chris, bit late to the party on this, but price is an attribute of the ingredient.
DimIngredient would have a surrogate key as well as a general business key to...
September 2, 2022 at 9:41 am
Why are you converting everything to NVARCHAR(4000) in the first place?
What does the actual source look like?
September 2, 2022 at 8:39 am
There's a solution for this posted on the Power BI community forum:
September 1, 2022 at 10:09 am
1 SSMS is free. They can download that. Set up the appropriate privileges so that they have db_datareader with execute of stored procedure as an addition.
2 This should go hand...
August 25, 2022 at 1:44 pm
It seems we do not have any standard to follow (not even MVC). Do you know of any resource/link to best practice to follow with regards to naming convention.?
A...
August 25, 2022 at 11:52 am
Oh and never use SELECT * in production code.
You have to be careful when using words like 'never'! In my opinion, there is nothing wrong with using SELECT...
August 25, 2022 at 11:50 am
Another RedGate fan here.
More importantly, though, are there any SQL standards in your organisation already?
Anything and everything from naming conventions for tables, what capitalisation to use (e.g. camel case, kebab...
August 25, 2022 at 10:03 am
Write your query, then in your where conditions use:
([Date] = CAST(GETDATE() as DATE) OR [Date] = DATEADD(month, DATEDIFF(month, 0, CAST(GETDATE() AS DATE)), 0))
August 24, 2022 at 3:04 pm
The SUM would be of StaffLeaveRequest.TimeRequested where the status was either APPROVED or PENDING. I omitted some of the nuance for clarity.
No worries, just making sure you're not going...
August 24, 2022 at 12:31 pm
How are leave cancellations handled?
Just checking that you're not including any future leave that could be cancelled.
For example, before today, it's regarded as booked and taken, whereas after today, it's...
August 24, 2022 at 12:18 pm
To get the Orders where the OrderDate is in the first 15 days of a month:
WHERE DAY(OrderDate) <=15
That will get them for all months of...
August 24, 2022 at 12:15 pm
Viewing 15 posts - 46 through 60 (of 61 total)