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.
| Author |
Topic |
|
sambrown180
Starting Member
38 Posts |
Posted - 2008-12-09 : 10:44:27
|
| i have a payment table for my database with all the card details. can anyone please tell me what code do i use, inorder to find out what cards have expired |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-12-09 : 10:51:32
|
| [code]SELECT * FROM table where expiry_date < DATEADD(dd,DATEDIFF(dd,0,GETDATE()),0)[/code] |
 |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2008-12-09 : 10:51:58
|
SELECT * FROM Table1 WHERE ExpireDate <= GETDATE() E 12°55'05.63"N 56°04'39.26" |
 |
|
|
|
|
|