Viewing 15 posts - 16,411 through 16,425 (of 26,486 total)
Start by reading this article: http://www.sqlservercentral.com/articles/Advanced+Querying/3181/
March 23, 2010 at 2:19 pm
dlautwein (3/23/2010)
March 23, 2010 at 2:15 pm
Here is some sample code, pay attention to the second select query, it doesn't use the in-line TVF.
CREATE TABLE #TestTable
( id INT,...
March 23, 2010 at 2:12 pm
Just to be sure we are all on the same page, could you post an example of the input and expected output?
Also, could you show us how you see this...
March 23, 2010 at 1:49 pm
lmu92 (3/23/2010)
Why would you use two functions for this task rather than doing it all at once?
My wild guess would be that the pure UNPIVOT solution should be more efficient....
March 23, 2010 at 1:06 pm
igngua (3/23/2010)
Thanks you all!it worked!
Thank you for the feedback, and you are welcome.
March 23, 2010 at 12:59 pm
Lutz was close and gave me what I needed to write the following, hope this helps:
CREATE TABLE #TestTable
( id INT,
...
March 23, 2010 at 12:54 pm
You may also need to take out the t2. from this line:
insert into softlandsoporte2.softland.nwcotiza(t2.CotNum,t2.CodAux,t2.NomCon,t2.CodMon)
March 23, 2010 at 10:48 am
igngua (3/23/2010)
it worked!
select t1.cotnum, t1.codaux,
t2.cotnum, t2.codaux
from hermes.lab0708.softland.nwcotiza t1
left join softlandsoporte2.softland.nwcotiza t2 on t1.cotnum = t2.cotnum
where t2.cotnum is null
Now i´ve to update T2 with all the columns from 1...
March 23, 2010 at 10:39 am
Robert.Smith-1001156 (3/23/2010)
March 23, 2010 at 9:49 am
Not exactly sure what you are looking for here, but here's a shot.
The best way to make use of SSC forum/posts is to try and solve the problems presented, even...
March 23, 2010 at 8:07 am
Depending on the loads, yes. At a previous employer while working on data warehouse loads we found it worthwhile to drop indexes, load data, recreate indexes. I even...
March 23, 2010 at 7:50 am
igngua (3/23/2010)
CirquedeSQLeil (3/22/2010)
Looks fine to me. Is it not producing the desired results?
HI!
Im not getting the results i want.
t2 has less data than t1 and i´m getting no...
March 23, 2010 at 7:09 am
If the database is using the SIMPLE recovery model, backing up the database periodically isn't going to help. You need to look at the data going in to the...
March 23, 2010 at 6:32 am
Viewing 15 posts - 16,411 through 16,425 (of 26,486 total)