Click here to Skip to main content
16,006,594 members
Home / Discussions / Database
   

Database

 
GeneralRe: transfering data fro one table to another Pin
Muditha Dissanayake6-Nov-08 4:39
Muditha Dissanayake6-Nov-08 4:39 
Questionwhere can i find the northwind sql script Pin
prasadbuddhika4-Nov-08 23:58
prasadbuddhika4-Nov-08 23:58 
AnswerRe: where can i find the northwind sql script Pin
cyber-drugs5-Nov-08 0:12
cyber-drugs5-Nov-08 0:12 
GeneralRe: where can i find the northwind sql script Pin
prasadbuddhika5-Nov-08 0:34
prasadbuddhika5-Nov-08 0:34 
GeneralRe: where can i find the northwind sql script Pin
cyber-drugs5-Nov-08 0:41
cyber-drugs5-Nov-08 0:41 
AnswerRe: where can i find the northwind sql script Pin
Wendelius5-Nov-08 10:38
mentorWendelius5-Nov-08 10:38 
QuestionFiltering Query results Pin
Andy_L_J4-Nov-08 23:28
Andy_L_J4-Nov-08 23:28 
AnswerRe: Filtering Query results Pin
J4amieC5-Nov-08 0:57
J4amieC5-Nov-08 0:57 
Not too hard, the basic principal is to create a query that gets the distinct line/form along with the min wgt and then join this back to the main table to get the final results.

My table was named "test" and I got the results you expect with this query:

select test.date,test.line,test.wgt,test.form
from test
inner join
(
select line,form,min(wgt) as minWgt
from test
group by line,form
) groupedTest
on test.line = groupedTest.line
and test.form = groupedtest.form
and test.wgt = groupedtest.minWgt

GeneralRe: Filtering Query results Pin
Andy_L_J5-Nov-08 1:36
Andy_L_J5-Nov-08 1:36 
QuestionError while executing Query Pin
praveenkumar_k4-Nov-08 20:50
praveenkumar_k4-Nov-08 20:50 
AnswerRe: Error while executing Query Pin
Wendelius5-Nov-08 10:43
mentorWendelius5-Nov-08 10:43 
Questionconnection string Pin
LiYS4-Nov-08 19:15
LiYS4-Nov-08 19:15 
AnswerRe: connection string Pin
Giorgi Dalakishvili4-Nov-08 20:05
mentorGiorgi Dalakishvili4-Nov-08 20:05 
GeneralRe: connection string Pin
LiYS4-Nov-08 20:18
LiYS4-Nov-08 20:18 
GeneralRe: connection string Pin
Giorgi Dalakishvili4-Nov-08 20:25
mentorGiorgi Dalakishvili4-Nov-08 20:25 
Questionget difference between two double precision columns Pin
kani984-Nov-08 12:36
kani984-Nov-08 12:36 
AnswerRe: get difference between two double precision columns Pin
Blue_Boy4-Nov-08 14:26
Blue_Boy4-Nov-08 14:26 
GeneralRe: get difference between two double precision columns Pin
kani984-Nov-08 17:52
kani984-Nov-08 17:52 
AnswerRe: get difference between two double precision columns Pin
Wendelius4-Nov-08 18:13
mentorWendelius4-Nov-08 18:13 
Questioncorrelated subselect Pin
Smithers-Jones4-Nov-08 0:30
Smithers-Jones4-Nov-08 0:30 
AnswerRe: correlated subselect [modified] Pin
Wendelius4-Nov-08 4:58
mentorWendelius4-Nov-08 4:58 
GeneralRe: correlated subselect Pin
Smithers-Jones4-Nov-08 8:07
Smithers-Jones4-Nov-08 8:07 
GeneralRe: correlated subselect Pin
Wendelius4-Nov-08 8:23
mentorWendelius4-Nov-08 8:23 
AnswerRe: correlated subselect Pin
Blue_Boy4-Nov-08 6:10
Blue_Boy4-Nov-08 6:10 
GeneralRe: correlated subselect Pin
Smithers-Jones4-Nov-08 9:24
Smithers-Jones4-Nov-08 9:24 

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.