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

Database

 
QuestionFill gaps in rates data with previous working day rates. Pin
Dev S30-Oct-11 3:00
Dev S30-Oct-11 3:00 
AnswerRe: Fill gaps in rates data with previous working day rates. Pin
Mycroft Holmes30-Oct-11 12:52
professionalMycroft Holmes30-Oct-11 12:52 
QuestionGrant a role to another role Pin
Danzy8329-Oct-11 12:31
Danzy8329-Oct-11 12:31 
QuestionJust installed SQL Server 2008 R2 - Where is the app to create/open/add/update/delete DB file? Pin
swampwiz28-Oct-11 0:40
swampwiz28-Oct-11 0:40 
AnswerRe: Just installed SQL Server 2008 R2 - Where is the app to create/open/add/update/delete DB file? Pin
Geoff Williams28-Oct-11 1:29
Geoff Williams28-Oct-11 1:29 
AnswerRe: Just installed SQL Server 2008 R2 - Where is the app to create/open/add/update/delete DB file? Pin
phil.o28-Oct-11 2:25
professionalphil.o28-Oct-11 2:25 
QuestionNeed help with update SQL with subquery Pin
Hypermommy26-Oct-11 3:14
Hypermommy26-Oct-11 3:14 
AnswerRe: Need help with update SQL with subquery Pin
Corporal Agarn26-Oct-11 3:46
professionalCorporal Agarn26-Oct-11 3:46 
If you are using SQL Server then try

SQL
update pr 
set rostEntID =
(
    select TOP 1 e.recid
    from @Existing e, @dupes d2
    where
            e.refid = d2.refid
        and e.palias = d2.palias
        and e.palias2 = d2.palias2
        and e.pweight = d2.pweight
        and e.pHandicap = d2.phandicap
        and e.loginID = d2.loginid
        and e.password = d2.password
)
FROM participantresponses pr 
INNER JOIN @dupes d
ON pr.rostEntID = d.recID

Notice the TOP 1 was added to prevent multiples.
AnswerRe: Need help with update SQL with subquery Pin
Hypermommy26-Oct-11 6:03
Hypermommy26-Oct-11 6:03 
QuestionSELECT ... GROUP BY Error Pin
MikeDhaan26-Oct-11 1:07
MikeDhaan26-Oct-11 1:07 
AnswerRe: SELECT ... GROUP BY Error Pin
Simon_Whale26-Oct-11 1:13
Simon_Whale26-Oct-11 1:13 
GeneralRe: SELECT ... GROUP BY Error Pin
MikeDhaan26-Oct-11 1:59
MikeDhaan26-Oct-11 1:59 
GeneralRe: SELECT ... GROUP BY Error Pin
Jörgen Andersson26-Oct-11 2:37
professionalJörgen Andersson26-Oct-11 2:37 
GeneralRe: SELECT ... GROUP BY Error Pin
MikeDhaan26-Oct-11 5:14
MikeDhaan26-Oct-11 5:14 
GeneralRe: SELECT ... GROUP BY Error Pin
Jörgen Andersson26-Oct-11 23:46
professionalJörgen Andersson26-Oct-11 23:46 
GeneralRe: SELECT ... GROUP BY Error Pin
Jörgen Andersson27-Oct-11 0:09
professionalJörgen Andersson27-Oct-11 0:09 
GeneralRe: SELECT ... GROUP BY Error Pin
Blue_Boy26-Oct-11 5:00
Blue_Boy26-Oct-11 5:00 
AnswerRe: SELECT ... GROUP BY Error Pin
Chris Meech26-Oct-11 2:45
Chris Meech26-Oct-11 2:45 
GeneralRe: SELECT ... GROUP BY Error Pin
MikeDhaan26-Oct-11 4:23
MikeDhaan26-Oct-11 4:23 
GeneralRe: SELECT ... GROUP BY Error Pin
Chris Meech26-Oct-11 4:27
Chris Meech26-Oct-11 4:27 
GeneralRe: SELECT ... GROUP BY Error Pin
MikeDhaan26-Oct-11 4:57
MikeDhaan26-Oct-11 4:57 
GeneralRe: SELECT ... GROUP BY Error Pin
Mycroft Holmes26-Oct-11 5:03
professionalMycroft Holmes26-Oct-11 5:03 
GeneralRe: SELECT ... GROUP BY Error Pin
Chris Meech26-Oct-11 5:14
Chris Meech26-Oct-11 5:14 
GeneralRe: SELECT ... GROUP BY Error Pin
MikeDhaan26-Oct-11 5:29
MikeDhaan26-Oct-11 5:29 
GeneralRe: SELECT ... GROUP BY Error Pin
Mycroft Holmes26-Oct-11 14:01
professionalMycroft Holmes26-Oct-11 14:01 

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.