Viewing 15 posts - 10,516 through 10,530 (of 15,381 total)
xoom (10/3/2012)
i have to solve the following problem. We used DoubleTake for the event of a disaster in SQL Server 2008 R2 environment. The prod database server is mirrored 1:1...
October 3, 2012 at 12:14 pm
select *, ROW_NUMBER() over (PARTITION BY cStudentId Order by dtEnrollmentDate) as RowNum
from #temp1
October 3, 2012 at 11:58 am
surma.sql (10/3/2012)
Sean Lange (10/3/2012)
This should do it.
ROW_NUMBER() over (PARTITION BY cStudentId, Order by tEnrollmentDate)
Thanks for Your reply
My question is,
Is it possible in SQL, I increment Row Number while i am...
October 3, 2012 at 11:54 am
This should do it.
ROW_NUMBER() over (PARTITION BY cStudentId, Order by tEnrollmentDate)
October 3, 2012 at 11:42 am
CELKO (10/2/2012)
TOTALLY WRONG! The age_at_death is...
October 3, 2012 at 9:37 am
bhushan_juare (10/3/2012)
I am monitoring application performance using SQL script where i am using several performance counters. My Counter_Matrix table is in other dabasse where i am inserting data....
October 3, 2012 at 9:27 am
... Isn't LIKE as good as >= for index seeks?!?
NO LIKE is not SARGable so you will get scans. It has to examine every row to determine if it is...
October 3, 2012 at 8:40 am
Thanks for the ddl and sample data. It makes all the difference.
This produces your desired results based on the sample you provided.
select UniqueID, ID, Name,
(
select Latitude, Longitude
from tab1
where ID...
October 3, 2012 at 8:31 am
Maddave (10/3/2012)
October 3, 2012 at 8:21 am
To me this seems like you don't need more than 2 tables. List and TaskList.
create table List
(
ListID int identity primary key,
UserID int not null,
ListName varchar(50) not null
)
create table TaskList
(
TaskListID int...
October 2, 2012 at 7:01 pm
Vijay_Raju (10/2/2012)
I have a table A with 20 rows. I need to supply the data for my down stream system in a format...
October 2, 2012 at 6:54 pm
arpish14 (10/2/2012)
I am trying to create a stored procedure to perform data retrieval using a table.This table will be accessed by the third party as per the quarter information, the...
October 2, 2012 at 2:44 pm
Pink123 (10/2/2012)
Id seq
1231
1242
1252
1263
Table B
TAbleBIDAIDAseqService
112311
212312
312313
412314
512315
612421
712522
i want to write a query which will give Table A id 124,125 ,126 as they dont have all of service(1,2,3,4,5)
i...
October 2, 2012 at 2:42 pm
It doesn't look too bad. I would highly recommend you NOT name your primary key ID in every table. You should give it a descriptive name. ListID for example. Otherwise...
October 2, 2012 at 2:30 pm
John Esraelo-498130 (10/2/2012)
Sean Lange (10/2/2012)
additionally, when you have multiple tables having field names of the same, such as LName, FName, Address, etc. that may appear in more than one
table...
October 2, 2012 at 1:55 pm
Viewing 15 posts - 10,516 through 10,530 (of 15,381 total)