Click here to Skip to main content
13,288,520 members (61,987 online)
   

Database

 
GeneralRe: High CPU Pin
cjb11010-Oct-12 22:30
membercjb11010-Oct-12 22:30 
GeneralRe: High CPU Pin
cjb11011-Oct-12 0:15
membercjb11011-Oct-12 0:15 
QuestionMySQL Server timestamp changed! Pin
jrahma2-Oct-12 22:53
memberjrahma2-Oct-12 22:53 
AnswerRe: MySQL Server timestamp changed! Pin
Shameel3-Oct-12 5:05
memberShameel3-Oct-12 5:05 
QuestionConnection String for Ms access 2010 to Windows 7 64 Bit Pin
Satyam Tripathi2-Oct-12 22:33
memberSatyam Tripathi2-Oct-12 22:33 
AnswerRe: Connection String for Ms access 2010 to Windows 7 64 Bit Pin
Richard MacCutchan2-Oct-12 23:00
mvpRichard MacCutchan2-Oct-12 23:00 
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 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 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 
AnswerRe: Windows Run Command Pin
Eddy Vluggen1-Oct-12 6:09
memberEddy Vluggen1-Oct-12 6:09 
QuestionRe: Windows Run Command Pin
jojoba20111-Oct-12 23:09
memberjojoba20111-Oct-12 23:09 
AnswerRe: Windows Run Command Pin
Eddy Vluggen2-Oct-12 1:58
memberEddy Vluggen2-Oct-12 1:58 
QuestionRe: Windows Run Command Pin
jojoba20112-Oct-12 7:58
memberjojoba20112-Oct-12 7:58 
AnswerRe: Windows Run Command Pin
Eddy Vluggen2-Oct-12 9:08
memberEddy Vluggen2-Oct-12 9:08 
QuestionMySQL Question Pin
SQL Ed28-Sep-12 5:21
memberSQL Ed28-Sep-12 5:21 
AnswerRe: MySQL Question Pin
Eddy Vluggen29-Sep-12 3:38
memberEddy Vluggen29-Sep-12 3:38 
QuestionRemoving the updated row Pin
sindhuan28-Sep-12 2:48
membersindhuan28-Sep-12 2:48 
QuestionMySQL sql statement question Pin
jrahma27-Sep-12 10:28
memberjrahma27-Sep-12 10:28 
AnswerRe: MySQL sql statement question Pin
jschell27-Sep-12 11:12
memberjschell27-Sep-12 11:12 
GeneralRe: MySQL sql statement question Pin
jrahma27-Sep-12 12:08
memberjrahma27-Sep-12 12:08 
GeneralRe: MySQL sql statement question Pin
Eddy Vluggen29-Sep-12 3:42
memberEddy Vluggen29-Sep-12 3:42 
QuestionIs there a try/finally construct in sqlcmd with -b option, guaranteed to execute the finally block? Pin
muhalet27-Sep-12 1:56
membermuhalet27-Sep-12 1:56 
AnswerRe: Is there a try/finally construct in sqlcmd with -b option, guaranteed to execute the finally block? Pin
Eddy Vluggen27-Sep-12 2:42
memberEddy Vluggen27-Sep-12 2:42 
GeneralRe: Is there a try/finally construct in sqlcmd with -b option, guaranteed to execute the finally block? Pin
J4amieC27-Sep-12 3:51
memberJ4amieC27-Sep-12 3:51 
QuestionRe: Is there a try/finally construct in sqlcmd with -b option, guaranteed to execute the finally block? Pin
Eddy Vluggen27-Sep-12 5:27
memberEddy Vluggen27-Sep-12 5:27 
AnswerRe: Is there a try/finally construct in sqlcmd with -b option, guaranteed to execute the finally block? Pin
J4amieC27-Sep-12 22:29
memberJ4amieC27-Sep-12 22:29 
Questionsql script Pin
sindhuan26-Sep-12 21:08
membersindhuan26-Sep-12 21:08 
AnswerRe: sql script Pin
ihoecken26-Sep-12 22:10
memberihoecken26-Sep-12 22:10 

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.


Advertise | Privacy |
Web04 | 2.8.171207.1 | Last Updated 11 Dec 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid