Click here to Skip to main content
15,909,332 members
Home / Discussions / Database
   

Database

 
AnswerRe: How to make updateble veiws and Apply Indexing on them??? Pin
Wendelius12-Feb-09 6:58
mentorWendelius12-Feb-09 6:58 
QuestionWhat do u mean by worker threads in SQL server2000?? Pin
Aman786Singh12-Feb-09 6:15
Aman786Singh12-Feb-09 6:15 
AnswerRe: What do u mean by worker threads in SQL server2000?? Pin
Wendelius12-Feb-09 7:00
mentorWendelius12-Feb-09 7:00 
GeneralRe: What do u mean by worker threads in SQL server2000?? Pin
Aman786Singh12-Feb-09 21:22
Aman786Singh12-Feb-09 21:22 
QuestionWhat is the benifit of using Use Windows NT Fibers Option in SQL 2000 server??? Pin
Aman786Singh12-Feb-09 6:13
Aman786Singh12-Feb-09 6:13 
AnswerRe: What is the benifit of using Use Windows NT Fibers Option in SQL 2000 server??? Pin
Wendelius12-Feb-09 7:05
mentorWendelius12-Feb-09 7:05 
QuestionInner Joins and Group By Pin
Dewald12-Feb-09 4:09
Dewald12-Feb-09 4:09 
AnswerRe: Inner Joins and Group By Pin
Wendelius12-Feb-09 4:41
mentorWendelius12-Feb-09 4:41 
GROUP BY isn't necessarily the easiest way to do this (although it's possible). Since you want to join two tables and when joining retrieve only the first row from the other table, I would use something else than GROUP BY (basically because I'm not calclulating anything, sums , averages, counts etc, but just restricting rows)

First version could be something like:
SELECT ...
FROM   BirdList    bl,
       INNER JOIN
       Observations o
       ON bl.BirdId = o.BirdId
WHERE  NOT EXISTS (SELECT 1
                   FROM   Observations o2
                   WHERE  o2.ObservationDate < o.ObservationDate
                   AND    02.BirdId          = o.BirdId)

So fetch rows using normal join but then use correlated subquery test to check that there are no earlier records.

Didn't know the actual names of your columns so they are propably nonsense.

The need to optimize rises from a bad design.My articles[^]

GeneralRe: Inner Joins and Group By Pin
Dewald13-Feb-09 0:00
Dewald13-Feb-09 0:00 
GeneralRe: Inner Joins and Group By Pin
Wendelius13-Feb-09 3:43
mentorWendelius13-Feb-09 3:43 
Questionwhat version of MS SQL I should buy Pin
orsini4412-Feb-09 3:08
orsini4412-Feb-09 3:08 
AnswerRe: what version of MS SQL I should buy Pin
Wendelius12-Feb-09 4:42
mentorWendelius12-Feb-09 4:42 
AnswerRe: what version of MS SQL I should buy Pin
vaghelabhavesh12-Feb-09 6:26
vaghelabhavesh12-Feb-09 6:26 
Questionhow to search amharic unicode data from sql server? Pin
abiniyam12-Feb-09 2:26
abiniyam12-Feb-09 2:26 
AnswerRe: how to search amharic unicode data from sql server? Pin
Wendelius12-Feb-09 3:03
mentorWendelius12-Feb-09 3:03 
QuestionCan i insert "Dec-08" in Sql server 2005 database table column having Datatype "DateTime" Pin
Dattatraya K12-Feb-09 2:09
Dattatraya K12-Feb-09 2:09 
AnswerRe: Can i insert "Dec-08" in Sql server 2005 database table column having Datatype "DateTime" Pin
Wendelius12-Feb-09 3:00
mentorWendelius12-Feb-09 3:00 
GeneralRe: Can i insert "Dec-08" in Sql server 2005 database table column having Datatype "DateTime" Pin
Dattatraya K12-Feb-09 3:05
Dattatraya K12-Feb-09 3:05 
GeneralRe: Can i insert "Dec-08" in Sql server 2005 database table column having Datatype "DateTime" Pin
Wendelius12-Feb-09 4:07
mentorWendelius12-Feb-09 4:07 
QuestionHelp with a very complex query Pin
www.Developerof.NET12-Feb-09 0:54
www.Developerof.NET12-Feb-09 0:54 
AnswerRe: Help with a very complex query Pin
Wendelius12-Feb-09 4:28
mentorWendelius12-Feb-09 4:28 
QuestionAdd 100 in null Pin
.NET- India 11-Feb-09 21:59
.NET- India 11-Feb-09 21:59 
AnswerRe: Add 100 in null Pin
Wendelius11-Feb-09 22:22
mentorWendelius11-Feb-09 22:22 
AnswerRe: Add 100 in null Pin
Rob Philpott11-Feb-09 22:22
Rob Philpott11-Feb-09 22:22 
QuestionSql Reporting services Pin
member2711-Feb-09 20:54
member2711-Feb-09 20:54 

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.