SQLDBUSER1804
Starting Member
1 Post |
Posted - 2014-01-04 : 02:30:29
|
Hi All,I am new to SQL server world. Please help me in my following queryI have 3 tables File_List, File_Dest and File_Schedule in SQL server. File_List Contains following ColumnsFile_ID (Unique_ID), File_Status (Active/Passive), Customer_Name, Direction (I/O), First_Directory, Original_FileName.File_Dest contains following columns:File_ID, File_Dest_ID (Unique_ID), Final_Directory, Output_FileName, Delivery_Type, File_Schedule containsFile_Schedule_ID (Unique_ID), File_ID, Start_Date, First_Notify(Y/N), Second_Notify(Y/N), Due_Day and Schedule_TypeDue_Day can be Wednesday, Tuesday, Thursday, Sunday, Second Wednesday, Second Monday, Saturday, Monday, Last Monday, Last Day-1, Last Day, Friday, First Wednesday, First Sunday, First Monday, First Day, etc.Schedule_Type can be Weekly, Weekdays, Variable, Qtr Third Month, Qtr First Month, Number Per Week, Number Per Month, Number Per Day, Every 28 Days, Day(s) In Month(s), Day(s) EachMonth, Day(s) Each Week, Day(s) Each Month, Daily/Hourly, Daily, Bi-Weekly, Bi-Monthly, etc.Now I need to find today’s scheduled files with all the columns from all three tables. Please help me to create a query which can perform above task. Thanks,Khanin |
|