Click here to Skip to main content
15,902,777 members
Home / Discussions / Database
   

Database

 
QuestionHow i can detemine a changes that occure in my database Pin
AmirAlilou28-Nov-06 21:55
AmirAlilou28-Nov-06 21:55 
AnswerRe: How i can detemine a changes that occure in my database Pin
Bassam Saoud29-Nov-06 1:31
Bassam Saoud29-Nov-06 1:31 
GeneralRe: How i can detemine a changes that occure in my database Pin
AmirAlilou29-Nov-06 4:38
AmirAlilou29-Nov-06 4:38 
QuestionSql Server procedures Pin
raj_mas28-Nov-06 21:23
raj_mas28-Nov-06 21:23 
AnswerRe: Sql Server procedures Pin
Marek Grzenkowicz29-Nov-06 4:32
Marek Grzenkowicz29-Nov-06 4:32 
QuestionRun SQL script at given time - MS SQL Pin
pclouw28-Nov-06 21:06
pclouw28-Nov-06 21:06 
AnswerRe: Run SQL script at given time - MS SQL Pin
Pete O'Hanlon29-Nov-06 8:49
mvePete O'Hanlon29-Nov-06 8:49 
QuestionDate/time functions in SQL Server 2005 Pin
PrashantJ28-Nov-06 11:06
PrashantJ28-Nov-06 11:06 
Hi All,

I am looking for the functions in SQL server which would return me the mid day, last day of the month given the current date and the param. I would appreciate if you could point me to some related links. I have written some SQLs to do this but looks very ugly with lots of code.

Input will be some date and period.
Output will be the Till ending date interval1 and Till ending date interval2

If period(1) = weekly then the Till ending date = end of the current week (Sun) - I assume a week begins on Monday.
If period(2) = bi-weekly then the Till ending date = end of the following week (Sun)
If period(3) = semi-monthly & today <= 15th of the month then the Till ending date = 15th of the current month, otherwise Till ending date = end of month.
If period(4) = monthly then the Till ending date = end of month

For example:
Input
Some_date : 1-Jan-2006
Period

Output
Period Out1 Out2
1 8-Jan 15-Jan
2 15-Jan 29-Jan
3 15-Jan 31-Jan
4 31-Jan 28-Feb

Thanks for the help.
AnswerRe: Date/time functions in SQL Server 2005 Pin
Scott Holt28-Nov-06 13:25
Scott Holt28-Nov-06 13:25 
Questionconnecting to a database oracle 10g Pin
hadad28-Nov-06 10:44
hadad28-Nov-06 10:44 
AnswerRe: connecting to a database oracle 10g Pin
Paul Conrad28-Nov-06 13:33
professionalPaul Conrad28-Nov-06 13:33 
AnswerRe: connecting to a database oracle 10g Pin
Rupa Kalluru29-Nov-06 0:53
Rupa Kalluru29-Nov-06 0:53 
AnswerRe: connecting to a database oracle 10g Pin
A k ch4-Jan-10 23:04
A k ch4-Jan-10 23:04 
QuestionC#, dataset & multiple stored procedures Pin
digsy_28-Nov-06 9:20
digsy_28-Nov-06 9:20 
AnswerRe: C#, dataset & multiple stored procedures Pin
George L. Jackson28-Nov-06 14:02
George L. Jackson28-Nov-06 14:02 
QuestionSet Rowcount 500 or select top 500 which is better Pin
Software_Guy_12328-Nov-06 6:08
Software_Guy_12328-Nov-06 6:08 
AnswerRe: Set Rowcount 500 or select top 500 which is better Pin
Dominic Pettifer28-Nov-06 15:48
Dominic Pettifer28-Nov-06 15:48 
AnswerRe: Set Rowcount 500 or select top 500 which is better Pin
Colin Angus Mackay28-Nov-06 22:21
Colin Angus Mackay28-Nov-06 22:21 
GeneralRe: Set Rowcount 500 or select top 500 which is better Pin
Software_Guy_12329-Nov-06 17:26
Software_Guy_12329-Nov-06 17:26 
QuestionDatabase Visualisation Pin
MAYKY28-Nov-06 6:07
MAYKY28-Nov-06 6:07 
QuestionData Visualisation Pin
MAYKY28-Nov-06 6:05
MAYKY28-Nov-06 6:05 
QuestionRe: Data Visualisation Pin
Eric Dahlvang29-Nov-06 3:13
Eric Dahlvang29-Nov-06 3:13 
AnswerRe: Data Visualisation Pin
MAYKY29-Nov-06 6:50
MAYKY29-Nov-06 6:50 
QuestionRe: Data Visualisation Pin
Eric Dahlvang29-Nov-06 6:59
Eric Dahlvang29-Nov-06 6:59 
GeneralRe: Data Visualisation Pin
MAYKY29-Nov-06 7:12
MAYKY29-Nov-06 7:12 

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.