Viewing 15 posts - 7,666 through 7,680 (of 13,876 total)
ffarouqi (1/18/2016)
January 18, 2016 at 1:35 pm
qbrt (1/18/2016)
January 18, 2016 at 1:32 pm
tusharchpatil (1/18/2016)
If i used select * from emp where rownum < 5;
I am getting the correct output of table ie. 4 rows.
but it is not working on rownum >...
January 18, 2016 at 1:20 pm
Dreamsz (1/18/2016)
I am facing an issue as described below.
select * from dbo.xyz
where a in ('a string of multiple values')
and <some condition>
and cast(a as datetime)=cast(b as datetime)
a is varchar(50), and...
January 18, 2016 at 11:57 am
ROW_NUMBER() is your friend here. Something like:
select rw = ROW_NUMBER() OVER (PARTITION BY KEY_NO ORDER BY DATA)
January 15, 2016 at 12:53 pm
My pleasure. Glad you got it working.
January 15, 2016 at 10:35 am
Have you considered putting 'lag' in your CTE, to get 'previous' price and then selecting from your CTE if price <> previous price?
January 15, 2016 at 9:51 am
Welsh Corgi (1/15/2016)
Phil Parkin (1/15/2016)
Welsh Corgi (1/15/2016)
drew.allen (1/14/2016)
Welsh Corgi (1/14/2016)
I need to create a new table that has an Identity Column so that I can delete the duplicates.
No, you don't....
January 15, 2016 at 7:41 am
Welsh Corgi (1/15/2016)
drew.allen (1/14/2016)
Welsh Corgi (1/14/2016)
I need to create a new table that has an Identity Column so that I can delete the duplicates.
No, you don't. You can use...
January 15, 2016 at 7:09 am
Are you referring to this type of table variable?
The older type of table variable is not in-memory. Nor is it good for holding large quantities of data.
January 15, 2016 at 6:18 am
Welsh Corgi (1/14/2016)
INSERT INTO POSTAL (ID,Latitude, ID.Longitude, CityTownshipID, CountyRegionID,StateProvinceID,CountryID)
SELECT ZipCode, Latitude, Longitude,CityTownshipID , CountyRegionID, StateProvinceID, CountryID
FROM Postal_Codes_Import
WHERE NOT EXISTS (SELECT *
...
January 14, 2016 at 1:22 pm
Welsh Corgi (1/14/2016)
Phil Parkin (1/14/2016)
You should include table schemas in your...
January 14, 2016 at 12:28 pm
The WHERE NOT EXISTS () construction often performs better than using a LEFT JOIN – I would recommend a test.
You should include table schemas in your code to avoid the...
January 14, 2016 at 12:16 pm
Alvin Ramard (1/14/2016)
It's all .NET, so could just try a script task or transform in SSIS. 😀
Script Component Source is where I would start, yes ...
January 14, 2016 at 11:23 am
Viewing 15 posts - 7,666 through 7,680 (of 13,876 total)