Viewing 15 posts - 466 through 480 (of 1,048 total)
sqlsdev (6/3/2013)
I have two tables, lets say Table 1 and Table 2 as below
Table 1:
Col1 Col2 Col3
1 _A 11
2 _B 12
3 _C 12
4 _A 11
Table...
June 3, 2013 at 4:02 am
Try this:
SELECT T1.Col1, T1.Col2, T2.Val
FROM table1 T1
INNER JOIN table2 T2 on T1.col2 = T2.ID
June 3, 2013 at 1:22 am
Just change the order of the table creation as per suggested by the experts 🙂
June 1, 2013 at 7:45 am
Luis Cazares (5/30/2013)
Use a batch separator (a.k.a. GO).This will help you unless you're using the query inside a SP.
+1 🙂
June 1, 2013 at 7:42 am
Hi,
As per my concern we can not apply identity property on alphanumeric field.
to set the identity property on you have to use like this,
SET IDENTITY_INSERT table_name ON/OFF
June 1, 2013 at 7:38 am
I learn it from the article: 🙂
http://www.sqlservercentral.com/articles/XML/71659/
If someone else also want to learn this then please refer this link.
May 31, 2013 at 5:23 am
dan-572483 (5/28/2013)
According the the Querying SQL2012 exam prep book, a SELECT * inside an EXISTS clause returns true or false only - not all...
May 29, 2013 at 6:46 am
Lynn Pettis (5/28/2013)
May 29, 2013 at 6:44 am
Dineshbabu (5/29/2013)
May 29, 2013 at 2:20 am
Aadhar Joshi (5/27/2013)
If u'r facing problem with insertion see below demo.DROP TABLE #temp
Create table #temp
(
ID int identity(1,1),
ActivityName varchar(max),
ApplicationName varchar(100),
ActivityDate datetime2
)
Insert into #temp
Values
('Successfully Login into Dynamic Portal Application','Login',CAST('2013-05-20 13:22:21.000' AS DATETIME2))
I...
May 27, 2013 at 6:15 am
I have change structure of a table and added one more column. Now plz help me in achieving that output
Create table #temp
(
ID int identity(1,1),
ActivityName varchar(max),
ApplicationName varchar(100),
ActivityDate datetime
)
Insert into #temp
Values
('Successfully Login...
May 27, 2013 at 5:54 am
abhishekagrwl25 (5/27/2013)
i have to do it dynamically..
you can make use of PIVOT for this..........
May 27, 2013 at 3:48 am
Viewing 15 posts - 466 through 480 (of 1,048 total)