Viewing 15 posts - 301 through 315 (of 2,645 total)
You are doing a left join so you must be expecting to find rows that do not have a match in dim."IMETA_Region_Mapping", otherwise you would be using an inner join.
September 11, 2023 at 3:17 pm
You could make it easier for us by pasting in the query rather than the table DDL.
Are you saying that when you specify 30 columns in your SQL you see...
September 11, 2023 at 2:12 pm
Thank you Sir! It worked like magic. Im now familiar with the use of 'with, partition, row' because of your reply
and well done to you for posting your first...
August 13, 2023 at 11:55 am
;WITH CTE AS
(
SELECT empId,
dept,
...
August 13, 2023 at 10:58 am
Given that the data type is DATETIME2(7), we can assert the following: The DATE data type is 3 Bytes big-endian, the TIME(7) is 6 Bytes big-endian...
August 7, 2023 at 11:10 pm
Given that the data type is DATETIME2(7), we can assert the following: The DATE data type is 3 Bytes big-endian, the TIME(7) is 6 Bytes big-endian and the DATETIME2(7)...
August 7, 2023 at 10:11 pm
This method of determining Tuesday:
DATEPART(weekday, @CurrentDate) = 3
requires a specific DATEFIRST setting to work correctly. Many business have locations around the world, so it's safer to use a method...
August 4, 2023 at 7:16 pm
You could do it by having this code in the first step of your job and set the schedule to run on the first Monday and Tuesday of every month.
August 3, 2023 at 9:46 pm
You could add an IsCurrent
bit column and set it to 1 for the most recent row and update older rows to 0. So no need for copying old data...
August 2, 2023 at 10:17 pm
To select all rows from CustomerLeft change join precedence by parentheses:
SELECT *
FROM dbo.CustomerLeft AS cl
LEFT JOIN (dbo.CustomerContact AS cc
INNER JOIN dbo.EmailDomain...
July 31, 2023 at 1:39 pm
Informatica ETL is highly recommended
LOL this has to be an add bot. Informatica hasn't had a major update in something like over a decade and doesn't support(or barely)...
July 28, 2023 at 7:29 pm
Modifying a partition function in SQL Server is not quite as simple as altering a partition statement with the changed dates. Once a partition function is created and associated with...
July 28, 2023 at 7:25 pm
DROP TABLE IF EXISTS #T
GO
CREATE TABLE #T (Col1 VARCHAR(100));
INSERT INTO #T(Col1)
VALUES ('UIMth: 07/01/23 UISeq: 444 Header Reviewer: DN'),
('UIMth: 07/01/23 UISeq:...
July 24, 2023 at 5:57 pm
You can change the collation of a column with an alter statement:
ALTER TABLE MyTable
ALTER COLUMN MyColumn VARCHAR(50) COLLATE SQL_Latin1_General_CP1_CS_AS
You could add a computed column to your table...
July 21, 2023 at 8:36 pm
You can create a column on a database that is not case sensitive to be case sensitive
CREATE TABLE MyTable
(
MyColumn VARCHAR(50) COLLATE SQL_Latin1_General_CP1_CS_AS
)
July 21, 2023 at 7:59 pm
Viewing 15 posts - 301 through 315 (of 2,645 total)