Click here to Skip to main content
15,905,144 members
Home / Discussions / Database
   

Database

 
GeneralRe: Calculating the Time length Pin
minkinin12-Feb-07 0:09
minkinin12-Feb-07 0:09 
GeneralRe: Calculating the Time length Pin
Blue_Boy12-Feb-07 0:23
Blue_Boy12-Feb-07 0:23 
AnswerRe: Calculating the Time length Pin
gauthee11-Feb-07 22:07
gauthee11-Feb-07 22:07 
Questionless than 100 query Pin
m.rastgar11-Feb-07 19:18
m.rastgar11-Feb-07 19:18 
AnswerRe: less than 100 query Pin
Bassam Saoud11-Feb-07 19:59
Bassam Saoud11-Feb-07 19:59 
QuestionProgram can't access the server on the network >> VB.net 2005 [modified] Pin
kindman_nb11-Feb-07 10:48
kindman_nb11-Feb-07 10:48 
AnswerRe: Program can't access the server on the network >> VB.net 2005 Pin
kindman_nb11-Feb-07 21:31
kindman_nb11-Feb-07 21:31 
QuestionRe: Program can't access the server on the network >> VB.net 2005 Pin
andyharman11-Feb-07 23:43
professionalandyharman11-Feb-07 23:43 
AnswerRe: Program can't access the server on the network >> VB.net 2005 Pin
kindman_nb11-Feb-07 23:50
kindman_nb11-Feb-07 23:50 
QuestionAdvanced string manipulation - MS Access Pin
alect11-Feb-07 8:52
alect11-Feb-07 8:52 
AnswerRe: Advanced string manipulation - MS Access Pin
andyharman11-Feb-07 23:37
professionalandyharman11-Feb-07 23:37 
QuestionAssign value of one column to other Pin
TrooperIronMan11-Feb-07 7:44
TrooperIronMan11-Feb-07 7:44 
AnswerRe: Assign value of one column to other Pin
Bassam Saoud11-Feb-07 19:51
Bassam Saoud11-Feb-07 19:51 
Questionsql query analyzer Pin
Member 381773811-Feb-07 4:47
Member 381773811-Feb-07 4:47 
AnswerRe: sql query analyzer Pin
tommyligo11-Feb-07 5:27
tommyligo11-Feb-07 5:27 
AnswerRe: sql query analyzer Pin
Rob Graham11-Feb-07 5:35
Rob Graham11-Feb-07 5:35 
QuestionFilling a dataset not working Pin
Blekk10-Feb-07 14:03
Blekk10-Feb-07 14:03 
AnswerRe: Filling a dataset not working Pin
Rocky#10-Feb-07 21:02
Rocky#10-Feb-07 21:02 
GeneralRe: Filling a dataset not working Pin
Blekk11-Feb-07 2:25
Blekk11-Feb-07 2:25 
GeneralRe: Filling a dataset not working Pin
Rocky#11-Feb-07 5:22
Rocky#11-Feb-07 5:22 
AnswerRe: Filling a dataset not working Pin
Sushant Duggal11-Feb-07 23:02
Sushant Duggal11-Feb-07 23:02 
Questiongrouping data in terms of time (weeks, months, year etc) Pin
Rocky#10-Feb-07 5:43
Rocky#10-Feb-07 5:43 
hi every buddy

well I'm trying to make a few queries to make reports of my project here and I wana grup the data according to months, or weeks or years
So I'm writing a query which is like

<br />
<br />
select m.manname+' '+prod.name as Item, SUM(s.salePrice) Total_Sale, dateName(month, b.billdate)+', '+datename(year,b.billdate) as sale_Month<br />
from sale s inner join purch p on s.purchid = p.purchid<br />
inner join manufacturer on p.manid = m.manid<br />
inner join products prod on p.catid = prod.catid<br />
inner join bill b on s.billid = b.billid<br />
group by m.manname+' '+prod.name, dateName(month, b.billdate)+', '+datename(year,b.billdate)<br />
<br />


So can u plz tell me how can we make groupings so that I can get seperate records for November 2007, December 2007 and so on u so forth u know.

thanks in advance

Rocky
AnswerRe: grouping data in terms of time (weeks, months, year etc) Pin
Bassam Saoud10-Feb-07 5:49
Bassam Saoud10-Feb-07 5:49 
AnswerRe: grouping data in terms of time (weeks, months, year etc) Pin
M.H.1.2.310-Feb-07 6:24
M.H.1.2.310-Feb-07 6:24 
GeneralRe: grouping data in terms of time (weeks, months, year etc) Pin
Rocky#10-Feb-07 6:30
Rocky#10-Feb-07 6:30 

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.