Click here to Skip to main content
15,888,454 members
Home / Discussions / Database
   

Database

 
GeneralRe: To apply a search on every table in a database Pin
rahuladya4-Dec-08 6:29
rahuladya4-Dec-08 6:29 
GeneralRe: To apply a search on every table in a database Pin
Ashfield4-Dec-08 9:18
Ashfield4-Dec-08 9:18 
GeneralRe: To apply a search on every table in a database Pin
rahuladya4-Dec-08 20:55
rahuladya4-Dec-08 20:55 
GeneralRe: To apply a search on every table in a database Pin
Mycroft Holmes4-Dec-08 21:54
professionalMycroft Holmes4-Dec-08 21:54 
QuestionReporting Services and multiple connection strings Pin
gantww3-Dec-08 11:20
gantww3-Dec-08 11:20 
AnswerRe: Reporting Services and multiple connection strings Pin
moon_stick3-Dec-08 22:48
moon_stick3-Dec-08 22:48 
AnswerRe: Reporting Services and multiple connection strings Pin
Mycroft Holmes4-Dec-08 21:58
professionalMycroft Holmes4-Dec-08 21:58 
QuestionQuery Pin
CodingYoshi3-Dec-08 9:15
CodingYoshi3-Dec-08 9:15 
I have a table with three columns: EmployeeID, Target, Date

Every employee is assigned a target (amount in dollars) to try to hit on every date. How do I get the latest target each employee has been assigned ordered by the employeeID. I tried the following but it is not accurate:

SELECT EmployeeID, MAX(Date), Target
FROM Target
GROUP BY EmployeeID, Target
ORDER BY EmployeeID

This query does not only return the latest target date.
AnswerRe: Query Pin
Wendelius3-Dec-08 9:32
mentorWendelius3-Dec-08 9:32 
QuestionAccommodating an apostrophe in SQL... [modified] Pin
new_phoenix3-Dec-08 5:24
new_phoenix3-Dec-08 5:24 
AnswerRe: Accommodating an apostrophe in SQL... Pin
Jay Royall3-Dec-08 5:41
Jay Royall3-Dec-08 5:41 
GeneralRe: Accommodating an apostrophe in SQL... Pin
new_phoenix3-Dec-08 6:03
new_phoenix3-Dec-08 6:03 
GeneralRe: Accommodating an apostrophe in SQL... Pin
Jay Royall3-Dec-08 6:12
Jay Royall3-Dec-08 6:12 
GeneralRe: Accommodating an apostrophe in SQL... Pin
new_phoenix3-Dec-08 6:30
new_phoenix3-Dec-08 6:30 
AnswerRe: Accommodating an apostrophe in SQL... Pin
Wendelius3-Dec-08 6:51
mentorWendelius3-Dec-08 6:51 
QuestionMSSQL : getting data from few tables Pin
benjamin yap3-Dec-08 1:41
benjamin yap3-Dec-08 1:41 
AnswerRe: MSSQL : getting data from few tables Pin
Ben Fair3-Dec-08 3:49
Ben Fair3-Dec-08 3:49 
GeneralRe: MSSQL : getting data from few tables [modified] Pin
benjamin yap3-Dec-08 4:13
benjamin yap3-Dec-08 4:13 
GeneralRe: MSSQL : getting data from few tables Pin
Ben Fair3-Dec-08 5:04
Ben Fair3-Dec-08 5:04 
QuestionHow can I store PDB files? Pin
harcaype3-Dec-08 1:00
harcaype3-Dec-08 1:00 
AnswerRe: How can I store PDB files? Pin
Jay Royall3-Dec-08 1:19
Jay Royall3-Dec-08 1:19 
AnswerRe: How can I store PDB files? Pin
Giorgi Dalakishvili3-Dec-08 4:35
mentorGiorgi Dalakishvili3-Dec-08 4:35 
QuestionInsert before update -the first data- in a historical table Pin
foryou3-Dec-08 0:11
foryou3-Dec-08 0:11 
AnswerRe: Insert before update -the first data- in a historical table Pin
Blue_Boy3-Dec-08 0:21
Blue_Boy3-Dec-08 0:21 
GeneralRe: Insert before update -the first data- in a historical table Pin
foryou3-Dec-08 0:50
foryou3-Dec-08 0:50 

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.