Viewing 15 posts - 6,796 through 6,810 (of 15,381 total)
rockstar283 (9/17/2013)
September 17, 2013 at 2:44 pm
You have to remember that we can't see what you see. We need something to work with. I provided this as an example.
create table #Something
(
QM varchar(25),
GD bigint,
Geometry char(5),
QM_OLD varchar(25),
GD_OLD bigint,
GEOMETRY_OLD...
September 17, 2013 at 2:35 pm
In order to help we will need a few things:
1. Sample DDL in the form of CREATE TABLE statements
2. Sample data in the form of INSERT INTO statements
3. Expected results...
September 17, 2013 at 2:26 pm
timscronin (9/17/2013)
I need to extract the...
September 17, 2013 at 2:25 pm
rockstar283 (9/17/2013)
1) How to move trillion records
a)...
September 17, 2013 at 2:16 pm
sharonsql2013 (9/17/2013)
So, it should return
ProdIdProdMonthProdYearProdVolumeProdCodeProdDesc
1 ...
September 17, 2013 at 2:12 pm
Use a GROUP BY and HAVING.
Since there is nothing to work this is only psuedocode.
GROUP BY QM, GD, Geometry, QM_OLD, GEOMETRY_OLD
HAVING count(Distinct GD_OLD) = 1
September 17, 2013 at 2:08 pm
You could streamline that a little and drop the case expression if you wanted to.
select cast(nullif(columnname, '') as decimal(18, 2))
from #temp
September 17, 2013 at 1:08 pm
Please post consumable data when posting. It makes this a lot easier.
Here are a couple of ways you can accomplish this:
with myData (SomeValue) as
(
select 'doe,john_ABCDEFG1' union all
select 'jones,mark_L9905555'
)
select *,
PARSENAME(replace(SomeValue,...
September 17, 2013 at 12:05 pm
PSB (9/17/2013)
IS here any way hat I can get rid of the cursor from the procedure given below ?
Yes.
In order to help we will need a few things:
1. Sample...
September 17, 2013 at 11:54 am
There is no such thing as an empty decimal. The reason you are seeing '' being converted to 0.00 is because when you round an empty string it will implicitly...
September 17, 2013 at 11:48 am
db2mo (9/17/2013)
September 17, 2013 at 9:56 am
When something is really urgent it would benefit you to provide more details. Doing this quickly is going to depend on your meaning of quickly. Certainly using a while loop...
September 17, 2013 at 9:49 am
andrew.whettam (9/17/2013)
I know it's a bit late (the thread was opened in 2008!), but here is the answer:SELECT transaction_id FROM sys.dm_tran_current_transaction;
This is in the sql 2000 forum. That dmv was...
September 17, 2013 at 8:22 am
C Hrushi (9/17/2013)
*********************************************************************************************
DECLARE @Q NVARCHAR(4000),
@CName VARCHAR(255)
DECLARE ColCur CURSOR
FOR
SELECT C.name as Column_name
FROMsys.columns C
LEFT JOIN sys.tables t
on C.object_id = t.object_id
WHEREt.name = 'Your_table'
OPEN...
September 17, 2013 at 8:18 am
Viewing 15 posts - 6,796 through 6,810 (of 15,381 total)