Click here to Skip to main content
15,919,341 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello guys!

I need some help is there anyone knows how can I schedule the menu list depending on the day it should be and weekends not included?

For example:

Menu of the Day (Monday)
-Chicken Curry
-Fried Chicken
(Tuesday)
-Fried Fish
-Chicken Adobo

and so on.

Thank you!
Posted

Not sure what have you tried before posting question.

Below is a simple example for getting this done in SQL Server

SQL
CREATE TABLE dbo.DailyMenu (DayOfWeek varchar(20), MenuItem Varchar(40))

INSERT INTO dbo.DailyMenu VALUES ( 'Monday', 'Chicken Curry')
, ( 'Monday', 'Fried Chicken')
, ('Tuesday', 'Fried Fish')
, ('Tuesday', 'Chicken Adobo')

SELECT *
FROM DailyMenu
WHERE DayOfWeek = datename(dw,getdate())
 
Share this answer
 
v2
thank you for your help it is now working. =)
GOD BLESS =)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900