Viewing 15 posts - 4,036 through 4,050 (of 5,111 total)
Like this?CREATE TABLE #Emp (EmpID VARCHAR(8));
GO
INSERT INTO #Emp
VALUES ('00000000'),('02005523');
GO
SELECT *
FROM #Emp
UPDATE #Emp
SET EmpID = RIGHT(EmpID,7)
WHERE...
March 27, 2017 at 7:56 am
March 24, 2017 at 10:54 am
Will the result set always be for one individual or Invoice? If so, provided that your indexes are in the right place, it not going to make a huge difference,...
March 24, 2017 at 10:05 am
What version of SSIS are you using? If 2012+ use an expression task to set your varible value to the expression you need. Something like:[@User::FileName] = {FileName}_{Your Date Expression}.xlsx
March 24, 2017 at 9:52 am
This?SELECT C.cost_value + C.tax_value AS Payment_value
FROM #costs C
WHERE C.payment_method = 'Direct'
UNION ALL
SELECT SUM(CASE C.payment_method WHEN 'Credit Card' THEN C.cost_value + C.tax_value
...
March 24, 2017 at 9:47 am
select -- "String name" = is deprecated, I suggest using ASMarch 24, 2017 at 9:34 am
Reformatted SQl for my own sanity and readiblity:select -- "String name" = is deprecated, I suggest using AS
Case WHEN adm_ts >= @PriorFOM AND dschrg_ts <=@PriorEOM--admit greater...
March 24, 2017 at 9:05 am
Been a very long time since I did Java (I was 18 and at university!), so afraid I've no on this one. sorry.
March 24, 2017 at 8:07 am
Does your state run OK if you run the SQL on it's own and not inside the application? I'm not sure that's a SQL error, but rather a programming error....
March 24, 2017 at 6:36 am
These are beginning to look like we're just doing your job for you. This is the third post you've made with very similar requirements.
What have you tried so...
March 24, 2017 at 4:18 am
Always check your SQL works before posting 😉 You don't declare a schema before the name of a temporary table. I was also getting conversion errors on your datetimes:
March 24, 2017 at 2:59 am
Can you provide consumable sample data that shows the problem? We can't see access data, so we don't know what we should be expecting from your SQL.
March 23, 2017 at 8:09 am
Because of the wording the OP used, I want to double check; You say that the data set brings back data over a period of time. In your example you...
March 23, 2017 at 3:35 am
Viewing 15 posts - 4,036 through 4,050 (of 5,111 total)