Viewing 15 posts - 7,891 through 7,905 (of 8,731 total)
You have a common solution that is used more often than you would expect.
However, I have a question for you. Do you want a complete solution or just what...
July 19, 2013 at 8:09 am
udayroy15 (7/19/2013)
Think export the table in xls then import it .........is the best solution
Are you crazy?
July 19, 2013 at 5:39 am
Alan.B (7/18/2013)
July 18, 2013 at 2:01 pm
No, you can't because the alias doesn't exist when the JOIN is processed.
July 18, 2013 at 1:15 pm
Eugene Elutin (7/18/2013)
please note: use of cursor here is totally justified!
It's justified, but my approach is shorter. Maybe I'm just lazy. 😀
July 18, 2013 at 10:44 am
What do you get when you do this?
SELECT B.Date
FROM A
INNER JOIN B
ON A.ID = B.ID
WHERE A.ID < 0
You need to find out if there are any invalid dates in your...
July 18, 2013 at 10:39 am
You could use something like this.
DECLARE @sql varchar(8000) = ''
SELECT @sql = @sql + 'SELECT * FROM ' + QUOTENAME(name) + '..Docs WHERE (VirusStatus > 0) AND (VirusStatus IS NOT...
July 18, 2013 at 10:31 am
In the original function it's returned as ItemNumber instead of PosNo
July 18, 2013 at 10:06 am
July 18, 2013 at 9:43 am
If there are no leading zeroes for one digit day, here's an alternative.
SELECT CONVERT( datetime2, PARSENAME(OraDate,4) + ':' + PARSENAME(OraDate,3) + ':' + PARSENAME(OraDate,2) + '.' + PARSENAME(OraDate,1))
FROM (SELECT '25-JUN-13...
July 17, 2013 at 5:25 pm
Like this?
SELECT CONVERT( datetime2, STUFF(STUFF(OraDate,13,1,':'),16,1,':'))
FROM (SELECT '25-JUN-13 12.01.15.096000000 AM' AS OraDate) O
July 17, 2013 at 4:29 pm
You can Unpivot your table to be able to join it.
CREATE TABLE #Overtime_Budget_2013(
[Org_Level] [nvarchar](50) NULL,
[Overtime Code] [nchar](10) NULL,
[January] [money] NULL,
[February] [money] NULL,
[March] [money] NULL
)
INSERT Into #Overtime_Budget_2013(Org_Level, [Overtime Code], January, February,...
July 17, 2013 at 3:53 pm
Voide (7/17/2013)
riya_dave (7/17/2013)
my query is giving me erro
delete top(1000) from table a
join table b
on a.id = b.id
and b.date < getdate()
error: incorrect syntax near a.
i want to delete top 1000...
July 17, 2013 at 3:38 pm
There's no need for an ORDER BY if the ultimate goal is to delete all the rows that follow that condition. However, a cycle will be needed. It's common to...
July 17, 2013 at 3:24 pm
Viewing 15 posts - 7,891 through 7,905 (of 8,731 total)