Click here to Skip to main content
11,429,382 members (69,958 online)
   

Database

 
QuestionBackup/Recover of row data in a multi-Company database Pin
DeDawg2-Oct-12 11:35
memberDeDawg2-Oct-12 11:35 
AnswerRe: Backup/Recover of row data in a multi-Company database Pin
Mika Wendelius2-Oct-12 12:17
mvpMika Wendelius2-Oct-12 12:17 
GeneralRe: Backup/Recover of row data in a multi-Company database Pin
DeDawg2-Oct-12 12:22
memberDeDawg2-Oct-12 12:22 
GeneralRe: Backup/Recover of row data in a multi-Company database Pin
Mika Wendelius2-Oct-12 19:22
mvpMika Wendelius2-Oct-12 19:22 
AnswerRe: Backup/Recover of row data in a multi-Company database Pin
Mycroft Holmes3-Oct-12 8:39
memberMycroft Holmes3-Oct-12 8:39 
GeneralRe: Backup/Recover of row data in a multi-Company database Pin
DeDawg3-Oct-12 8:43
memberDeDawg3-Oct-12 8:43 
GeneralRe: Backup/Recover of row data in a multi-Company database Pin
Mycroft Holmes3-Oct-12 9:02
memberMycroft Holmes3-Oct-12 9:02 
Questioncannot find column [modified] Pin
sindhuan1-Oct-12 1:19
membersindhuan1-Oct-12 1: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 2:00
memberEddy Vluggen1-Oct-12 2:00 
QuestionHow to Recover Deleted rows from sql 2000 Database Pin
Robymon30-Sep-12 21:38
memberRobymon30-Sep-12 21:38 
AnswerRe: How to Recover Deleted rows from sql 2000 Database Pin
Eddy Vluggen1-Oct-12 1:57
memberEddy Vluggen1-Oct-12 1:57 
AnswerRe: How to Recover Deleted rows from sql 2000 Database Pin
Shameel3-Oct-12 6:46
memberShameel3-Oct-12 6:46 
QuestionWindows Run Command Pin
jojoba201129-Sep-12 0:08
memberjojoba201129-Sep-12 0:08 
AnswerRe: Windows Run Command Pin
Eddy Vluggen29-Sep-12 3:41
memberEddy Vluggen29-Sep-12 3:41 
AnswerRe: Windows Run Command Pin
Richard MacCutchan29-Sep-12 3:58
mvpRichard MacCutchan29-Sep-12 3:58 
AnswerRe: Windows Run Command Pin
jojoba201129-Sep-12 6:12
memberjojoba201129-Sep-12 6:12 
GeneralRe: Windows Run Command Pin
Richard MacCutchan29-Sep-12 7:09
mvpRichard MacCutchan29-Sep-12 7:09 
QuestionRe: Windows Run Command [modified] Pin
jojoba201129-Sep-12 10:26
memberjojoba201129-Sep-12 10:26 
AnswerRe: Windows Run Command Pin
Richard MacCutchan29-Sep-12 22:29
mvpRichard MacCutchan29-Sep-12 22:29 
GeneralRe: Windows Run Command Pin
jojoba201129-Sep-12 23:40
memberjojoba201129-Sep-12 23:40 
GeneralRe: Windows Run Command Pin
Richard MacCutchan30-Sep-12 2:01
mvpRichard MacCutchan30-Sep-12 2:01 
QuestionRe: Windows Run Command Pin
jojoba201130-Sep-12 5:58
memberjojoba201130-Sep-12 5:58 
AnswerRe: Windows Run Command Pin
Richard MacCutchan30-Sep-12 6:13
mvpRichard MacCutchan30-Sep-12 6:13 
QuestionRe: Windows Run Command Pin
Eddy Vluggen1-Oct-12 1:59
memberEddy Vluggen1-Oct-12 1:59 
QuestionRe: Windows Run Command Pin
Member 94738091-Oct-12 5:28
memberMember 94738091-Oct-12 5: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
Web01 | 2.8.150428.2 | Last Updated 1 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid