Viewing 15 posts - 991 through 1,005 (of 2,006 total)
GSquared (1/31/2012)
BrainDonor (1/31/2012)
Somebody is about to submit an astounding piece of homework http://www.sqlservercentral.com/Forums/FindPost1244144.aspx
Ah the temptation to post a solution using Union All and a Pivot operator to avoid using Join!...
January 31, 2012 at 9:06 am
Test, test and test some more!!
When you figure out which of the multitude of solutions works best for your situation, that's the one to use.
January 31, 2012 at 9:04 am
:Whistling:
SELECT id, CONVERT(INT,SIN_ID) AS SIN_ID, CONVERT(VARCHAR(30),AgentCode_ID) AS AgentCode_ID,
CONVERT(DECIMAL(5,2),Amount) AS Amount
FROM (SELECT id, CONVERT(VARCHAR(200),SIN_ID), 'SIN_ID'
FROM #table1
UNION ALL
...
January 31, 2012 at 9:00 am
PaulB-TheOneAndOnly (1/31/2012)
GrassHopper (1/30/2012)
Can you show me an example of what you mean? I don't follow you.
Probably a dozen ways to do it, here goes one...
create table #mytable
(tocid decimal,
prop_id decimal,
str_val...
January 31, 2012 at 8:15 am
soulchyld21 (1/31/2012)
January 31, 2012 at 7:56 am
Pen and paper to create a mind map while the meeting/lecture/session is going on. Also, I record meetings/lectures/sessions with my usb dicatphone.
When the meeting/lecture/session is over, I'll use a combination...
January 31, 2012 at 6:12 am
Waiting for some code to compile, so here's another methods 😀
DECLARE @sql AS NVARCHAR(MAX),
--Set your table name here
@TABLE AS NVARCHAR(100) = 'TC70'
SELECT @sql = COALESCE(@SQL,'') + ',' + CHAR(13)...
January 30, 2012 at 8:59 am
dhanalakshmi 99938 (1/29/2012)
January 30, 2012 at 6:27 am
Here's a couple of options: -
BEGIN TRAN
CREATE TABLE #temp(
company VARCHAR(50) NOT NULL,
details VARCHAR (200) NULL ,
details2 VARCHAR (200) NULL ,
code VARCHAR (50) NULL)
INSERT INTO #temp VALUES( 'td tech', NULL, NULL,...
January 30, 2012 at 4:29 am
AccidentalDBA:) (1/27/2012)
Does anyone know how to count the number of occurances of a string within a text field, i have tried
SELECT (DATALENGTH(REPLACE(xml_text, '<TAG', '')) - DATALENGTH(xml_Text) )
FROM xml_TEXT_table
However,...
January 27, 2012 at 9:46 am
sami.sqldba (1/27/2012)
Hi AllI feeling very odd to ask but i am really really very confused by this how to make order by when query have union or union all
Just wanted...
January 27, 2012 at 6:02 am
sami.sqldba (1/27/2012)
I have a issue which i am not aware bec myself getting surprise to it..
I have a where condition for a year based on case i need to...
January 27, 2012 at 4:24 am
er.sivaganesh (1/27/2012)
for tblchapters in a course there will be lot of chatpters
chatpter 1
chapter 2 that
split function will be...
January 27, 2012 at 3:01 am
Evil Kraig F (1/27/2012)
Roy Ernest (1/26/2012)
January 27, 2012 at 2:49 am
mithubhudolia (1/27/2012)
I have to show data in reports (day wise and moth wise)
Like
In jan month ,we have 31 days so if data is available in 1'jan than show data...
January 27, 2012 at 2:48 am
Viewing 15 posts - 991 through 1,005 (of 2,006 total)