I've got the following tables in SQL Server for this page - Nokturnal.Net/Radio :
Nokturnal_Radio
Radio_Id int
Radio_Date datetime
Radio_Start datetime
Radio_End datetime
Radio_Name varchar
Radio_Genre varchar
Radio_Desc varchar
Nokturnal_Artists
Artists_Id
Artists_Name
Artists_Affiliation
Artists_Email
Artists_Bio
Nokturnal_Radio_Artists
Radio_Id
Artists_Id
If you click on 'HOME' you'll notice I try and pull the 'TOP 1 * From' the tables, only I have to pull the TOP 3 in order to have 3 Artists listed, If I do TOP 1, it only lists one artists on the HOME page.
Here is the current SQL Statement I'm using for the HOME page:
<%
SQL = "Select Top 3 * From Nokturnal_Radio, Nokturnal_Artists, Nokturnal_Radio_Artists Where Nokturnal_Radio.Radio_Id = Nokturnal_Radio_Artists.Radio_Id And Nokturnal_Radio_Artists.Artists_Id = Nokturnal_Artists.Artists_Id Order By Nokturnal_Radio.Radio_Date"
Set RS = Server.CreateObject("ADODB.RecordSet")
RS.Open SQL, NokturnalDB
%>
Can anyone suggest how I might be able to just pull the latest Records according to "Radio_Date".
I'd also like to expire the Records if the date has passed, but I'd like to put them into an archive Table(s). Any suggestions how I might setup my DB to Insert the expired records into an archived table(s) and then delete them when the date has passed?
I'm Beyond Help
Edited by - CrAzY on 26 March 2001 14:21:37