Viewing 15 posts - 16 through 30 (of 41 total)
Ok,
Can we talk about the Topic now?
NOt the correct platform to talk about the personal issues.
March 4, 2009 at 8:25 am
Hahaha...
Jeff Thank for advice.
In some of those deleted posts, I also mentioned that my self has asked such questions 100times... yes 100 times, or may be more than that. ...
March 4, 2009 at 8:09 am
Its your choice, you are the Boss.
But honestly, some of the post there gave me headache.
So can we start a fresh? With simple discussion on pros and cons of...
March 4, 2009 at 7:37 am
I broke the rule 🙂 😎
The other thread giving me headache, so moderators please excuse me.
March 4, 2009 at 7:29 am
please... don't do this.
I kindly request you.
GilaMonster (3/4/2009)
Mangal Pardeshi (3/4/2009)
I can make out who is asking for right intention and who is just increasing his pots counts.Can you really?
March 4, 2009 at 6:44 am
🙂
DECLARE @T Table (Id INT, COL1 INT, COL2 INT,Val int)
INSERT INTO @T SELECT
1,2,3,10 UNION ALL SELECT -- count
1,2,3,10 UNION ALL SELECT
1,2,3,11 UNION ALL SELECT -- count
1,2,0,3 UNION ALL SELECT
2,0,3,10 UNION...
March 4, 2009 at 5:11 am
One more way, assuming that all columns you are considering are of numeric data type.
DECLARE @T Table (Id INT, COL1 INT, COL2 INT,Val int)
INSERT INTO @T SELECT
1,2,3,10 UNION ALL SELECT
1,2,0,3...
March 4, 2009 at 4:56 am
Santhosh (3/4/2009)
but the requirement is
1. to compare two tables
2. in these two tables there are 50 columns
3. 1 or 2 or 3(max) columns are of type...
March 4, 2009 at 3:34 am
Hi,
Personly I din't like my own idea, but with dynamic sql you can have a shot-
DECLARE @COLUMNS VARCHAR(1000)
DECLARE @Col1 varchar(100), @Col2 varchar(1000)
SET @COL1 = 'DATE'
SET @COL2 = 'dateId'
SELECT @Columns =...
March 4, 2009 at 2:08 am
That won't work, as both updates are getting executed at the same time, run them after one after another or try something like this--
do simple select first
select val1=val1/2,
...
March 4, 2009 at 1:52 am
Lynn Pettis (3/3/2009)
Bevan keighley (3/3/2009)
select systemID, locations = substring((select ',' + Locations from #Address WHERE systemID = A1.systemID FOR XML PATH('')),2,1024)
from #Address...
March 3, 2009 at 9:29 pm
INSERT INTO Table1 SELECT
'A1', 'Mangal', '2009-01-01' UNION ALL SELECT
'A2', 'John', '2009-01-02'
INSERT INTO Table2 SELECT
'A2', 'John', 'Some Place','2009-01-02'
SELECT a.emp_id, a.[name], b.emp_address, a.dob
FROM Table1 A LEFT JOIN Table2 B
ON a.emp_id = b.emp_id
March 3, 2009 at 6:25 am
Thanks for sharing Create and isnerts scripts
UPDATE C
SET C.rank = M.reputationvalue
FROM TblComputedData C INNER JOIN TblFeedbackData F
ON c.userId = F.UserId
INNER JOIN TblMasterData m
ON F.Score BETWEEN m.MinimumValue and M.MaximumValue ...
March 3, 2009 at 2:48 am
SELECT date,DateAdd(yy,Datediff(yy,-1,getdate()),-1)
FROM TableName
March 3, 2009 at 1:29 am
Viewing 15 posts - 16 through 30 (of 41 total)