Dodecahedron
Technical User
I have a query as below
Select NameID,Surname,Date,TypeofCalll, etc
FROM table
WHERE
This gives me the result below
ID Surname Date TypeofCall
1 Smith 01/01/2007 Incoming
1 Smith 02/01/2007 Note
1 Smith 02/01/2007 Incoming
2 Brown 01/01/2007 Note
2 Brown 01/01/2007 Incoming
I now need to do a count of the first time a user is registers an incoming call on the system, the result would be
ID Surname Date TypeofCall NewUser
1 Smith 01/01/2007 Incoming 1
1 Smith 02/01/2007 Note 0
1 Smith 02/01/2007 Incoming 0
2 Brown 01/01/2007 Note 0
2 Brown 01/01/2007 Incoming 1
How could I do this
Thanks
Select NameID,Surname,Date,TypeofCalll, etc
FROM table
WHERE
This gives me the result below
ID Surname Date TypeofCall
1 Smith 01/01/2007 Incoming
1 Smith 02/01/2007 Note
1 Smith 02/01/2007 Incoming
2 Brown 01/01/2007 Note
2 Brown 01/01/2007 Incoming
I now need to do a count of the first time a user is registers an incoming call on the system, the result would be
ID Surname Date TypeofCall NewUser
1 Smith 01/01/2007 Incoming 1
1 Smith 02/01/2007 Note 0
1 Smith 02/01/2007 Incoming 0
2 Brown 01/01/2007 Note 0
2 Brown 01/01/2007 Incoming 1
How could I do this
Thanks