Click here to Skip to main content
15,919,358 members
Home / Discussions / Database
   

Database

 
Questioninsert data from excel into a sql 2005 database Pin
playout16-Aug-06 2:01
playout16-Aug-06 2:01 
AnswerRe: insert data from excel into a sql 2005 database Pin
ToddHileHoffer16-Aug-06 4:46
ToddHileHoffer16-Aug-06 4:46 
QuestionConnect to MySQL Pin
dkeenaghan16-Aug-06 0:53
dkeenaghan16-Aug-06 0:53 
AnswerRe: Connect to MySQL Pin
248912816-Aug-06 1:28
248912816-Aug-06 1:28 
GeneralRe: Connect to MySQL Pin
dkeenaghan16-Aug-06 2:27
dkeenaghan16-Aug-06 2:27 
AnswerRe: Error connecting to Access DB: "Could not find installable ISAM" Pin
Stephen McGuire16-Aug-06 7:27
Stephen McGuire16-Aug-06 7:27 
QuestionQuestion of beginer Pin
papa8015-Aug-06 22:20
papa8015-Aug-06 22:20 
AnswerRe: Question of beginer Pin
Colin Angus Mackay15-Aug-06 23:21
Colin Angus Mackay15-Aug-06 23:21 
Your tables are:

Employer
--------
IdEmployer
Name


CustomerEmployer
----------------
IdEmployer
IdCustomer


This describes two thirds of a many-to-many join. The missing information is likely to be

Customer
--------
IdCustomer
{other columns}



papa80 wrote:
SO my question is please give me query who give it to me employer.name with max customet how to do that???


What do you mean by max customer? What is a max customer? What defines the customer as being the max?

If you mean the MAX(IdCustomer) then:
SELECT Employer.Name
FROM Employer
INNER JOIN CustomerEmployer ON CustomerEmployer.IdEmployer = Employer.IdEmployer
WHERE IdCustomer = (SELECT MAX(IdCustomer) FROM CustomerEmployer)



GeneralRe: Question of beginer Pin
papa8016-Aug-06 3:55
papa8016-Aug-06 3:55 
GeneralRe: Question of beginer Pin
Colin Angus Mackay16-Aug-06 5:15
Colin Angus Mackay16-Aug-06 5:15 
GeneralRe: Question of beginer Pin
papa8016-Aug-06 22:55
papa8016-Aug-06 22:55 
GeneralRe: Question of beginer [modified] Pin
i.j.russell17-Aug-06 3:26
i.j.russell17-Aug-06 3:26 
GeneralRe: Question of beginer Pin
papa8017-Aug-06 21:09
papa8017-Aug-06 21:09 
QuestionOledb or Odbc Pin
NasimKaziS15-Aug-06 19:30
NasimKaziS15-Aug-06 19:30 
AnswerRe: Oledb or Odbc Pin
Colin Angus Mackay15-Aug-06 23:15
Colin Angus Mackay15-Aug-06 23:15 
QuestionMS SQL SERVER Transaction Log Pin
jrbvillanueva15-Aug-06 17:12
jrbvillanueva15-Aug-06 17:12 
AnswerRe: MS SQL SERVER Transaction Log Pin
Stephen McGuire16-Aug-06 7:11
Stephen McGuire16-Aug-06 7:11 
AnswerRe: MS SQL SERVER Transaction Log Pin
Mike Dimmick16-Aug-06 16:49
Mike Dimmick16-Aug-06 16:49 
QuestionSQL self join question Pin
Asad Hussain15-Aug-06 9:57
Asad Hussain15-Aug-06 9:57 
AnswerRe: SQL self join question Pin
Farhan Noor Qureshi15-Aug-06 12:28
Farhan Noor Qureshi15-Aug-06 12:28 
GeneralRe: SQL self join question Pin
Asad Hussain16-Aug-06 6:05
Asad Hussain16-Aug-06 6:05 
AnswerRe: SQL self join question Pin
Eric Dahlvang17-Aug-06 3:31
Eric Dahlvang17-Aug-06 3:31 
GeneralMS SQL Server Management Studio Express Pin
Bassam Abdul-Baki15-Aug-06 7:25
professionalBassam Abdul-Baki15-Aug-06 7:25 
GeneralRe: MS SQL Server Management Studio Express [modified] Pin
Farhan Noor Qureshi15-Aug-06 12:30
Farhan Noor Qureshi15-Aug-06 12:30 
GeneralRe: MS SQL Server Management Studio Express Pin
Bassam Abdul-Baki16-Aug-06 2:44
professionalBassam Abdul-Baki16-Aug-06 2:44 

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.