Click here to Skip to main content
11,637,176 members (61,109 online)
   

Database

 
QuestionBackup/Recover of row data in a multi-Company database Pin
DeDawg2-Oct-12 10:35
memberDeDawg2-Oct-12 10:35 
AnswerRe: Backup/Recover of row data in a multi-Company database Pin
Mika Wendelius2-Oct-12 11:17
mvpMika Wendelius2-Oct-12 11:17 
GeneralRe: Backup/Recover of row data in a multi-Company database Pin
DeDawg2-Oct-12 11:22
memberDeDawg2-Oct-12 11:22 
GeneralRe: Backup/Recover of row data in a multi-Company database Pin
Mika Wendelius2-Oct-12 18:22
mvpMika Wendelius2-Oct-12 18:22 
AnswerRe: Backup/Recover of row data in a multi-Company database Pin
Mycroft Holmes3-Oct-12 7:39
memberMycroft Holmes3-Oct-12 7:39 
GeneralRe: Backup/Recover of row data in a multi-Company database Pin
DeDawg3-Oct-12 7:43
memberDeDawg3-Oct-12 7:43 
GeneralRe: Backup/Recover of row data in a multi-Company database Pin
Mycroft Holmes3-Oct-12 8:02
memberMycroft Holmes3-Oct-12 8:02 
Questioncannot find column Pin
sindhuan1-Oct-12 0:19
membersindhuan1-Oct-12 0:19 
Hi
I am trying to execute this query but its giving me an error

"Cannot find either column "D" or the user-defined function or aggregate "D.bonus", or the name is ambiguous.
"
Query:

MERGE INTO bonuses D
USING bonuses1 E
ON D.employee_id = S.employee_id)
WHEN MATCHED THEN
UPDATE SET
D.bonus = E.bonus
WHEN NOT MATCHED THEN INSERT (D.employee_id, D.bonus)
VALUES ES.employee_id, E.salary*0.1)
WHERE (E.salary <= 8000);


UPDATE bonuses
Set bonus=10000
FROM bonuses D
JOIN cbonuses1 E
ON D.employee_id = S.employee_id)

Any idea??

modified 1-Oct-12 7:56am.

AnswerRe: cannot find column Pin
Eddy Vluggen1-Oct-12 1:00
memberEddy Vluggen1-Oct-12 1:00 
QuestionHow to Recover Deleted rows from sql 2000 Database Pin
Robymon30-Sep-12 20:38
memberRobymon30-Sep-12 20:38 
AnswerRe: How to Recover Deleted rows from sql 2000 Database Pin
Eddy Vluggen1-Oct-12 0:57
memberEddy Vluggen1-Oct-12 0:57 
AnswerRe: How to Recover Deleted rows from sql 2000 Database Pin
Shameel3-Oct-12 5:46
memberShameel3-Oct-12 5:46 
QuestionWindows Run Command Pin
jojoba201128-Sep-12 23:08
memberjojoba201128-Sep-12 23:08 
AnswerRe: Windows Run Command Pin
Eddy Vluggen29-Sep-12 2:41
memberEddy Vluggen29-Sep-12 2:41 
AnswerRe: Windows Run Command Pin
Richard MacCutchan29-Sep-12 2:58
mvpRichard MacCutchan29-Sep-12 2:58 
AnswerRe: Windows Run Command Pin
jojoba201129-Sep-12 5:12
memberjojoba201129-Sep-12 5:12 
GeneralRe: Windows Run Command Pin
Richard MacCutchan29-Sep-12 6:09
mvpRichard MacCutchan29-Sep-12 6:09 
QuestionRe: Windows Run Command Pin
jojoba201129-Sep-12 9:26
memberjojoba201129-Sep-12 9:26 
AnswerRe: Windows Run Command Pin
Richard MacCutchan29-Sep-12 21:29
mvpRichard MacCutchan29-Sep-12 21:29 
GeneralRe: Windows Run Command Pin
jojoba201129-Sep-12 22:40
memberjojoba201129-Sep-12 22:40 
GeneralRe: Windows Run Command Pin
Richard MacCutchan30-Sep-12 1:01
mvpRichard MacCutchan30-Sep-12 1:01 
QuestionRe: Windows Run Command Pin
jojoba201130-Sep-12 4:58
memberjojoba201130-Sep-12 4:58 
AnswerRe: Windows Run Command Pin
Richard MacCutchan30-Sep-12 5:13
mvpRichard MacCutchan30-Sep-12 5:13 
QuestionRe: Windows Run Command Pin
Eddy Vluggen1-Oct-12 0:59
memberEddy Vluggen1-Oct-12 0:59 
QuestionRe: Windows Run Command Pin
Member 94738091-Oct-12 4:28
memberMember 94738091-Oct-12 4:28 

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

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


Advertise | Privacy | Mobile
Web02 | 2.8.150728.1 | Last Updated 30 Jul 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid