Viewing 15 posts - 1 through 15 (of 26 total)
I will try to post more data and expected results in my next post.
Thank you all for your great help.
October 20, 2015 at 9:36 am
Thanks for the links.
October 20, 2015 at 7:24 am
Your solution works fine on small amount of data but it doesn't work on large quantities of data. I tried it on joining more than 5 tables on...
October 20, 2015 at 7:22 am
Hi Lynn,
Can you please explain your query? I have hard time understanding the whole query specially this part:
CROSS APPLY (VALUES('first', first),('last', last),('highest', highest),('lowest', lowest)) xx(description, value)
Thank you.
October 19, 2015 at 6:53 pm
Thank you so much Lynn. I will test this tomorrow and will let you know.
I appreciate your help.
October 19, 2015 at 6:22 pm
Ok got it. I hope I get some help over here then. I have already posted the sample data.
Thanks.
October 19, 2015 at 4:08 pm
Here is the sample tables and data:
CREATE TABLE ListOfValues
(
pid int,
ListValues decimal(3,2)
);
CREATE TABLE Person
(
pid int,
name varchar(50),
Age nvarchar(20)
);
INSERT INTO ListOfValues (pid, ListValues)
VALUES (1, 1),
...
October 19, 2015 at 3:33 pm
Thanks for your help though. This is not a homework assignment. I can't post confidential data so I just posted some sample data to get an idea. I think I...
October 19, 2015 at 3:26 pm
@Lynn Pettis, and @Alvin Ramard,
If you both are experts in T-SQL Programming it doesn't mean that you should mock or make fun of other people who are just...
October 19, 2015 at 3:06 pm
Hello Luis,
Your solution works fine. Now I need pull more columns from another table by joining it with the table which contains the list of values. For example I need...
October 19, 2015 at 2:24 pm
The values are for just one person or customer. For example if you select all the values for a given customer, it should list all value for the customer so...
October 19, 2015 at 12:56 pm
The values are in just one column. Any ideas?
Thanks
October 19, 2015 at 12:47 pm
Sorry my mistake that I have not posted a clear scenario. Actually I am looking for way to get the first, highest and last value in the list of values...
October 19, 2015 at 10:10 am
Sorry posted twice.
October 18, 2015 at 4:42 pm
@ Alan Burstein,
Sorry for my late reply. I tried your example but no luck.
I am looking for the first value, the maximum value and the last value in the...
October 18, 2015 at 4:41 pm
Viewing 15 posts - 1 through 15 (of 26 total)