Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Hello. I am constructing my first program using Transact-SQL. My program is designed to work with 3 different database tables. The main table is the "Shipping_Promo_Date_Select" table. This table has two columns labeled "startdate" and "enddate". There is only one row in this table and it simply has a date. The first table is called "Shipping_Discount". This table is simply for a current promotion going on. The second table is called "Shipping_Discount_Future". This table is for a future promotion.Now, using the Transact SQL function GETDATE (), I want to issue statements based on if the GETDATE () function matches the date on the "Shipping_Promo_Date_Select" table.Any help would be greatly appreciated.Will Leonard