Viewing 15 posts - 8,401 through 8,415 (of 8,731 total)
Animal Magic (9/17/2012)
Why don't you take the group numbers out of the insert text?
Maybe because he can't control the past and have to correct the data.
Prevention is key, but you...
September 17, 2012 at 11:52 am
From your table design, I would say is a problem with trailing spaces.
Try this and tell us if it worked.
select REPLACE(TEXT,RTRIM(Group_ID),' ')
from #temp
September 17, 2012 at 11:36 am
That means that you don't have the columns in your table/view.
As Lynn said, you can do things in a better way.
If you need help translating, I could help you.
September 14, 2012 at 1:51 pm
You could do something like:
SELECT RefID,
d_an,
CASE WHEN d_an >= 1998 THEN 1 ELSE 0 END AS d_1998,
CASE...
September 14, 2012 at 1:12 pm
Check this image to know where to find the triggers.
Use the appropriate table.
September 14, 2012 at 12:25 pm
This should help you.
--Parameters
DECLARE @Year int, @Month int
SELECT @Year = 2011, @Month = 11
DECLARE @Date date
SET @Date = DATEADD( mm, @Month - 1, DATEADD( yyyy, @Year - 1, 0))
SELECT itemno...
September 14, 2012 at 11:52 am
Eugene Elutin (9/14/2012)
harri.reddy (9/14/2012)
thanks for your response,for my other question,
it was something ,if i define global variable in sp,will it can be access in inside stored procedure
Could you...
September 14, 2012 at 10:44 am
Do you always give untested results?
Where are Series defined? Where's DDL? Where's the data? Why aren't you using SQL-92 JOINS that are more clear? Are you stuck in the past?
September 14, 2012 at 10:38 am
Now, I'm confused.
Do you need active items in a particular month?
or active and not sold items in a particular month?
September 14, 2012 at 10:22 am
Would the simplest way be correct?
DECLARE @Date date
SET @Date = '20110112' --Any day in November
SET @Date = DATEADD( mm, DATEDIFF( mm, 0, @Date) + 1, 0) -- Get next month
SELECT...
September 14, 2012 at 9:55 am
It also depends on @@DATEFIRST = 7.
Otherwise you might be counting Sundays or another day.
September 14, 2012 at 9:29 am
Lynn Pettis (9/14/2012)
September 14, 2012 at 9:04 am
scogeb (9/14/2012)
...there is usually 5 different ways to write a SQL statement to get the same results! :hehe:
The same results but with different performance (most of the time). 😀
September 14, 2012 at 8:34 am
CELKO (9/13/2012)
I really would love to listen to his answers regarding choosing natural keys for Persons and Companies entities (where the system is international and people/companies are not just...
September 14, 2012 at 8:28 am
For the example you posted, you might want to check this article.
Tally OH! An Improved SQL 8K “CSV Splitter” Function[/url]
As they say, your better chance to improve performance would be...
September 13, 2012 at 2:41 pm
Viewing 15 posts - 8,401 through 8,415 (of 8,731 total)