Hi, I am fairly new to creating sql commands. I am a user of Crystal Reports and have hit a 'brick-wall' with a value I am trying to generate and export, and have found that CR is not able to do what I need. I was wondering if a SQL statement could be created for what I need, then added to my Crystal Report.
I have a number of tables that when joined, generate the following recordset:
Record Type Number
1 B 100
2 B 106
3 R 102
4 S 105
5 R 104
6 S 105
7 R 108
8 B 106
9 S 107
10 B 106
What I need is a fourth column to generate the following:
Record Type Number Group
1 B 100 1.1
2 B 106 1.2
3 R 102 2.1
4 S 105 3.1
5 R 104 2.2
6 S 105 3.1
7 R 108 2.3
8 B 106 1.2
9 S 107 3.2
10 B 106 1.2
The column is based on a combination of type and number.
Can SQL do this?
Many thanks for any help.
I have a number of tables that when joined, generate the following recordset:
Record Type Number
1 B 100
2 B 106
3 R 102
4 S 105
5 R 104
6 S 105
7 R 108
8 B 106
9 S 107
10 B 106
What I need is a fourth column to generate the following:
Record Type Number Group
1 B 100 1.1
2 B 106 1.2
3 R 102 2.1
4 S 105 3.1
5 R 104 2.2
6 S 105 3.1
7 R 108 2.3
8 B 106 1.2
9 S 107 3.2
10 B 106 1.2
The column is based on a combination of type and number.
Can SQL do this?
Many thanks for any help.