Re: [SQL] Simple Query HELP!!!

2001-10-05 Thread Paolo Colonnello
[EMAIL PROTECTED] (--CELKO--) wrote in message news:<[EMAIL PROTECTED]>... > Please write DDL and not narrative. here is my guess at what you are > trying to do. What you posted was not a table because you had no key. > TEXT is not the datatype to use for names -- unless they are thousand > of

Re: [SQL] Simple Query HELP!!!

2001-09-27 Thread Paolo Colonnello
[EMAIL PROTECTED] (Bob Barrows) wrote in message news:<[EMAIL PROTECTED]>... > Do you care about ties? What if Ingrid, 38 yrs old, worked at IBM? > Would you want to show both Ingrid and Maria? If so, this will work: > > Select Name From People t1 Inner Join > (Select Company, Max(Age) As Oldest

[SQL] Simple Query HELP!!!

2001-09-27 Thread Paolo Colonnello
Hello, I have the following, A table call People with 3 fields AGE (Int) NAME (Txt) COMPANY (TxT) and I want to create a query than get me a list with the seniors per company, for example : table PEOPLE NAME AGE COMPANY Bob 33 Acme Jane30 Acme Bill20 Acme Jose5