Viewing 15 posts - 256 through 270 (of 2,610 total)
Create a temporary table with these columns
"ZTBR_TransactionCode",
"Company_Code",
"Posting_Period",
"Fiscal_Year",
"Profit_Center",
"Account_Number",
"Business_Process",
"Internal_Order",
"Trading_Partner",
"Amount_in_Company_Code_Currency",
"Company_Code_Currency",
"BRACS_FA",
"Expense_Type",
"BRACS_ACCT_Key",
"CC_Direct",
"Segment_PC",
"CC_Master_FA",
"Region_Secondary_Key",
"Direct_Indirect_Secondary_Key",
"Source_Description_Secondary_Key",
"Entity_Secondary_Key",
"Master_BRACS_Secondary_Key",
"Acct Type",
"Level 1",
"Level 2",
"Level 3",
"GCoA",
"Account Desc",
"EXPENSE FLAG",
"BRACS",
"BRACS_DESC",
"Primary_ZTBR_TransactionCode",
"BRACS Account Description",
"CLASSIFICATION",
"Direct_Primary_Key"
Insert the rows from the fist query into the temp table
Then insert the...
September 19, 2023 at 10:32 am
You could create a temporary table.
Then insert the rows from each query into the temporary table with a WHERE NOT EXSITS (SELECT * FROM temp_table_name WHERE ...)
at the end...
September 19, 2023 at 9:35 am
Well is says in the spec you should do a UNION of selects.
So I would think you can just have several select statements with inner joins and UNION ALL them...
September 18, 2023 at 7:13 pm
If you follow the Kimball methodology for dimension tables you will include rows with keys with negative values in the dimension table, then you have values in the FK columns...
September 17, 2023 at 6:19 pm
If you are going to do that -- and then keep modifying that index endlessly as the base query add columns and otherwise changes -- you might as well...
September 12, 2023 at 5:28 pm
You could add an index:
CREATE INDEX IX_users_1 ON users(registration_date) INCLUDE (first_name, last_name, email);
If you're not sure what to do just put the query in a script and...
September 12, 2023 at 5:11 pm
If you are only moving the application databases (not the system databases). You can just detach the databases, move the database files to a different location...
September 11, 2023 at 10:22 pm
I find it to be much easier t0 update the file locations directly - take the database offline - move the files and then bring the database online. Detaching...
September 11, 2023 at 8:52 pm
If you are only moving the application databases (not the system databases). You can just detach the databases, move the database files to a different location then just...
September 11, 2023 at 6:55 pm
If you are only moving the application databases (not the system databases). You can just detach the databases, move the database files to a different location then just Attach to...
September 11, 2023 at 3:24 pm
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
Viewing 15 posts - 256 through 270 (of 2,610 total)