Viewing 15 posts - 31 through 45 (of 682 total)
Your google not working?
select *, fName + ' ' + lName as FullName from
(
select 'Fred' as fName union
select 'Wilma' union
...
August 1, 2008 at 8:05 am
Or rather - that's the minimum decimal size which could hold it.
August 1, 2008 at 7:21 am
meichner (8/1/2008)
August 1, 2008 at 7:19 am
Chris Morris (8/1/2008)
That's well smart, Ryan. Got a TSQL version? 😛
Huh?
August 1, 2008 at 7:15 am
Chris Morris (8/1/2008)
SET NOCOUNT ON
DROP TABLE #Temp
CREATE TABLE #Temp ([ID] Int identity(1,1),Skilltype varchar(1000))
INSERT INTO #Temp (Skilltype) select...
August 1, 2008 at 6:55 am
You should seriously consider modifying your table design so that it's more normalised. As a minimum, I would recommend creating a table like #t1 below. You can do this on-the-fly...
August 1, 2008 at 5:32 am
ramkumar (7/27/2008)
I agree with u..
But whats my friend's requirement is to change the settings which attained by sql server 2005..
by default it is coming like
SET DATEFORMAT mdy;
select getdate()
Result:
2008-07-28 10:26:25.920
Can I...
July 28, 2008 at 4:25 am
shankartup (7/28/2008)
i am facing a problem while passing arguments using in operator
i have a master table colors and a transaction table colordetails
select Colorname as ColorName from colors where colorid...
July 28, 2008 at 4:03 am
Venkatesan Prabu (7/27/2008)
Select field1,GroupKey from
(
select row_number() over (partition by GroupKey order by GroupKey) as rownumber , field1,GroupKey from @mytable
)tbl
where tbl.rownumber<=2
The...
July 27, 2008 at 7:12 am
Chris Morris (7/25/2008)
RyanRandall (7/25/2008)
Here's an alternative...
select cast(stuff(stuff('280908', 5, 0, '/'), 3, 0, '/') as datetime)
Is it friday or have we been here before?
Yep - You sniped me by a few...
July 25, 2008 at 8:01 am
Here's an alternative...
select cast(stuff(stuff('280908', 5, 0, '/'), 3, 0, '/') as datetime)
July 25, 2008 at 4:39 am
Just a guess...
EXEC master.dbo.xp_cmdshell 'md "\\l5600b\share\sergei\test del\test"'
July 22, 2008 at 10:45 am
Or, if you can use your main table, it can be even simpler...
select t.ItemNo, a.qty, b.qty, c.qty from
MainTable t
left outer join...
July 22, 2008 at 10:21 am
select t.ItemNo, a.qty, b.qty, c.qty from
(select ItemNo from TableA union select ItemNo from TableB union select ItemNo from TableC) t
left outer...
July 22, 2008 at 10:19 am
Viewing 15 posts - 31 through 45 (of 682 total)