Click here to Skip to main content
16,016,394 members
Home / Discussions / Database
   

Database

 
QuestionHow to make updateble veiws and Apply Indexing on them??? Pin
Aman786Singh12-Feb-09 6:19
Aman786Singh12-Feb-09 6:19 
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 
Goodness, am I just thick or why can't I seem to get my head around GROUP BY!?

Let's use the Northwind DB as an example and let's say I want to join the Orders and Customers tables and return the first row for each customer. In other words, what I want is the first order that every customer placed, but inner joined to the customer table so that the customer's details is also returned.

This sounds simple enough but I just can't seem to make it work. The fact that I want the first order for each customer suggested to me that I should use something like SELECT TOP 1 * and have the GROUP BY CustomerID clause in there somewhere but then the result set would be rife with columns that are not contained in aggregate functions or the GROUP BY clause.

Would anyone care to offer advice here? I'm just using the Northwind DB as an example because I'm hoping that most people would be familiar with it but what I'm actually trying to achieve is to extract the first observation plus some details about the bird from a birdwatching database in which, roughly speaking, the Observations table would be equivalent to the Orders table and BirdList table would be equivalent to the Customers table.
AnswerRe: Inner Joins and Group By Pin
Wendelius12-Feb-09 4:41
mentorWendelius12-Feb-09 4:41 
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 

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.