Click here to Skip to main content
15,917,176 members
Home / Discussions / Database
   

Database

 
QuestionData from two using a third table Pin
gharry12-Jan-06 5:41
gharry12-Jan-06 5:41 
AnswerRe: Data from two using a third table Pin
Colin Angus Mackay12-Jan-06 11:00
Colin Angus Mackay12-Jan-06 11:00 
GeneralRe: Data from two using a third table Pin
gharry12-Jan-06 22:10
gharry12-Jan-06 22:10 
GeneralRe: Data from two using a third table Pin
gharry12-Jan-06 23:30
gharry12-Jan-06 23:30 
GeneralRe: Data from two using a third table Pin
Colin Angus Mackay12-Jan-06 23:44
Colin Angus Mackay12-Jan-06 23:44 
QuestionWhat is a named variable and why use it? Pin
kenn_rosie12-Jan-06 5:39
kenn_rosie12-Jan-06 5:39 
AnswerRe: What is a named variable and why use it? Pin
Colin Angus Mackay12-Jan-06 10:57
Colin Angus Mackay12-Jan-06 10:57 
QuestionDistinct in join - please help Pin
xaphod12-Jan-06 3:32
xaphod12-Jan-06 3:32 
Hi,
Whenever a user modifies a customers data I create a log with only the id’s(int) and the datemodified(datetime). Then I want to view the 10 latest customers that the user modified, sorted by datemodyfied and with unique customernames.

So I want to select Customers.customerid and Customers.customername sorted by entries in table CustomerLogs, sorted by CustomerLogs.datemodified. No doubles of customername allowed.

I’ve tried some different joins but nothing works exactly as I want.
In a WHERE clause I have author_userid=2 AND owner_companyid=1

Can somebody give some advice, please?
I use SQL Server 2000

TABLE Customers
Customerid | customername


TABLE CustomerLogs
customerlogid | customerid | author_userid | datemodified | owner_companyid

AnswerRe: Distinct in join - please help Pin
Michael Potter12-Jan-06 4:55
Michael Potter12-Jan-06 4:55 
GeneralRe: Distinct in join - please help Pin
xaphod15-Jan-06 8:47
xaphod15-Jan-06 8:47 
QuestionSQL dyanamic ORDER BY Pin
smile869112-Jan-06 2:44
smile869112-Jan-06 2:44 
AnswerRe: SQL dyanamic ORDER BY Pin
Colin Angus Mackay12-Jan-06 2:55
Colin Angus Mackay12-Jan-06 2:55 
GeneralRe: SQL dyanamic ORDER BY Pin
smile869112-Jan-06 3:57
smile869112-Jan-06 3:57 
QuestionReplication Connection String Problem Pin
pr0wl3r11-Jan-06 6:46
pr0wl3r11-Jan-06 6:46 
AnswerRe: Replication Connection String Problem Pin
gharry12-Jan-06 22:18
gharry12-Jan-06 22:18 
QuestionVersion Error on Attaching Database Pin
Tiger45610-Jan-06 23:18
Tiger45610-Jan-06 23:18 
AnswerRe: Version Error on Attaching Database Pin
Dave Kreskowiak11-Jan-06 6:05
mveDave Kreskowiak11-Jan-06 6:05 
QuestionHelp needed in SQL Server connection Pin
satishrg10-Jan-06 17:47
satishrg10-Jan-06 17:47 
AnswerRe: Help needed in SQL Server connection Pin
Colin Angus Mackay10-Jan-06 20:55
Colin Angus Mackay10-Jan-06 20:55 
QuestionDataAdapter.Fill taking forever Pin
Luis Alonso Ramos10-Jan-06 15:59
Luis Alonso Ramos10-Jan-06 15:59 
AnswerRe: DataAdapter.Fill taking for ever Pin
nguyenvhn10-Jan-06 16:21
nguyenvhn10-Jan-06 16:21 
GeneralRe: DataAdapter.Fill taking forever Pin
Luis Alonso Ramos10-Jan-06 17:03
Luis Alonso Ramos10-Jan-06 17:03 
GeneralRe: DataAdapter.Fill taking for ever Pin
Luis Alonso Ramos11-Jan-06 12:43
Luis Alonso Ramos11-Jan-06 12:43 
NewsUpdate - still not working Pin
Luis Alonso Ramos11-Jan-06 15:00
Luis Alonso Ramos11-Jan-06 15:00 
GeneralRe: Update - still not working Pin
nguyenvhn11-Jan-06 21:25
nguyenvhn11-Jan-06 21:25 

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.