Select Using .Net

  • Thread starter Thread starter LIN
  • Start date Start date
L

LIN

Hi,

I have dataset which contains the data like this

TranDate PurchaseVal
------------ -------------
2003-01-01 51
2003-01-02 52
2003-01-03 54
2003-01-04 53
2003-01-05 54
2003-01-06 56
2003-01-07 58
2003-01-08 52
2003-01-09 51
2003-01-10 55

From this data I want weekly Info

Week Value
1 208
2 ---
3 ---

How I can get this

If I am using .Select("DatePart(week,TranDate)= " & 1)
it is giving me the error DatePart is not defines


Need Advice

LIN
 
LIN said:
Hi,

I have dataset which contains the data like this

TranDate PurchaseVal
------------ -------------
2003-01-01 51
2003-01-02 52
2003-01-03 54
2003-01-04 53
2003-01-05 54
2003-01-06 56
2003-01-07 58
2003-01-08 52
2003-01-09 51
2003-01-10 55

From this data I want weekly Info

Week Value
1 208
2 ---
3 ---

How I can get this

If I am using .Select("DatePart(week,TranDate)= " & 1)
it is giving me the error DatePart is not defines

This is an ADO.NET related question because the dataset is part of ADO.NET.
Please turn to microsoft.public.dotnet.framework.adonet.
 
Back
Top