Click here to Skip to main content
15,893,668 members
Home / Discussions / Database
   

Database

 
GeneralRe: The Vanishing Data Trick Pin
Pete O'Hanlon30-Nov-06 5:05
mvePete O'Hanlon30-Nov-06 5:05 
GeneralRe: The Vanishing Data Trick Pin
Karma3125130-Nov-06 5:08
Karma3125130-Nov-06 5:08 
Questiondynamic table creation in sql server 2000 Pin
Pradip Kishore29-Nov-06 4:57
Pradip Kishore29-Nov-06 4:57 
AnswerRe: dynamic table creation in sql server 2000 Pin
Dominic Pettifer29-Nov-06 13:46
Dominic Pettifer29-Nov-06 13:46 
QuestionHow do i update a select? Pin
FIFI529-Nov-06 4:03
FIFI529-Nov-06 4:03 
AnswerRe: How do i update a select? Pin
Paddy Boyd29-Nov-06 4:44
Paddy Boyd29-Nov-06 4:44 
GeneralRe: How do i update a select? Pin
FIFI529-Nov-06 5:02
FIFI529-Nov-06 5:02 
AnswerRe: How do i update a select? Pin
Michael Potter29-Nov-06 5:51
Michael Potter29-Nov-06 5:51 
I believe your UPDATE should look something like this:
UPDATE
    tblSender 
SET
    User_Flag = 1
WHERE
    createdate = (SELECT 
                      MAX(s.createdate)
                  FROM
                      tblSender s
                  WHERE
                      s.Sender_FName = tblSender.Sender_FName AND
                      s.Sender_LName = tblSender.Sender_LName)

My 2 cents:
DISTINCT is a waste of syntax since you are using a GROUP BY Clause.
I see more and more examples on this board of tables without proper primary keys. Last/First names are lousy columns to use for an update (or a primary key).
GeneralRe: How do i update a select? Pin
FIFI529-Nov-06 7:44
FIFI529-Nov-06 7:44 
GeneralRe: How do i update a select? Pin
FIFI530-Nov-06 4:29
FIFI530-Nov-06 4:29 
QuestionSQL Server with InfoPath Pin
lyntonS29-Nov-06 2:56
lyntonS29-Nov-06 2:56 
AnswerRe: SQL Server with InfoPath Pin
Kamalonline44-Dec-06 20:30
Kamalonline44-Dec-06 20:30 
Questiondatabase design Pin
Rupa Kalluru29-Nov-06 0:28
Rupa Kalluru29-Nov-06 0:28 
AnswerRe: database design Pin
User 171649229-Nov-06 1:09
professionalUser 171649229-Nov-06 1:09 
AnswerRe: database design Pin
ednrgc29-Nov-06 7:04
ednrgc29-Nov-06 7:04 
QuestionRe: database design Pin
Rupa Kalluru29-Nov-06 16:37
Rupa Kalluru29-Nov-06 16:37 
AnswerRe: database design Pin
Pete O'Hanlon30-Nov-06 5:14
mvePete O'Hanlon30-Nov-06 5:14 
QuestionCan we get a trigger of one table on another? Pin
lavanya_satheesh28-Nov-06 23:32
lavanya_satheesh28-Nov-06 23:32 
AnswerRe: Can we get a trigger of one table on another? Pin
Pete O'Hanlon29-Nov-06 8:45
mvePete O'Hanlon29-Nov-06 8:45 
QuestionHow i can detemine a changes that occure in my database Pin
AmirAlilou28-Nov-06 21:55
AmirAlilou28-Nov-06 21:55 
AnswerRe: How i can detemine a changes that occure in my database Pin
Bassam Saoud29-Nov-06 1:31
Bassam Saoud29-Nov-06 1:31 
GeneralRe: How i can detemine a changes that occure in my database Pin
AmirAlilou29-Nov-06 4:38
AmirAlilou29-Nov-06 4:38 
QuestionSql Server procedures Pin
raj_mas28-Nov-06 21:23
raj_mas28-Nov-06 21:23 
AnswerRe: Sql Server procedures Pin
Marek Grzenkowicz29-Nov-06 4:32
Marek Grzenkowicz29-Nov-06 4:32 
QuestionRun SQL script at given time - MS SQL Pin
pclouw28-Nov-06 21:06
pclouw28-Nov-06 21:06 

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.