Click here to Skip to main content
15,917,642 members
Home / Discussions / Database
   

Database

 
GeneralRe: Difference in Sum(column) between two tables Pin
Richard.Berry1004-Apr-13 7:34
Richard.Berry1004-Apr-13 7:34 
Question2pc in SQL server Pin
Soiraian31-Mar-13 6:21
Soiraian31-Mar-13 6:21 
AnswerRe: 2pc in SQL server Pin
RedDk31-Mar-13 7:44
RedDk31-Mar-13 7:44 
QuestionViews vs Tables Pin
Eric Whitmore29-Mar-13 4:50
Eric Whitmore29-Mar-13 4:50 
AnswerRe: Views vs Tables Pin
PIEBALDconsult29-Mar-13 5:37
mvePIEBALDconsult29-Mar-13 5:37 
GeneralRe: Views vs Tables Pin
Eric Whitmore29-Mar-13 5:47
Eric Whitmore29-Mar-13 5:47 
GeneralRe: Views vs Tables Pin
PIEBALDconsult29-Mar-13 6:21
mvePIEBALDconsult29-Mar-13 6:21 
GeneralRe: Views vs Tables Pin
GuyThiebaut30-Mar-13 5:29
professionalGuyThiebaut30-Mar-13 5:29 
I recently tested updates on a mock view, in SQL Server 2008, which contained a join between two tables.
I did this because where I work the majority of what our users see is through views and they occasionally need to update what they see.

I read up on it beforehand and all the documentation pointed to this being possible as long as it was unambiguous as to which row in which table was being updated.

The update did work - I then tried to break it and succeeded by using an aggregate function in the view so that there was ambiguity in what would be updated.

It can be useful to insert or update a view, since if one is passing a view into a control then it is easier to perform an update, on the source of that control, than to have to attach lots of meta data documenting which tables to update.
“That which can be asserted without evidence, can be dismissed without evidence.”

― Christopher Hitchens

GeneralRe: Views vs Tables Pin
PIEBALDconsult30-Mar-13 5:51
mvePIEBALDconsult30-Mar-13 5:51 
GeneralRe: Views vs Tables Pin
GuyThiebaut30-Mar-13 5:57
professionalGuyThiebaut30-Mar-13 5:57 
GeneralRe: Views vs Tables Pin
jschell30-Mar-13 12:46
jschell30-Mar-13 12:46 
GeneralRe: Views vs Tables Pin
GuyThiebaut30-Mar-13 20:37
professionalGuyThiebaut30-Mar-13 20:37 
GeneralRe: Views vs Tables Pin
jschell31-Mar-13 11:31
jschell31-Mar-13 11:31 
GeneralRe: Views vs Tables Pin
jschell30-Mar-13 12:45
jschell30-Mar-13 12:45 
AnswerRe: Views vs Tables Pin
Corporal Agarn29-Mar-13 7:43
professionalCorporal Agarn29-Mar-13 7:43 
AnswerRe: Views vs Tables Pin
jschell29-Mar-13 11:00
jschell29-Mar-13 11:00 
GeneralRe: Views vs Tables Pin
PIEBALDconsult29-Mar-13 15:38
mvePIEBALDconsult29-Mar-13 15:38 
AnswerRe: Views vs Tables Pin
Mycroft Holmes29-Mar-13 13:19
professionalMycroft Holmes29-Mar-13 13:19 
GeneralRe: Views vs Tables Pin
PIEBALDconsult29-Mar-13 15:43
mvePIEBALDconsult29-Mar-13 15:43 
GeneralRe: Views vs Tables Pin
Mycroft Holmes29-Mar-13 17:13
professionalMycroft Holmes29-Mar-13 17:13 
GeneralRe: Views vs Tables Pin
Jörgen Andersson30-Mar-13 8:55
professionalJörgen Andersson30-Mar-13 8:55 
GeneralRe: Views vs Tables Pin
jschell30-Mar-13 12:48
jschell30-Mar-13 12:48 
GeneralRe: Views vs Tables Pin
Jörgen Andersson30-Mar-13 22:43
professionalJörgen Andersson30-Mar-13 22:43 
GeneralRe: Views vs Tables Pin
jschell31-Mar-13 11:42
jschell31-Mar-13 11:42 
GeneralRe: Views vs Tables Pin
Mycroft Holmes30-Mar-13 13:11
professionalMycroft Holmes30-Mar-13 13:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.