Click here to Skip to main content
15,889,281 members
Home / Discussions / Database
   

Database

 
GeneralRe: Cannot connect a remote SQL server 2005... Pin
Jun Du9-Nov-11 4:49
Jun Du9-Nov-11 4:49 
AnswerRe: Cannot connect a remote SQL server 2005... Pin
Luc Pattyn9-Nov-11 4:54
sitebuilderLuc Pattyn9-Nov-11 4:54 
GeneralRe: Cannot connect a remote SQL server 2005... Pin
Jun Du9-Nov-11 5:09
Jun Du9-Nov-11 5:09 
QuestionMS SQL Server Trigger help Pin
eddjusted9-Nov-11 3:18
eddjusted9-Nov-11 3:18 
AnswerRe: MS SQL Server Trigger help Pin
R. Giskard Reventlov9-Nov-11 3:49
R. Giskard Reventlov9-Nov-11 3:49 
GeneralRe: MS SQL Server Trigger help Pin
eddjusted9-Nov-11 3:56
eddjusted9-Nov-11 3:56 
AnswerRe: MS SQL Server Trigger help Pin
Corporal Agarn9-Nov-11 6:26
professionalCorporal Agarn9-Nov-11 6:26 
QuestionMySQL query help Pin
eddjusted9-Nov-11 3:02
eddjusted9-Nov-11 3:02 
Hi,
I have two mysql tables with large amount of data.
Table_1 has fields PropID, FullStreetAddress, City, State, Zipcode, Remarks, Date which I want to pick. Table_2 has PropID,URL.
Now I want to pick top 60 rows from table_1 order by date desc. Each PropID has several URL records in Table_2. Out of those records, I need to pick only 4 for each PropID in table_1.
So in effect I would get a result set of 60 x 4 = 240 rows.
Selecting from table_1 and inner joining on PropID in table_2, I am getting a complete result set, but I need to limit that somehow to get 60 rows from table_1 and 4 rows for each of the 60 ids from table_2 in a single query.

thanks.
AnswerRe: MySQL query help Pin
Blue_Boy9-Nov-11 3:18
Blue_Boy9-Nov-11 3:18 
GeneralRe: MySQL query help Pin
eddjusted9-Nov-11 3:20
eddjusted9-Nov-11 3:20 
AnswerRe: MySQL query help Pin
Bernhard Hiller9-Nov-11 20:56
Bernhard Hiller9-Nov-11 20:56 
QuestionProblem in query Pin
uspatel8-Nov-11 18:52
professionaluspatel8-Nov-11 18:52 
AnswerRe: Problem in query Pin
_Damian S_8-Nov-11 18:59
professional_Damian S_8-Nov-11 18:59 
GeneralRe: Problem in query Pin
uspatel8-Nov-11 19:28
professionaluspatel8-Nov-11 19:28 
AnswerRe: Problem in query Pin
Blue_Boy8-Nov-11 21:36
Blue_Boy8-Nov-11 21:36 
GeneralRe: Problem in query Pin
uspatel9-Nov-11 1:31
professionaluspatel9-Nov-11 1:31 
Questionsaving changes to sqlserver2008 Pin
MalarGayu8-Nov-11 15:41
MalarGayu8-Nov-11 15:41 
AnswerRe: saving changes to sqlserver2008 Pin
_Damian S_8-Nov-11 17:54
professional_Damian S_8-Nov-11 17:54 
AnswerRe: saving changes to sqlserver2008 Pin
uspatel8-Nov-11 19:33
professionaluspatel8-Nov-11 19:33 
AnswerNot Allow Null ? Pin
David Mujica9-Nov-11 3:16
David Mujica9-Nov-11 3:16 
QuestionLesserOf function Pin
PIEBALDconsult8-Nov-11 15:05
mvePIEBALDconsult8-Nov-11 15:05 
AnswerRe: LesserOf function Pin
Andy_L_J8-Nov-11 21:28
Andy_L_J8-Nov-11 21:28 
GeneralRe: LesserOf function Pin
PIEBALDconsult9-Nov-11 1:45
mvePIEBALDconsult9-Nov-11 1:45 
AnswerRe: LesserOf function Pin
Andy_L_J9-Nov-11 7:33
Andy_L_J9-Nov-11 7:33 
AnswerRe: LesserOf function Pin
Jörgen Andersson8-Nov-11 22:50
professionalJörgen Andersson8-Nov-11 22: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.