Viewing 15 posts - 7,336 through 7,350 (of 26,490 total)
NJDave (6/13/2013)
Is there anything in the database that shows what...
June 13, 2013 at 1:20 pm
SQLRNNR (6/13/2013)
Brandie Tarvin (6/13/2013)
jasona.work (6/13/2013)
One of those little "bored programmer" things that's...
June 13, 2013 at 10:04 am
kshatriya24 (6/13/2013)
round((ENDDTTM - BEGINDTTM) * 24 *...
June 13, 2013 at 10:02 am
Sean Lange (6/13/2013)
SQL_beginner1 (6/13/2013)
I get the following error when I parse your script:
Msg 156, Level 15, State 1, Line 6
Incorrect syntax near the keyword 'over'.
I'm using SQL Server 2008...
June 13, 2013 at 9:48 am
SQL_beginner1 (6/12/2013)
I have a table (t_account_code) with the following three columns - AccountCode, StartDate and EndDate. The table does not have an ID column (I know - it was inherited)...
June 12, 2013 at 7:27 pm
And how is this third column passed to the query?
June 12, 2013 at 6:16 pm
mrbonk (6/12/2013)
Lynn Pettis (6/12/2013)
Part of the problem you are...
June 12, 2013 at 6:14 pm
Perhaps you can explain what type of environment you are working in where you are going to be running arbitrary stored procedures (which may or may not take parameters) and...
June 12, 2013 at 6:03 pm
What is also missing is the DDL for the tables you are using along with the current indexes defined on those tables.
Part of the problem you are having may also...
June 12, 2013 at 5:24 pm
Luis Cazares (6/12/2013)
As easy as
SELECT UserID,MAX(Email) Email
FROM MyTable
If you need a specific email, you need to define the priority.
Yep, easy except you are...
June 12, 2013 at 3:42 pm
SQL_Enthusiast (6/12/2013)
June 12, 2013 at 3:38 pm
Kaptnik (6/12/2013)
UserIDEmail
------------------------------------
How do I pick out just one email address for each user id? I'm struggling to write a query to do it.
Just as long...
June 12, 2013 at 3:33 pm
rick_markham (6/12/2013)
June 12, 2013 at 2:17 pm
mmartin1 (6/12/2013)
gmac 41947 (3/1/2013)
Hi,I use
DATEPART(month, myDate)or
MONTH(myDate)the resut is: 2 (if myDate is 2013.02.03). I would like return: 02
Do you have any solution for this?
Thans!
try this
declare @MyDate datetime
set @mydate= '20130301'
select...
June 12, 2013 at 2:07 pm
Just another way to do it:
code="sql"]
declare @AS400Date char(7) = '1130531';
select cast(cast(cast(@AS400Date as int) + 19000000 as char(8)) as date);
[/code]
June 12, 2013 at 9:09 am
Viewing 15 posts - 7,336 through 7,350 (of 26,490 total)