Viewing 15 posts - 31 through 45 (of 98 total)
select RBR,XLOC,CRE
FROM
(
select RBR,Attribute,Value from Test
) tbl
pivot(min(value) for Attribute in (XLOC,CRE)) as pvt
UNION
select RBR,XLOC,CRE
FROM
(
select RBR,Attribute,Value from Test
) tbl
pivot(max(value) for Attribute in (XLOC,CRE)) as pvt
February 1, 2016 at 4:24 am
SELECT StudentSubiect.StudentID
AVG (Grade)
FROM StudentSubiect
INNER JOIN Student
on
StudentSubiect.StudentID=Student.StudentID
GROUP BY Name, Surname DESC
Should be like this:
SELECT StudentSubiect.StudentID
AVG (Grade)
FROM StudentSubiect
INNER JOIN Student
on
StudentSubiect.StudentID=Student.StudentID
GROUP BY StudentSubiect.StudentID
I guess you are confused with Group...
January 22, 2016 at 4:07 am
Thanks all for your replies
I have written a small article explaining this and leaving to the developer on the decision of their type of data and transaction pattern as Gail...
January 22, 2016 at 3:43 am
Thanks Gail, I just created a DDL trigger on Create_table/alter_table
January 22, 2016 at 3:37 am
Fair enough,
I will come up with some scripts for pinpointing the issue
January 18, 2016 at 4:58 am
The "ADO NET Source" failed because truncation occurred, and the truncation row disposition on "ADO NET Source.Outputs[ADO NET Source Output].Columns[U_OrderName]" specifies failure on truncation.
It says that there is a...
January 16, 2016 at 6:37 am
When looking at low-level implementation details, yes.
Functionally, no. There are lots of functional differences between unique and nonunique indexes. So you will want to continue defining indexes are unique when...
January 15, 2016 at 5:33 am
Is there a way to know if the update of a CTE, which is based on multiple tables, will not only be successful but the results will also be as...
January 15, 2016 at 5:27 am
Yes that makes sense.
Thank you
I will correct my post
January 14, 2016 at 3:13 am
johnwalker10 (1/13/2016)
Use Truncate table deletes all the rows in that table
TRUNCATE TABLE LargeTable
GO
True, but it will be useful if you have simple recovery model for your db.
and put...
January 14, 2016 at 2:22 am
Thanks Gail, for correcting me. I just tested that.
So what I see that for non-unique nonclustered index, clustered index keys becomes the part of nonclustered index keys.
However for unique non-clustered...
January 14, 2016 at 2:18 am
Hi All,
I took some time to write a detail article on this, which might be useful for all for our reference
January 13, 2016 at 10:25 pm
Yes that was a silly question.
I was in confusion with NonClustered Indexes rebuild when clustered indexes are rebuild
December 11, 2015 at 11:04 pm
Viewing 15 posts - 31 through 45 (of 98 total)