Click here to Skip to main content
15,916,188 members
Home / Discussions / Database
   

Database

 
AnswerRe: Find lowest common ancestor in a in a tree using the Adjacency list model Pin
Mycroft Holmes16-Oct-09 23:07
professionalMycroft Holmes16-Oct-09 23:07 
GeneralRe: Find lowest common ancestor in a in a tree using the Adjacency list model Pin
Jörgen Andersson17-Oct-09 11:44
professionalJörgen Andersson17-Oct-09 11:44 
GeneralRe: Find lowest common ancestor in a in a tree using the Adjacency list model Pin
Mycroft Holmes17-Oct-09 13:25
professionalMycroft Holmes17-Oct-09 13:25 
QuestionUpdate top row Pin
dptalt16-Oct-09 3:49
dptalt16-Oct-09 3:49 
AnswerRe: Update top row Pin
Eddy Vluggen16-Oct-09 4:50
professionalEddy Vluggen16-Oct-09 4:50 
GeneralRe: Update top row Pin
i.j.russell16-Oct-09 10:41
i.j.russell16-Oct-09 10:41 
GeneralRe: Update top row Pin
Not Active16-Oct-09 13:08
mentorNot Active16-Oct-09 13:08 
AnswerRe: Update top row Pin
Geoff Williams16-Oct-09 4:56
Geoff Williams16-Oct-09 4:56 
The predicate "TOP 1" applies only to the SELECT statement, not the UPDATE statement.

In order to update just the first row in your table, your UPDATE statement will need to be

UPDATE mytable
SET myfield = "test"
WHERE ((SELECT TOP 1 myfield FROM mytable) = myfield);


(I've split the statement over several lines to improve readability).
QuestionMSSQL Question Pin
Wouter Coinless16-Oct-09 3:13
Wouter Coinless16-Oct-09 3:13 
AnswerRe: MSSQL Question Pin
Luc Pattyn16-Oct-09 3:58
sitebuilderLuc Pattyn16-Oct-09 3:58 
GeneralRe: MSSQL Question Pin
Wouter Coinless16-Oct-09 4:37
Wouter Coinless16-Oct-09 4:37 
GeneralRe: MSSQL Question Pin
J4amieC16-Oct-09 4:54
J4amieC16-Oct-09 4:54 
QuestionBreak Fullname Into First And Last Name Pin
AndyInUK15-Oct-09 23:29
AndyInUK15-Oct-09 23:29 
AnswerRe: Break Fullname Into First And Last Name Pin
Andy_L_J15-Oct-09 23:34
Andy_L_J15-Oct-09 23:34 
AnswerRe: Break Fullname Into First And Last Name Pin
Eddy Vluggen16-Oct-09 0:01
professionalEddy Vluggen16-Oct-09 0:01 
AnswerRe: Break Fullname Into First And Last Name Pin
dan!sh 16-Oct-09 0:52
professional dan!sh 16-Oct-09 0:52 
GeneralRe: Break Fullname Into First And Last Name Pin
J4amieC16-Oct-09 4:54
J4amieC16-Oct-09 4:54 
GeneralRe: Break Fullname Into First And Last Name Pin
Richard MacCutchan16-Oct-09 5:20
mveRichard MacCutchan16-Oct-09 5:20 
GeneralRe: Break Fullname Into First And Last Name Pin
dan!sh 16-Oct-09 5:51
professional dan!sh 16-Oct-09 5:51 
Question"Cannot open database" if logging into SQL-server too fast [modified] Pin
Jörgen Sigvardsson15-Oct-09 21:31
Jörgen Sigvardsson15-Oct-09 21:31 
AnswerRe: "Cannot open database" if logging into SQL-server too fast Pin
Soundman32.216-Oct-09 0:59
Soundman32.216-Oct-09 0:59 
General[Solution] Re: "Cannot open database" if logging into SQL-server too fast Pin
Jörgen Sigvardsson16-Oct-09 1:05
Jörgen Sigvardsson16-Oct-09 1:05 
QuestionProduct Page From Database Pin
johntwebb15-Oct-09 15:25
johntwebb15-Oct-09 15:25 
AnswerRe: Product Page From Database Pin
Mycroft Holmes15-Oct-09 17:43
professionalMycroft Holmes15-Oct-09 17:43 
GeneralRe: Product Page From Database Pin
johntwebb16-Oct-09 0:51
johntwebb16-Oct-09 0:51 

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.