Click here to Skip to main content
       

Database

 
QuestionBackup/Recover of row data in a multi-Company database PinmemberDeDawg2-Oct-12 11:35 
AnswerRe: Backup/Recover of row data in a multi-Company database PinmvpMika Wendelius2-Oct-12 12:17 
GeneralRe: Backup/Recover of row data in a multi-Company database PinmemberDeDawg2-Oct-12 12:22 
GeneralRe: Backup/Recover of row data in a multi-Company database PinmvpMika Wendelius2-Oct-12 19:22 
AnswerRe: Backup/Recover of row data in a multi-Company database PinmemberMycroft Holmes3-Oct-12 8:39 
GeneralRe: Backup/Recover of row data in a multi-Company database PinmemberDeDawg3-Oct-12 8:43 
GeneralRe: Backup/Recover of row data in a multi-Company database PinmemberMycroft Holmes3-Oct-12 9:02 
Questioncannot find column [modified] Pinmembersindhuan1-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 PinmemberEddy Vluggen1-Oct-12 2:00 
QuestionHow to Recover Deleted rows from sql 2000 Database PinmemberRobymon30-Sep-12 21:38 
AnswerRe: How to Recover Deleted rows from sql 2000 Database PinmemberEddy Vluggen1-Oct-12 1:57 
AnswerRe: How to Recover Deleted rows from sql 2000 Database PinmemberShameel3-Oct-12 6:46 
QuestionWindows Run Command Pinmemberjojoba201129-Sep-12 0:08 
AnswerRe: Windows Run Command PinmemberEddy Vluggen29-Sep-12 3:41 
AnswerRe: Windows Run Command PinmvpRichard MacCutchan29-Sep-12 3:58 
AnswerRe: Windows Run Command Pinmemberjojoba201129-Sep-12 6:12 
GeneralRe: Windows Run Command PinmvpRichard MacCutchan29-Sep-12 7:09 
QuestionRe: Windows Run Command [modified] Pinmemberjojoba201129-Sep-12 10:26 
AnswerRe: Windows Run Command PinmvpRichard MacCutchan29-Sep-12 22:29 
GeneralRe: Windows Run Command Pinmemberjojoba201129-Sep-12 23:40 
GeneralRe: Windows Run Command PinmvpRichard MacCutchan30-Sep-12 2:01 
QuestionRe: Windows Run Command Pinmemberjojoba201130-Sep-12 5:58 
AnswerRe: Windows Run Command PinmvpRichard MacCutchan30-Sep-12 6:13 
QuestionRe: Windows Run Command PinmemberEddy Vluggen1-Oct-12 1:59 
QuestionRe: Windows Run Command PinmemberMember 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
Web04 | 2.8.141220.1 | Last Updated 21 Dec 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid