D
d
Could anyone help with this:-
Can this be achieved in a SQL statement other than making physical tables
(other than the FromTo table) ?
I have one table called auaudit and need one query to select records that
have a field called aufrom and a 2nd query to select all records that have a
field called auTo
A 3rd query would use the results from the above queries to test if field RD
in both are not equal. If not equal would put the HD field from query 1 and
the HD field from query2 and the data field from query2 into a new table
called FromTo
And a 4th query would do the same as the 3rd but this time would test a
field called RD this also would be placed in the table called FromTo also If
not equal.
Can this be achieved in a SQL statement other than making physical tables
(other than the FromTo table) ?
I have one table called auaudit and need one query to select records that
have a field called aufrom and a 2nd query to select all records that have a
field called auTo
A 3rd query would use the results from the above queries to test if field RD
in both are not equal. If not equal would put the HD field from query 1 and
the HD field from query2 and the data field from query2 into a new table
called FromTo
And a 4th query would do the same as the 3rd but this time would test a
field called RD this also would be placed in the table called FromTo also If
not equal.