Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
soniasweety
Master
Master

specific day

Hi all,

I want to load the data from database  only Saturday's data

how can I load this?

can anyone give the syntax of it?

8 Replies
its_anandrjs

If you have any date field then try this

Load

*

From Source where WeekDay(DateField) = 'Sat';

Anil_Babu_Samineni

These?

Load * From Table Where Match(WeekDay(FieldName), 'Sat');

OR

Load * From Table Where WeekDay(FieldName) = 'Sat';

OR

Load * From Table Where WeekDay(FieldName) Like 'Sat';

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
its_anandrjs

Another way also on UI you can do this if you have day field

Sum( {<Dayfield = {'Sat'} >} Sales)

soniasweety
Master
Master
Author

I have a  weeknumber  column in DB and I want to load last 10 weeks data of Saturday's ?

is it possible?

its_anandrjs

What type of data it has num or string.

soniasweety
Master
Master
Author

Numbers only

weeknumber

36

35

34

33

32   like that

its_anandrjs

Try this with where condition

Table1:

Load

*

From Source Where WeekDay(DateField) >= Max(weeknumber) - 10  and WeekDay(DateField) <= Max(weeknumber);

soniasweety
Master
Master
Author

Okay Anand thanks I will try and update on the same