Microsoft
Software
Hardware
Network
Question : MS SQL help with simple date compare query
Got a real simple query that I am trying to write, but it is not returning the correct results. I am trying to run a query that will get all records that are >= to todays date, but I am having a hard time. Here is the query:
"select * from Appointment where 'Appt Date' > '2010-07-01'"
the column Appt Date is in the format of datetime,8,null
This query is ran in a bat file thus the "" around it. This query works, but it selects everything from the DB. I also need 2010-07-01 to be todays date, but I get a wierd error when I try to use the NOW() function (Prolly only a My Sql function). Thanks for the help!
Answer : MS SQL help with simple date compare query
Assuming that the zipcode is always 5 numbers long, and preceeded by a space, this works:
$string="Anywhere, OH 12345";
$zip = substr($string,strrpos($st
ring," ")+1,5);
echo $zip;
Random Solutions
lotus script to check the groups
Symantec Endpoint Protection - SID 23615 HTTPS Tidserv Request 2 Detected
Making a Button on a Form Visible After Checking the Text Property of a ComboBox on the Form
Exchange Restarts Unknown reason
SQL 2008 upgrade creates two separate instances
Symantec Antivirus 9.0.0.338 move to a new server issues!
Use .NET or SSIS to download Exhange email and process attachments
Exchange 2007 Certificate Renewal
VMware Workstation 7.1 Won't Install
How can I find the position of the first occurance of a numeric charater in a string with PHP?