Click here to Skip to main content
15,886,110 members
Home / Discussions / Database
   

Database

 
QuestionBackup/Recover of row data in a multi-Company database Pin
DeDawg2-Oct-12 10:35
DeDawg2-Oct-12 10:35 
AnswerRe: Backup/Recover of row data in a multi-Company database Pin
Wendelius2-Oct-12 11:17
mentorWendelius2-Oct-12 11:17 
GeneralRe: Backup/Recover of row data in a multi-Company database Pin
DeDawg2-Oct-12 11:22
DeDawg2-Oct-12 11:22 
GeneralRe: Backup/Recover of row data in a multi-Company database Pin
Wendelius2-Oct-12 18:22
mentorWendelius2-Oct-12 18:22 
AnswerRe: Backup/Recover of row data in a multi-Company database Pin
Mycroft Holmes3-Oct-12 7:39
professionalMycroft Holmes3-Oct-12 7:39 
GeneralRe: Backup/Recover of row data in a multi-Company database Pin
DeDawg3-Oct-12 7:43
DeDawg3-Oct-12 7:43 
GeneralRe: Backup/Recover of row data in a multi-Company database Pin
Mycroft Holmes3-Oct-12 8:02
professionalMycroft Holmes3-Oct-12 8:02 
Questioncannot find column Pin
sindhuan1-Oct-12 0:19
sindhuan1-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
professionalEddy Vluggen1-Oct-12 1:00 
QuestionHow to Recover Deleted rows from sql 2000 Database Pin
Robymon30-Sep-12 20:38
Robymon30-Sep-12 20:38 
AnswerRe: How to Recover Deleted rows from sql 2000 Database Pin
Eddy Vluggen1-Oct-12 0:57
professionalEddy Vluggen1-Oct-12 0:57 
AnswerRe: How to Recover Deleted rows from sql 2000 Database Pin
Shameel3-Oct-12 5:46
professionalShameel3-Oct-12 5:46 
QuestionWindows Run Command Pin
jojoba201128-Sep-12 23:08
jojoba201128-Sep-12 23:08 
AnswerRe: Windows Run Command Pin
Eddy Vluggen29-Sep-12 2:41
professionalEddy Vluggen29-Sep-12 2:41 
AnswerRe: Windows Run Command Pin
Richard MacCutchan29-Sep-12 2:58
mveRichard MacCutchan29-Sep-12 2:58 
AnswerRe: Windows Run Command Pin
jojoba201129-Sep-12 5:12
jojoba201129-Sep-12 5:12 
GeneralRe: Windows Run Command Pin
Richard MacCutchan29-Sep-12 6:09
mveRichard MacCutchan29-Sep-12 6:09 
QuestionRe: Windows Run Command Pin
jojoba201129-Sep-12 9:26
jojoba201129-Sep-12 9:26 
AnswerRe: Windows Run Command Pin
Richard MacCutchan29-Sep-12 21:29
mveRichard MacCutchan29-Sep-12 21:29 
GeneralRe: Windows Run Command Pin
jojoba201129-Sep-12 22:40
jojoba201129-Sep-12 22:40 
GeneralRe: Windows Run Command Pin
Richard MacCutchan30-Sep-12 1:01
mveRichard MacCutchan30-Sep-12 1:01 
QuestionRe: Windows Run Command Pin
jojoba201130-Sep-12 4:58
jojoba201130-Sep-12 4:58 
AnswerRe: Windows Run Command Pin
Richard MacCutchan30-Sep-12 5:13
mveRichard MacCutchan30-Sep-12 5:13 
QuestionRe: Windows Run Command Pin
Eddy Vluggen1-Oct-12 0:59
professionalEddy Vluggen1-Oct-12 0:59 
QuestionRe: Windows Run Command Pin
Member 94738091-Oct-12 4:28
Member 94738091-Oct-12 4:28 

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.