473,385 Members | 1,338 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Order Schedule.

If someone can give me an idea to do this in Ms-SqlServer:

Create a order, this order I have to asign different location
for each process of the order.
Each location has a lasting time asigned in Hours.
I have to determine the DateTime of begining and ending for
each process, the order has the begining datetime.

How can I determine the process DateTime(Begin,End)?
I have to consider the WorkTime and Free-Days (Saturday, Sunday..).
So when I create a new order the DateTime Asigned can not be used
by another order still opened.
Thank you.
S.L.

Jul 23 '05 #1
3 1101
(sa******@hotmail.com) writes:
If someone can give me an idea to do this in Ms-SqlServer:

Create a order, this order I have to asign different location
for each process of the order.
Each location has a lasting time asigned in Hours.
I have to determine the DateTime of begining and ending for
each process, the order has the begining datetime.

How can I determine the process DateTime(Begin,End)?
I have to consider the WorkTime and Free-Days (Saturday, Sunday..).
So when I create a new order the DateTime Asigned can not be used
by another order still opened.


I'm not really sure what you are asking for. Do you want help with a
query, or is it the design more in general? If you want help with a
query, including a table definition, sample data and desired output
would be helpful.

One thing I can say, to handle work-time, you need some sort of a
calendar table, since you probably also want to include other
days off than just Saturday and Sunday, for instance New Year's Day.
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 23 '05 #2
sa******@hotmail.com wrote in news:1116607729.750088.190080
@g14g2000cwa.googlegroups.com:
If someone can give me an idea to do this in Ms-SqlServer:

Create a order, this order I have to asign different location
for each process of the order.
Each location has a lasting time asigned in Hours.
I have to determine the DateTime of begining and ending for
each process, the order has the begining datetime.

How can I determine the process DateTime(Begin,End)?
I have to consider the WorkTime and Free-Days (Saturday, Sunday..).
So when I create a new order the DateTime Asigned can not be used
by another order still opened.

Is this a homework assignment?

Jul 23 '05 #3
In addition to Erland's reply you may want to take a look at:
http://www.aspfaq.com/show.asp?id=2519

John

<sa******@hotmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
If someone can give me an idea to do this in Ms-SqlServer:

Create a order, this order I have to asign different location
for each process of the order.
Each location has a lasting time asigned in Hours.
I have to determine the DateTime of begining and ending for
each process, the order has the begining datetime.

How can I determine the process DateTime(Begin,End)?
I have to consider the WorkTime and Free-Days (Saturday, Sunday..).
So when I create a new order the DateTime Asigned can not be used
by another order still opened.
Thank you.
S.L.

Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: bigfella | last post by:
Hi Everyone, I am using the following code (many thanks for the code folks BTW) to generate 3 schedules in three tables one is a schedule with 7 day intervals and two are daily schedules. The...
0
by: argniw | last post by:
I have a schedule of annual events that need to occur in different locations throughout the year. Each event has a due date associated with it. I also have an optimal schedule that consolidates...
1
by: greg7224 | last post by:
I am currently working on a C# project that uses the Janus schedule controls, and am having trouble getting it to print correctly in Day view. The problem is that it will not print out the owners...
21
by: dragoncoder | last post by:
Consider the following code. #include <stdio.h> int main() { int i =1; printf("%d ,%d ,%d\n",i,++i,i++); return 0; }
16
by: mdh | last post by:
May I ask the group the following: (Again, alas , from K&R) This is part of a function: while ( ( array1 = array2 ) != '\0' ); /* etc etc */ Is this the order that this is evaluated? ...
3
by: tstutting | last post by:
Hello, This is my first post and I'd really appreciate any help I can get. Sorry this is so long but it's complicated. I'm a USAF Officer and I'm attempting to make a shared MS Access DB that...
7
by: hgirma | last post by:
Hello Gurus, Is it possible to schedule a task to run an application deployed using ClickOnce? The executable changes location with each update.. and if i were to run the executable directly,...
3
by: assgar | last post by:
Hi I am having problem with my loping. I don't know if I have chosen the correct approach. GOAL: I need to insert into a table event types for a specific date range. The calendar the event...
14
lotus18
by: lotus18 | last post by:
Hello all I have these records on my Day Table for my complete database table please click here 1. M 2. T 3. W 4. TH 5. F 6. S
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.