Viewing 15 posts - 9,046 through 9,060 (of 15,381 total)
Can you post ddl and sample data so we don't have to guess on what your tables look like? Please take a few minutes and read the first article in...
March 18, 2013 at 2:28 pm
This produces the same output as your example.
if OBJECT_ID('MyResult') is not null
drop table MyResult
create table MyResult
(
TBLID int identity(1,1),
ID int,
patientName varchar(10),
age int,
city varchar(100),
Mobile int
)
insert MyResult(ID, patientName, age, city, Mobile)
select 1,'Ramesh',20,'HYD',12345678...
March 18, 2013 at 1:54 pm
So you want to get the lowest of each value as the NewValue and the largest of each value as OldValue and then unpivot those results? Assuming that is what...
March 18, 2013 at 1:05 pm
saravanan.kuttyy (3/18/2013)
My Problem is when i face any interview i couldn't write query very fast .i...
March 18, 2013 at 7:54 am
steven.n.rhodes (3/15/2013)
I was trying to rush things before getting removed from my office, Fridays tend to be nuts at knock off...
March 15, 2013 at 3:27 pm
jfogel (3/15/2013)
March 15, 2013 at 3:19 pm
You got the basic gist of what we need but you certainly didn't test it. There were a lot of issues here.
WorkflowId defined a uniqueidentifier but the values are...
March 15, 2013 at 1:11 pm
I see that you are pretty new around here. It is recommended that you post ddl and sample data in a consumable format so the people helping can get right...
March 15, 2013 at 12:36 pm
This sounds a little bit like a "catch-all" query and little bit like a "one proc to rule them all".
For catch-all queries you should read this article. http://sqlinthewild.co.za/index.php/2009/03/19/catch-all-queries/%5B/url%5D
For the one...
March 15, 2013 at 12:22 pm
L' Eomot Inversé (3/15/2013)
SQLRNNR (3/15/2013)
Lynn Pettis (3/15/2013)
Stefan Krzywicki (3/15/2013)
SQLRNNR (3/15/2013)
This thread is now at 39,153 posts. Do we start the countdown now to 40,000?
Isn't 39,153 to 40,000 a count...
March 15, 2013 at 12:18 pm
It would be great if you could share the steps you took so that others coming along here in the future can learn from all of you hard work. 😛
March 15, 2013 at 9:40 am
It is pretty tough to offer much help because the details are not very clear. It would help greatly if you could post ddl (create table scripts), sample data (insert...
March 15, 2013 at 9:36 am
Jeff Moden (3/15/2013)
I suppose you could take what was said two ways. I may have taken it the wrong way.
It is like I always tell me wife...
"If there are...
March 15, 2013 at 8:19 am
sankar.nandakumaran (3/15/2013)
I have one table in my database say for example "TableA" and the data is...
March 15, 2013 at 8:14 am
Eugene Elutin (3/15/2013)
Why your query builds sub-selects when objects can be JOINed to directly?
That is what Entity Frameworks seems to do most of the time. It generates hugely complicated queries...
March 15, 2013 at 8:12 am
Viewing 15 posts - 9,046 through 9,060 (of 15,381 total)