Click here to Skip to main content
15,903,012 members
Home / Discussions / Database
   

Database

 
AnswerRe: What would be the equivalent in SQL?? Pin
David Mujica6-Nov-09 10:38
David Mujica6-Nov-09 10:38 
GeneralRe: What would be the equivalent in SQL?? Pin
Niladri_Biswas6-Nov-09 18:22
Niladri_Biswas6-Nov-09 18:22 
GeneralRe: What would be the equivalent in SQL?? Pin
TheJudeDude9-Nov-09 4:39
TheJudeDude9-Nov-09 4:39 
QuestionSql server license key Pin
prathapcode6-Nov-09 2:37
prathapcode6-Nov-09 2:37 
AnswerRe: Sql server license key Pin
Abhishek Sur8-Nov-09 9:05
professionalAbhishek Sur8-Nov-09 9:05 
QuestionMysql Pin
geeeeeeeetha5-Nov-09 23:59
geeeeeeeetha5-Nov-09 23:59 
AnswerRe: Mysql Pin
Niladri_Biswas6-Nov-09 1:14
Niladri_Biswas6-Nov-09 1:14 
QuestionHow to update multiple rows in a table. Pin
chakran5-Nov-09 23:08
chakran5-Nov-09 23:08 
Hi,
I have requirement to update the weekno and StartdayofWeek.

By using the below query I can get weekno and StartdayofWeek but I need to insert/update these values in respective columns in the original table. Can any one help me.

Select BugDate,
          DATEADD(wk, DATEDIFF(wk, 6,[BugDate]), 6) as startdayofweek,         
          Datepart(wk,[BugDate]) + ((Datepart(year,[BugDate]) - 2008) * 52) as WeekNumber         
from [BugsDB_DefectVolume]

Table:

ID     BugDate              Weekno   BugNo StartDayofWeek
111     2009-04-12      NULL     3     NULL    
111     2009-04-19      NULL     1     NULL    
111     2009-04-26      NULL     1     NULL    
111     2009-05-03      NULL     1     NULL    
111     2009-05-10      NULL     9     NULL    
111     2009-05-17      NULL     9     NULL    
111     2009-05-24      NULL     4     NULL    
111     2009-05-31      NULL     2     NULL    
111     2009-06-07      NULL     4     NULL    


Thanks.
AnswerRe: How to update multiple rows in a table. Pin
geeeeeeeetha6-Nov-09 0:17
geeeeeeeetha6-Nov-09 0:17 
GeneralRe: How to update multiple rows in a table. Pin
chakran6-Nov-09 0:24
chakran6-Nov-09 0:24 
GeneralRe: How to update multiple rows in a table. Pin
geeeeeeeetha6-Nov-09 0:35
geeeeeeeetha6-Nov-09 0:35 
AnswerRe: How to update multiple rows in a table. [modified] Pin
Niladri_Biswas6-Nov-09 1:05
Niladri_Biswas6-Nov-09 1:05 
QuestionUnable to get the data from 2 tables which are in 2 differenet servers Pin
vnr5-Nov-09 18:58
vnr5-Nov-09 18:58 
AnswerRe: Unable to get the data from 2 tables which are in 2 differenet servers Pin
Mycroft Holmes7-Nov-09 13:17
professionalMycroft Holmes7-Nov-09 13:17 
GeneralRe: Unable to get the data from 2 tables which are in 2 differenet servers Pin
vnr7-Nov-09 19:15
vnr7-Nov-09 19:15 
GeneralRe: Unable to get the data from 2 tables which are in 2 differenet servers Pin
Mycroft Holmes7-Nov-09 22:46
professionalMycroft Holmes7-Nov-09 22:46 
Questionhorizontal union operation Pin
loyal ginger5-Nov-09 10:03
loyal ginger5-Nov-09 10:03 
AnswerRe: horizontal union operation Pin
Garth J Lancaster5-Nov-09 10:45
professionalGarth J Lancaster5-Nov-09 10:45 
AnswerRe: horizontal union operation Pin
Luc Pattyn5-Nov-09 12:59
sitebuilderLuc Pattyn5-Nov-09 12:59 
AnswerRe: horizontal union operation Pin
Niladri_Biswas5-Nov-09 17:07
Niladri_Biswas5-Nov-09 17:07 
GeneralRe: horizontal union operation Pin
Shameel9-Nov-09 3:01
professionalShameel9-Nov-09 3:01 
Answerclarification on my original question Pin
dxlee6-Nov-09 5:43
dxlee6-Nov-09 5:43 
AnswerRe: horizontal union operation Pin
Shameel9-Nov-09 3:05
professionalShameel9-Nov-09 3:05 
QuestionHelp! Database Problem, Unknown Information in a Access DataBase by the MEMO type! Pin
maysam gamini5-Nov-09 8:26
maysam gamini5-Nov-09 8:26 
AnswerRe: Help! Database Problem, Unknown Information in a Access DataBase by the MEMO type! Pin
maysam gamini5-Nov-09 12:37
maysam gamini5-Nov-09 12:37 

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.