Viewing 15 posts - 166 through 180 (of 462 total)
yeah thats fine, but how do you identify your 'first' record?
November 25, 2009 at 12:51 am
Is this what you are looking for?
Create table #t (ip varchar(1000))
INSERT INTO #t VALUES ('http://192.49.42.39/bcccontent')
INSERT INTO #t VALUES ('http://192.49.42.39/bcccontent1')
INSERT INTO #t VALUES ('http://192.49.42.39/bcccontent2')
INSERT INTO #t VALUES ('http://200.49.42.39/bcccontent1')
Select REPLACE(ip, '192.49.42.39','192.49.42.40') ...
November 25, 2009 at 12:45 am
November 25, 2009 at 12:32 am
based on which column are you saying that 1, 2 is your first record? ( i mean in which order?)
November 25, 2009 at 12:30 am
SSSolice (11/24/2009)
Nabha (11/24/2009)
Select * from (SELECT *,
Row_Number() OVER(PARTITION BY CustomerNumber ORDER BY
CustomerNUmber) as row_no
FRom CustomerContactsXref) t
Where row_no > 1
Hi Nabha, I was curious about any differences in...
November 25, 2009 at 12:18 am
I am guessing its a case of PIVOT. Please provide the data in the format as described in the link below. Thanks.
http://www.sqlservercentral.com/articles/Best+Practices/61537/
November 24, 2009 at 9:41 am
Select * from (SELECT *,
Row_Number() OVER(PARTITION BY CustomerNumber ORDER BY
CustomerNUmber) as row_no
FRom CustomerContactsXref) t
Where row_no > 1
November 24, 2009 at 9:01 am
Not sure if this is what you are looking for.
CREATE TABLE #t (varr varchar(50))
INSERT INTO #t values ('XYZAP99123')
INSERT INTO #t values ('XYZAP98123')
INSERT INTO #t values ('XYZAP97123')
INSERT INTO #t values...
November 24, 2009 at 4:42 am
Pravin Patel-491467 (11/24/2009)
FROM Students
WHERE
A.No IN (22,34,12,67)
Hi Guys,
In above query i am using "IN" clause to find out Student No. but some time no. of find are very large.
Thanks in...
November 24, 2009 at 3:06 am
Create an SSIS package to read from the excel sheet and load it into the database. Execute this package using a sql job.
There are lot of other ways as...
November 23, 2009 at 11:56 pm
Does this help you?
Create table #user(location int, grade_value int)
INSERT INTO #admin VALUES(1,240)
INSERT INTO #admin VALUES(2,270)
INSERT INTO #admin VALUES(3,300)
INSERT INTO #user VALUES(1,246)
INSERT INTO #user VALUES(1,273)
INSERT INTO #user VALUES(2,301)
Select location, grade,nearest from...
November 23, 2009 at 11:15 am
You have an 'END' and there is no corresponding begin at the start?
November 23, 2009 at 11:02 am
Simple way to do this without function
Create table #t(t varchar(10))
INSERT INTO #t VALUES ('1,2,3')
INSERT INTO #t VALUES ('3,4,5,11')
select * from #t
where t like '%1%' and t not like '%11%'
🙂
INSERT...
November 23, 2009 at 10:59 am
-- END IF
(Sorry Vikas, dint see your reply!)
November 23, 2009 at 6:47 am
Jeff Moden (11/20/2009)
Nabha (11/20/2009)
MY bad! go with Vikas, that is the right solution for you.
Heh... no it's not...that function has a While Loop in it and it's going to be...
November 23, 2009 at 12:55 am
Viewing 15 posts - 166 through 180 (of 462 total)