Click here to Skip to main content
15,898,708 members
Home / Discussions / Database
   

Database

 
GeneralRe: how to insert data from one table to other two diferent tables using SQL query Pin
Blue_Boy13-Sep-08 3:27
Blue_Boy13-Sep-08 3:27 
AnswerRe: how to insert data from one table to other two diferent tables using SQL query Pin
nelsonpaixao14-Sep-08 13:31
nelsonpaixao14-Sep-08 13:31 
GeneralRe: how to insert data from one table to other two diferent tables using SQL query Pin
khalidd14-Sep-08 21:46
khalidd14-Sep-08 21:46 
QuestionSELECT COUNT returns 2 answers. Pin
Sunset Towers12-Sep-08 12:36
Sunset Towers12-Sep-08 12:36 
AnswerRe: SELECT COUNT returns 2 answers. Pin
Eslam Afifi12-Sep-08 12:58
Eslam Afifi12-Sep-08 12:58 
QuestionDupicate [modified] Pin
Bassam Saoud12-Sep-08 5:52
Bassam Saoud12-Sep-08 5:52 
GeneralRe: Dupicate Pin
Eslam Afifi13-Sep-08 4:47
Eslam Afifi13-Sep-08 4:47 
GeneralRe: Dupicate Pin
Bassam Saoud13-Sep-08 11:51
Bassam Saoud13-Sep-08 11:51 
GeneralRe: Dupicate Pin
Eslam Afifi13-Sep-08 12:54
Eslam Afifi13-Sep-08 12:54 
QuestionMore advice on a slighltly more complex select statement Pin
Steven J Jowett12-Sep-08 3:40
Steven J Jowett12-Sep-08 3:40 
AnswerRe: More advice on a slighltly more complex select statement Pin
Ashfield12-Sep-08 4:23
Ashfield12-Sep-08 4:23 
GeneralRe: More advice on a slighltly more complex select statement Pin
Steven J Jowett12-Sep-08 4:45
Steven J Jowett12-Sep-08 4:45 
GeneralRe: More advice on a slighltly more complex select statement Pin
Ashfield12-Sep-08 8:34
Ashfield12-Sep-08 8:34 
QuestionSQL Linked Server/Web Service Question Pin
dhbaer12-Sep-08 3:40
dhbaer12-Sep-08 3:40 
AnswerRe: SQL Linked Server/Web Service Question Pin
Steven J Jowett12-Sep-08 4:05
Steven J Jowett12-Sep-08 4:05 
QuestionAdvice on Select query please Pin
Steven J Jowett12-Sep-08 0:32
Steven J Jowett12-Sep-08 0:32 
AnswerRe: Advice on Select query please Pin
dojohansen12-Sep-08 1:17
dojohansen12-Sep-08 1:17 
AnswerRe: Advice on Select query please Pin
Ashfield12-Sep-08 1:39
Ashfield12-Sep-08 1:39 
GeneralRe: Advice on Select query please Pin
Steven J Jowett12-Sep-08 2:18
Steven J Jowett12-Sep-08 2:18 
GeneralRe: Advice on Select query please Pin
Ashfield12-Sep-08 4:16
Ashfield12-Sep-08 4:16 
QuestionSelect Exact Day Pin
Agweet11-Sep-08 22:16
Agweet11-Sep-08 22:16 
AnswerRe: Select Exact Day Pin
dojohansen12-Sep-08 1:21
dojohansen12-Sep-08 1:21 
Of course...

SELECT DATEPART(dw, GETDATE()) AS 'Today'

This gives you the day of the week (as an index), so if the first day is Monday (this is culture-dependent) the function returns 5 today, since today is Friday.

So just test the start date and you'll know what day of the week that is. Based on that it's pretty easy to figure out how many days it is until any given day. Smile | :)
GeneralRe: Select Exact Day Pin
Agweet12-Sep-08 1:59
Agweet12-Sep-08 1:59 
QuestionNeed some help with deleting process Pin
MarkB77711-Sep-08 22:15
MarkB77711-Sep-08 22:15 
AnswerRe: Need some help with deleting process Pin
Blue_Boy11-Sep-08 22:22
Blue_Boy11-Sep-08 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.