S
subs
Please help with this
OST Ocity Dst Dcity Field1 Carrier1
MI kalamazoo NJ Parsippany EC
OH Cincin MA Boston EC
NJ Dover MI Detroit MW
OH Columbus OH Cincinnati MW
NJ Dover MA Boston EC
OH Columbus MI Detroit MW
OH Cincin MA Boston EC
first of all the query should ask for two inputs- [enter the EC
carrrier] , [enter the MW carrier]. And then based on those answers
and also whether field1 is EC or MW , the Carrier1 should be updated.
Example
Enter the ec carrier- Saia
Enter the mw carrier- rl
So the field Carrier1 should be
Saia
Saia
rl
rl
saia
rl
saia
Is there a one line SQL ?
OST Ocity Dst Dcity Field1 Carrier1
MI kalamazoo NJ Parsippany EC
OH Cincin MA Boston EC
NJ Dover MI Detroit MW
OH Columbus OH Cincinnati MW
NJ Dover MA Boston EC
OH Columbus MI Detroit MW
OH Cincin MA Boston EC
first of all the query should ask for two inputs- [enter the EC
carrrier] , [enter the MW carrier]. And then based on those answers
and also whether field1 is EC or MW , the Carrier1 should be updated.
Example
Enter the ec carrier- Saia
Enter the mw carrier- rl
So the field Carrier1 should be
Saia
Saia
rl
rl
saia
rl
saia
Is there a one line SQL ?