Viewing 15 posts - 8,326 through 8,340 (of 8,731 total)
This might work, but an index might help even more (if you don't have one). I won't give my advice on the index because I'm learning as well about the...
October 16, 2012 at 7:53 am
Sean Lange (10/16/2012)
Luis Cazares (10/15/2012)
October 16, 2012 at 7:24 am
But it gives different results, Sean. Because your query will affect how the join is made and will generate duplicates. That's why you need to use separate conditions for the...
October 15, 2012 at 9:59 pm
Sean, for what I understood, he might need to use the original query and filter the rows with a where clause.
DECLARE @FromDate datetime = '20121013', @ToDate datetime = '20121015'
SELECT rc.Country,...
October 15, 2012 at 4:56 pm
jfdelette (10/15/2012)
You can try this too :
update table
set c1 = convert(int,c1)+convert(int,c2)
where isnumeric(c1) = 1
and isnumeric(c2)= 1
Jeff.
Why do you insist on converting strings to int when the OP has said that...
October 15, 2012 at 4:33 pm
phamm (10/15/2012)
October 15, 2012 at 3:13 pm
I don't have SQL in this computer right now, but something like this could solve the issue.
UPDATE table SET
column1 = STUFF( column1, LEN(column1) - LEN(column2) -...
October 15, 2012 at 3:01 pm
Not like the OP cares much, but here's another option that might not have the best performance, but might be easier to understand for some people.
By the way, haiao, your...
October 12, 2012 at 12:55 pm
Please post your DDL, sample data and expected results based on the sample data.
It doesn't have to be actual data or the real names of your tables and fields. Just...
October 11, 2012 at 7:22 pm
o1548324 (10/11/2012)
October 11, 2012 at 7:05 pm
o1548324 (10/11/2012)
Why not use <= in the bottom phrase?
Because I'm adding one day to the membership_term_dt. I did this because I don't know the data types of your table....
October 11, 2012 at 6:42 pm
From what I understood you need something like this:
SELECT a.*
FROM sales_log_tbl a
LEFT
JOIN membership_record_tbl b ON a.member_id = b.member_id
...
October 11, 2012 at 5:39 pm
Take a look at the Stairway for SQL Server Reporting Services (SSRS)
October 10, 2012 at 8:36 pm
Repeated post. Follow on http://www.sqlservercentral.com/Forums/Topic1371167-392-1.aspx
October 10, 2012 at 8:34 pm
First of all, welcome to SQL Server Central,
I can see you're new around here and might not be aware of the best way to get help. I recommend you to...
October 10, 2012 at 8:32 pm
Viewing 15 posts - 8,326 through 8,340 (of 8,731 total)