由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - SQL Query 取transaction table 中本周的记录
相关主题
SQL Server Update Query - non-unique value[转载] question about SQL in Access
SQL Query Question[转载] Can anyone interpret this simple SQL?
[query]mysql怎么选择独特的两个字段组合?parameterized queries with no inputs
再请教大牛一个问题A SQL query never stop running is bothering me: help needed (转载)
请问这个update query有什么问题?Question on SQL Query
求解释SQL Standard
这2个query哪个快点,为啥SQL help!
一个SQL query的问题请教SQL
相关话题的讨论汇总
话题: today话题: 01话题: query话题: sql
进入Database版参与讨论
1 (共1页)
n********6
发帖数: 1511
1
忽然发现还挺麻烦。明天再做。
n********6
发帖数: 1511
2
LOGIC:
Today = DateDiff("d", "01/01/1900", Date())
CurrentWeekDay = (Today Mod 7) + 1
FirstWeekDay = DateAdd("d", Today-CurrentWeekDay, "01/01/1900")
LastWeekDay = DateAdd("d", Today+6-CurrentWeekDay, "01/01/1900")
SELECT * FROM TABLEA
WHERE TRANSACTIONDATE >= FIRSTWEEKDAY
AND TRANSACTIONDATE <= LASTWEEKDAY
/* works in asp */
Any simple method?
1 (共1页)
进入Database版参与讨论
相关主题
请教SQL请问这个update query有什么问题?
Oracle Group and Index question求解释
有趣的Join问题,源于SQL和SAS比较。这2个query哪个快点,为啥
SQL 2000 create index 問題一个SQL query的问题
SQL Server Update Query - non-unique value[转载] question about SQL in Access
SQL Query Question[转载] Can anyone interpret this simple SQL?
[query]mysql怎么选择独特的两个字段组合?parameterized queries with no inputs
再请教大牛一个问题A SQL query never stop running is bothering me: help needed (转载)
相关话题的讨论汇总
话题: today话题: 01话题: query话题: sql