Click here to Skip to main content
15,896,063 members
Home / Discussions / Database
   

Database

 
GeneralRe: SQL Server Search Critiera.................... Pin
Isaac Gordon19-Jun-09 21:16
Isaac Gordon19-Jun-09 21:16 
GeneralRe: SQL Server Search Critiera.................... Pin
Ashfield20-Jun-09 6:22
Ashfield20-Jun-09 6:22 
GeneralRe: SQL Server Search Critiera.................... Pin
Niladri_Biswas25-Jun-09 16:38
Niladri_Biswas25-Jun-09 16:38 
QuestionHow to get only one record ... Pin
Kyudos18-Jun-09 18:44
Kyudos18-Jun-09 18:44 
AnswerRe: How to get only one record ... Pin
_Damian S_18-Jun-09 19:16
professional_Damian S_18-Jun-09 19:16 
GeneralRe: How to get only one record ... Pin
Niladri_Biswas19-Jun-09 3:44
Niladri_Biswas19-Jun-09 3:44 
GeneralRe: How to get only one record ... Pin
Kyudos21-Jun-09 11:08
Kyudos21-Jun-09 11:08 
AnswerRe: How to get only one record ... Pin
Niladri_Biswas19-Jun-09 3:54
Niladri_Biswas19-Jun-09 3:54 
I don't know whether you are testing others or not but I guess you are so because you statement reveals that.

Any way, use the Top 1 statement of sql server to obtain the same.

SELECT TOP 1 CONTACT.FIRSTNAME, CONTACT.LASTNAME, CONTACT.COMPANYNAME, CONTACT.USER2, EMAIL.ADDRESS
FROM dbo.CONTACT CONTACT, dbo.EMAIL EMAIL
WHERE CONTACT.CONTACTID = EMAIL.CONTACTID
ORDER BY CONTACT.LASTNAME DESC


Hope this helps
Smile | :)

Niladri Biswas

GeneralRe: How to get only one record ... Pin
Kyudos21-Jun-09 11:12
Kyudos21-Jun-09 11:12 
GeneralRe: How to get only one record ... Pin
Eddy Vluggen21-Jun-09 13:04
professionalEddy Vluggen21-Jun-09 13:04 
GeneralRe: How to get only one record ... Pin
Kyudos22-Jun-09 11:08
Kyudos22-Jun-09 11:08 
QuestionMySQL+PHP - Problem with Query not showing all results Pin
47_MasoN_4718-Jun-09 11:32
professional47_MasoN_4718-Jun-09 11:32 
AnswerRe: MySQL+PHP - Problem with Query not showing all results Pin
smcnulty200019-Jun-09 0:37
smcnulty200019-Jun-09 0:37 
GeneralRe: MySQL+PHP - Problem with Query not showing all results Pin
47_MasoN_4719-Jun-09 4:25
professional47_MasoN_4719-Jun-09 4:25 
QuestionWhat I'm I missing? Pin
DJ Matthews18-Jun-09 4:07
DJ Matthews18-Jun-09 4:07 
AnswerRe: What I'm I missing? Pin
David Mujica18-Jun-09 4:38
David Mujica18-Jun-09 4:38 
GeneralRe: What I'm I missing? Pin
DJ Matthews18-Jun-09 4:48
DJ Matthews18-Jun-09 4:48 
AnswerRe: What I'm I missing? Pin
Luc Pattyn18-Jun-09 4:50
sitebuilderLuc Pattyn18-Jun-09 4:50 
GeneralRe: What I'm I missing? Pin
DJ Matthews18-Jun-09 4:53
DJ Matthews18-Jun-09 4:53 
GeneralRe: What I'm I missing? Pin
Luc Pattyn18-Jun-09 5:04
sitebuilderLuc Pattyn18-Jun-09 5:04 
Questionsql server 2008 to 2000 Pin
Ebube18-Jun-09 2:38
Ebube18-Jun-09 2:38 
AnswerRe: sql server 2008 to 2000 Pin
Colin Angus Mackay18-Jun-09 2:42
Colin Angus Mackay18-Jun-09 2:42 
QuestionHow many primary key constraints can we have in a table of ms-access? Pin
sivakumar.mariappan18-Jun-09 0:31
sivakumar.mariappan18-Jun-09 0:31 
AnswerRe: How many primary key constraints can we have in a table of ms-access? Pin
Eddy Vluggen18-Jun-09 3:07
professionalEddy Vluggen18-Jun-09 3:07 
AnswerRe: How many primary key constraints can we have in a table of ms-access? Pin
riced18-Jun-09 7:03
riced18-Jun-09 7:03 

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.