Click here to Skip to main content
15,906,625 members
Home / Discussions / Database
   

Database

 
AnswerRe: Built in stored procedures Pin
Mark J. Miller29-May-08 3:32
Mark J. Miller29-May-08 3:32 
QuestionCopy data from one table to another problem Pin
soniasan28-May-08 22:42
soniasan28-May-08 22:42 
AnswerRe: Copy data from one table to another problem Pin
ChandraRam28-May-08 23:13
ChandraRam28-May-08 23:13 
GeneralRe: Copy data from one table to another problem Pin
Ashfield29-May-08 1:46
Ashfield29-May-08 1:46 
QuestionMaximum output length for PRINT in SQL 2005 Pin
MatthysDT28-May-08 21:38
MatthysDT28-May-08 21:38 
AnswerRe: Maximum output length for PRINT in SQL 2005 Pin
Ashfield29-May-08 2:16
Ashfield29-May-08 2:16 
QuestionODP.net (oracle data provider) - batches Pin
Member 453749128-May-08 19:42
Member 453749128-May-08 19:42 
Questionmultiple sql queries Pin
twsted f828-May-08 9:28
twsted f828-May-08 9:28 
Hie

I am new to sql 05, and am buiding a windows app for a hotel. I would like to to retrieve the number of occupants in the various types of rooms on a between a specified date range. eg from the 1st of the month to the end of the month.

For each day in the specified range I would like to retrieve the number occupants in each type of room. I have been able to do this by generating a different select statement for each day that is automatically updated by the program. I however feel that this method is very inefficient and would like to use a single sql statement to pull the data from the database and place it into a datatset.

Does anyone have any idea on hw i cld get around this. thank u.



tw5ted f8
AnswerRe: multiple sql queries Pin
Blue_Boy28-May-08 13:27
Blue_Boy28-May-08 13:27 
QuestionCould not find file 'C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE' error in VS 2008 Pin
MPCHAM28-May-08 3:49
MPCHAM28-May-08 3:49 
AnswerRe: Could not find file 'C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE' error in VS 2008 Pin
Mike Dimmick2-Jun-08 5:43
Mike Dimmick2-Jun-08 5:43 
QuestionNeed to display the links in datalist of pros in redcolor who r working for us Pin
subbu.sk28-May-08 2:50
subbu.sk28-May-08 2:50 
QuestionBinary data with scripts... Pin
Chinners28-May-08 2:41
Chinners28-May-08 2:41 
AnswerRe: Binary data with scripts... Pin
Chinners29-May-08 5:24
Chinners29-May-08 5:24 
Questionneed to locate all the SQL servers and their databases in domain Pin
S.Aijaz28-May-08 1:54
S.Aijaz28-May-08 1:54 
Questionparameter problem Pin
Mr.Kode28-May-08 1:07
Mr.Kode28-May-08 1:07 
AnswerRe: parameter problem Pin
Mark J. Miller29-May-08 4:15
Mark J. Miller29-May-08 4:15 
QuestionApplication Side, SQL Queries. Pin
ctrlnick27-May-08 21:28
ctrlnick27-May-08 21:28 
AnswerRe: Application Side, SQL Queries. Pin
Mark J. Miller29-May-08 4:03
Mark J. Miller29-May-08 4:03 
Questionsql server locking mechanism Pin
MozhdehQeraati27-May-08 21:01
MozhdehQeraati27-May-08 21:01 
AnswerRe: sql server locking mechanism Pin
Ashfield27-May-08 21:10
Ashfield27-May-08 21:10 
GeneralRe: sql server locking mechanism Pin
MozhdehQeraati27-May-08 21:21
MozhdehQeraati27-May-08 21:21 
GeneralRe: sql server locking mechanism Pin
Ashfield27-May-08 21:36
Ashfield27-May-08 21:36 
QuestionUpdate an image field Pin
imannasr27-May-08 18:55
imannasr27-May-08 18:55 
AnswerRe: Update an image field Pin
Christian Graus28-May-08 14:28
protectorChristian Graus28-May-08 14:28 

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.