Viewing 15 posts - 4,591 through 4,605 (of 8,731 total)
Could you elaborate more on what do you need? I'm not sure what you're trying to do. If you want to apply rules, you might need to change your table...
July 24, 2015 at 1:23 pm
djj (7/24/2015)
Ed Wagner (7/24/2015)
Revenant (7/24/2015)
Ed Wagner (7/24/2015)
J Livingston SQL (7/24/2015)
crookj (7/24/2015)
Ed Wagner (7/24/2015)
BWFC (7/24/2015)
Spelling 😀Reading
Writing
Rithmetic 😀
Homework
Boredom
Trouble (usually follows boredom)
Tribbles
Nibbles(.bas)
July 24, 2015 at 1:11 pm
Does this gives you an idea on what to do?
CREATE TABLE dbo.SampleDates(DateofRecord nvarchar(20));
INSERT INTO dbo.SampleDates
VALUES
('"04/24/2013'''),
('"05/01/2014"')
--Option 1
--Just the Query
SELECT convert(datetime,replace(replace(DateofRecord,'"',''),'''',''))
FROM dbo.SampleDates
--Option 2
--Create new column with correct data type, assign correct values,...
July 24, 2015 at 1:05 pm
What do you mean by didn't work?
Are you trying to change the column definition or just use it as datetime in a query?
July 24, 2015 at 12:56 pm
There's an unanswered question about spaces. Would multiple spaces are valid? Would they be valid only if they're within a single gap but not with multiple gaps?
Here's the code for...
July 24, 2015 at 8:15 am
rarara (7/24/2015)
Luis Cazares (7/24/2015)
Peddi Praveen kumar (7/24/2015)
Hi,here is the solution....
That's a solution, but it's not the solution. Your lengthy function, does basically what my code does in one line.
Another simple...
July 24, 2015 at 8:06 am
I'm not sure if you still need it, but here's a way to make it dynamic. I changed the table variable into a permanent table because I didn't want to...
July 24, 2015 at 8:04 am
lsalih (7/24/2015)
July 24, 2015 at 7:40 am
Peddi Praveen kumar (7/24/2015)
Hi,here is the solution....
That's a solution, but it's not the solution. Your lengthy function, does basically what my code does in one line.
Another simple solution would be...
July 24, 2015 at 7:34 am
If you have 3 different tables going to 3 different files, then you just need a single data flow task with the 3 flows.
Why do you want to make...
July 24, 2015 at 7:22 am
Do you need to remove the characters that shouldn't be there?
Or simply identify the values that shouldn't be there?
The second option is far less complicated as you just need...
July 24, 2015 at 7:02 am
djj (7/24/2015)
Ed Wagner (7/24/2015)
Stuart Davies (7/24/2015)
Ed Wagner (7/23/2015)
Revenant (7/23/2015)
SQLRNNR (7/23/2015)
J Livingston SQL (7/23/2015)
SQLRNNR (7/23/2015)
J Livingston SQL (7/23/2015)
Eirikur Eiriksson (7/23/2015)
DonlSimpson (7/23/2015)
Ed Wagner (7/23/2015)
J Livingston SQL (7/23/2015)
Revenant (7/23/2015)
Eirikur Eiriksson (7/23/2015)
SQLRNNR (7/23/2015)
cowboydichotomy
Opposition
antithesis
Conflict
Resolution
Clarity
coherent
disorderly
conduct
steward
care
Neglect
Disregard
Ignore
Ignorence
Happyness
July 24, 2015 at 6:48 am
The problem is not your CASE statement, but the GROUP BY clause. You need to group the same way you're presenting the information, otherwise you'll get unexpected results with apparent...
July 24, 2015 at 6:46 am
johnnycash (7/23/2015)
July 23, 2015 at 5:21 pm
Viewing 15 posts - 4,591 through 4,605 (of 8,731 total)