﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Article Discussions / Article Discussions by Author / Discuss content posted by bitbucket  / VIEWS 6 / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 19 Jun 2013 23:32:51 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: VIEWS 6</title><link>http://www.sqlservercentral.com/Forums/Topic1280565-1222-1.aspx</link><description>Nice straightforward question...</description><pubDate>Wed, 30 May 2012 02:58:08 GMT</pubDate><dc:creator>Hardy21</dc:creator></item><item><title>RE: VIEWS 6</title><link>http://www.sqlservercentral.com/Forums/Topic1280565-1222-1.aspx</link><description>Thanks for the question.</description><pubDate>Wed, 23 May 2012 07:51:21 GMT</pubDate><dc:creator>Dalton Moore</dc:creator></item><item><title>RE: VIEWS 6</title><link>http://www.sqlservercentral.com/Forums/Topic1280565-1222-1.aspx</link><description>Nice straightforward question. Thanks for submitting.</description><pubDate>Mon, 23 Apr 2012 20:11:52 GMT</pubDate><dc:creator>Britt Cluff</dc:creator></item><item><title>RE: VIEWS 6</title><link>http://www.sqlservercentral.com/Forums/Topic1280565-1222-1.aspx</link><description>Good question thanks.</description><pubDate>Thu, 12 Apr 2012 02:21:32 GMT</pubDate><dc:creator>skanker</dc:creator></item><item><title>RE: VIEWS 6</title><link>http://www.sqlservercentral.com/Forums/Topic1280565-1222-1.aspx</link><description>Great question and coverage on the NOT NULL constraint.  Thanks</description><pubDate>Wed, 11 Apr 2012 08:10:43 GMT</pubDate><dc:creator>zymos</dc:creator></item><item><title>RE: VIEWS 6</title><link>http://www.sqlservercentral.com/Forums/Topic1280565-1222-1.aspx</link><description>That was easy==================[url=http://databasebestpractices.com]Database Best Practices[/url]</description><pubDate>Tue, 10 Apr 2012 13:13:18 GMT</pubDate><dc:creator>BuntyBoy</dc:creator></item><item><title>RE: VIEWS 6</title><link>http://www.sqlservercentral.com/Forums/Topic1280565-1222-1.aspx</link><description>Thanks Ron.</description><pubDate>Tue, 10 Apr 2012 11:03:52 GMT</pubDate><dc:creator>SQLRNNR</dc:creator></item><item><title>RE: VIEWS 6</title><link>http://www.sqlservercentral.com/Forums/Topic1280565-1222-1.aspx</link><description>great question.  cheers Ron!</description><pubDate>Tue, 10 Apr 2012 09:42:27 GMT</pubDate><dc:creator>OzYbOi d(-_-)b</dc:creator></item><item><title>RE: VIEWS 6</title><link>http://www.sqlservercentral.com/Forums/Topic1280565-1222-1.aspx</link><description>Great question, Ron. Back to basics, for views make sure you also know the table definition and/or possible restrictions for it (nullability, PKs/FKs, etc.). You don't take for granted a table can be updated through a view just because the view allows updates, right?"El" Jerry.</description><pubDate>Tue, 10 Apr 2012 08:53:54 GMT</pubDate><dc:creator>EL Jerry</dc:creator></item><item><title>RE: VIEWS 6</title><link>http://www.sqlservercentral.com/Forums/Topic1280565-1222-1.aspx</link><description>[quote][b]bitbucket-25253 (4/10/2012)[/b][hr]Not as easy as I thought it would be:[center]Correct answers: 75% (272) Incorrect answers: 25% (91) Total attempts: 363 [/center]Since one of the major objectives of the QOD is to teach I guess some 91 people learned something new, or just maybe have not had their morning cup of coffee.[/quote]Good question.  But I don't find 25% getting it wrong at all surprising.I imagine what most of those 91 learnt was to be a bit more careful in their reading: a lot of people will have seen at a glance that the view is an updatable view of a single table and that the where clause of the update query unambiguously defines which underlying data is to be updated, and gone for "yes" because the question is about updating through a view, then kicked themselves because they had carelessly failed to check that the new value was legal for the column.  I've seen so much of that sought of carelessness in practice that I reckon that's a very important lesson for DBAs and Developers to learn (especially those doing 2nd or 3rd line support, who often have quite extensive power to modify production systems, and those doing QA, who have the power to let all sorts of rubbish get into production if they are careless).  So keep up the good work with more questions like this.But the choice of reference was not really a good one; that BoL page doesn't tell you anything about this QotD except to go look at a different BoL page.</description><pubDate>Tue, 10 Apr 2012 08:24:20 GMT</pubDate><dc:creator>L' Eomot Inversé</dc:creator></item><item><title>RE: VIEWS 6</title><link>http://www.sqlservercentral.com/Forums/Topic1280565-1222-1.aspx</link><description>[quote][b]SandyD (4/10/2012)[/b][hr]I think the higher than expected number of incorrect answers may be due to people finding the question a little unclear.  Here is another way of phrasing what I am guessing was intended:Is the value for Col2 updated in the row where the value of Id =1 ?As the question was written, "where the value of Id =1 updated" implies that the value of Id = 1 somehow updated as part of the update statement.  I'm not sure that's what was intended.[/quote]I had absolutely no ambiguity at all in the question. When I read your comment I was a bit surprised how confusing that was. Then I went back and looked at the question again and you only included the second half of the question. The original question reads...[quote]Is the value for Col2 in the row where the value of Id =1 updated ? [/quote]How can that imply that the column Id was updated? I suppose that non native English speakers may find that a little more difficult but it is crystal clear to me.Great question Ron. It seems that there are still a lot of people who needed to learn this (23% incorrect at the time of this posting).</description><pubDate>Tue, 10 Apr 2012 07:47:48 GMT</pubDate><dc:creator>Sean Lange</dc:creator></item><item><title>RE: VIEWS 6</title><link>http://www.sqlservercentral.com/Forums/Topic1280565-1222-1.aspx</link><description>[quote][b]cfradenburg (4/10/2012)[/b][hr]I should have gone back and double checked.  I assumed it was just asking about a view updating the underlying table, not about the update violating the column constraints.  So that's one incorrect answer due to poor reading.[/quote]Yup,  ditto here.  I checked the view definition and forgot to check for nullability.</description><pubDate>Tue, 10 Apr 2012 07:25:09 GMT</pubDate><dc:creator>jeff.mason</dc:creator></item><item><title>RE: VIEWS 6</title><link>http://www.sqlservercentral.com/Forums/Topic1280565-1222-1.aspx</link><description>[quote][b]bitbucket-25253 (4/10/2012)[/b][hr]Not as easy as I thought it would be:[center]Correct answers: 75% (272) Incorrect answers: 25% (91) Total attempts: 363 [/center]Since one of the major objectives of the QOD is to teach I guess some 91 people learned something new... [/quote]Probably more than that, as some people who didn't know the answer likely guessed right. :-)Thanks for the question!</description><pubDate>Tue, 10 Apr 2012 07:13:41 GMT</pubDate><dc:creator>Thomas Abraham</dc:creator></item><item><title>RE: VIEWS 6</title><link>http://www.sqlservercentral.com/Forums/Topic1280565-1222-1.aspx</link><description>I should have gone back and double checked.  I assumed it was just asking about a view updating the underlying table, not about the update violating the column constraints.  So that's one incorrect answer due to poor reading.</description><pubDate>Tue, 10 Apr 2012 06:59:23 GMT</pubDate><dc:creator>cfradenburg</dc:creator></item><item><title>RE: VIEWS 6</title><link>http://www.sqlservercentral.com/Forums/Topic1280565-1222-1.aspx</link><description>I think the higher than expected number of incorrect answers may be due to people finding the question a little unclear.  Here is another way of phrasing what I am guessing was intended:Is the value for Col2 updated in the row where the value of Id =1 ?As the question was written, "where the value of Id =1 updated" implies that the value of Id = 1 somehow updated as part of the update statement.  I'm not sure that's what was intended.</description><pubDate>Tue, 10 Apr 2012 06:56:25 GMT</pubDate><dc:creator>SandyD</dc:creator></item><item><title>RE: VIEWS 6</title><link>http://www.sqlservercentral.com/Forums/Topic1280565-1222-1.aspx</link><description>Not as easy as I thought it would be:[center]Correct answers: 75% (272) Incorrect answers: 25% (91) Total attempts: 363 [/center]Since one of the major objectives of the QOD is to teach I guess some 91 people learned something new, or just maybe have not had their morning cup of coffee.And the last of my questions concerning VIEWS is currently scheduled for May 8th.</description><pubDate>Tue, 10 Apr 2012 05:52:30 GMT</pubDate><dc:creator>bitbucket-25253</dc:creator></item><item><title>RE: VIEWS 6</title><link>http://www.sqlservercentral.com/Forums/Topic1280565-1222-1.aspx</link><description>[quote][b]Koen Verbeeck (4/10/2012)[/b][hr]I was looking for a catch, but apparently there was none :-)[/quote]This ^.^  Glad there is no one awake around here at this hour.  I'm sitting here talking to myself outloud, "No!  But what am I not getting?!?  No, It wouldn't make any sense!"  I was gonna be very disappointed if it didn't work the way I was sure it was suppose to. :-D Thanks!</description><pubDate>Tue, 10 Apr 2012 02:58:53 GMT</pubDate><dc:creator>Rich Weissler</dc:creator></item><item><title>RE: VIEWS 6</title><link>http://www.sqlservercentral.com/Forums/Topic1280565-1222-1.aspx</link><description>Easy one...like it,thank you.</description><pubDate>Tue, 10 Apr 2012 01:59:34 GMT</pubDate><dc:creator>kapfundestanley</dc:creator></item><item><title>RE: VIEWS 6</title><link>http://www.sqlservercentral.com/Forums/Topic1280565-1222-1.aspx</link><description>I do not like this kind of EXTREMELY easy questions.:-D</description><pubDate>Tue, 10 Apr 2012 01:25:29 GMT</pubDate><dc:creator>Carlo Romagnano</dc:creator></item><item><title>RE: VIEWS 6</title><link>http://www.sqlservercentral.com/Forums/Topic1280565-1222-1.aspx</link><description>Thanks for the question.I was looking for a catch, but apparently there was none :-)</description><pubDate>Tue, 10 Apr 2012 00:36:42 GMT</pubDate><dc:creator>Koen Verbeeck</dc:creator></item><item><title>RE: VIEWS 6</title><link>http://www.sqlservercentral.com/Forums/Topic1280565-1222-1.aspx</link><description>Thanks for the easy question. It seems like you are very specialist in views. Cheers !!!!!.</description><pubDate>Mon, 09 Apr 2012 23:11:55 GMT</pubDate><dc:creator>baabhu</dc:creator></item><item><title>VIEWS 6</title><link>http://www.sqlservercentral.com/Forums/Topic1280565-1222-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/questions/View/88961/"&gt;VIEWS 6&lt;/A&gt;[/B]</description><pubDate>Mon, 09 Apr 2012 20:08:10 GMT</pubDate><dc:creator>bitbucket-25253</dc:creator></item></channel></rss>