Viewing 15 posts - 406 through 420 (of 842 total)
April 19, 2018 at 2:54 pm
April 17, 2018 at 12:29 pm
Try this:SELECT L.Entity, L.Account,
COALESCE(R.Local_Currency_ID, L.Report_Currency_ID) AS Local_Currency_ID,
L.Report_Currency_ID,
L.Amt AS USAmt,
COALESCE(R.Amt, L.Amt) AS Amt
FROM (SELECT U.Entity, U.Account, U.Currency AS Report_Currency_ID,...
April 17, 2018 at 11:51 am
CREATE TABLE #CIM_FACT
(
YearYYYY nvarchar (4) not null ,
Period nvarchar (10) not null,
Entity nvarchar (10) not null,
Account nvarchar (10) not null,
currency nvarchar (10) not null,
Amt Decimal (18, 2) not null
);
Insert INTO #cim_Fact
VALUES ('2018','January','ENT_1000','1588','USD Total',-888823191.97),
('2018','January','ENT_1000','1591','USD...
April 17, 2018 at 10:07 am
You don't need the loop if you combine Sean's code with the answer you got from your other post.
https://www.sqlservercentral.com/Forums/1932209/How-do-I-count-the-number-of-occurrences-the-character-P-in-the-string
April 16, 2018 at 3:25 pm
April 11, 2018 at 10:53 am
Not sure, but give this a try:SELECT L.Entity, L.Account,
R.Local_Currency_ID,
L.Report_Currency_ID,
L.Amt,
R.Amt
FROM (SELECT U.Entity, U.Account, U.Currency_ID AS Report_Currency_ID, R.Amt
FROM Your_Table AS U
WHERE Currency_ID...
April 11, 2018 at 10:09 am
There may be a better way, but here you go:DECLARE @yearMonth CHAR(7);
DECLARE @prioryearMonth CHAR(7);
SET @yearMonth = '2017-06';
SET @prioryearMonth = CONCAT(CAST(LEFT(@yearMonth, 4) AS...
April 10, 2018 at 1:47 pm
Do you know why Jeff had to get out of the construction business?
He refused to use RBAR!
April 6, 2018 at 9:43 am
Click on your profile name, up in the right corner. In your Profile look under 'Topics' for posts you've started. Click on 'Replies' for those that you've replied to.
April 3, 2018 at 10:44 am
ELTL, Is the way I would describe how I prefer to handle this data. Trying to figure out what record in a delimited file has the bad value(using ETL) when...
April 3, 2018 at 7:57 am
Jeff, If you have a better solution please include it. I would really like to understand how it could be done without the OR.DECLARE @Data_Group_Number CHAR(1);
April 2, 2018 at 1:01 pm
Couldn't you concat the loan number and the date to create the unique ID? In your example 2 and 4 would have the same UniqueID.ID Loan# Date UniqueID
1 12345 2015-12-01 1234520151201
2 12345 2016-12-01 1234520161201
March 30, 2018 at 1:57 pm
Viewing 15 posts - 406 through 420 (of 842 total)