H
haiwen
Hello, everyone:
I have three tables like below:
class
{classID,int;
cbtHour, int;
ojtHour, int;
}
schedule
{
scheduleID, int;
classID, int;
}
date
{
scheduleID,int;
startTime, DateTime;
endTime, DateTime;
}
the requirement is I need to set up schedule's date so
that their total hour equal to the class's
cbtHour+ojtHour. that means finish one schedule set up for
the class.
to think the SUM or average aggregate operation cannot
take a datetime data type as an argument, but I still
wonder is it possible to get those scheduleID which has
met the requirement in SQL query.
Could anyone help? I do appreciate it.
haiwen
I have three tables like below:
class
{classID,int;
cbtHour, int;
ojtHour, int;
}
schedule
{
scheduleID, int;
classID, int;
}
date
{
scheduleID,int;
startTime, DateTime;
endTime, DateTime;
}
the requirement is I need to set up schedule's date so
that their total hour equal to the class's
cbtHour+ojtHour. that means finish one schedule set up for
the class.
to think the SUM or average aggregate operation cannot
take a datetime data type as an argument, but I still
wonder is it possible to get those scheduleID which has
met the requirement in SQL query.
Could anyone help? I do appreciate it.
haiwen