Click here to Skip to main content
15,887,243 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hi all,

my ticket tableview

ticketid origin destination journey ticket qty amt date_issued
1409220001 A B Single Adult 1 1.3 22/9/2014
1409220002 C D Return Child 1 0.7 22/9/2014
1409220003 E F Weekly Adult 1 13 22/9/2014

my suggestion report template

1. Single journey
A B C D E F Total
A
B
C
D
E
F
Total


2. Return journey

.....same template

3. weekly journey

.....same template

thanks in advance,
musiw.
Posted
Updated 22-Sep-14 5:48am
v3
Comments
Gihan Liyanage 22-Sep-14 5:18am    
All the information of your requirement is on your memory, But you didn't express it here. please explain it more. My self I cant understand. I don't know any one can..
[no name] 22-Sep-14 11:59am    
Your "update" in no way tells us what you have tried or what the problem is. In fact, there is no SQL in your posting at all.

1 solution

Please explain more and correctly. What you need actually?
Are you need something like that?

SQL
SELECT * from TableName where Order_Date between GETDATE() and GETDATE()-7
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900