fork download
  1. CREATE TABLE Persons
  2. (
  3. P_Id1 int,
  4. P_Id2 int,
  5. P_Id3 int
  6. );
  7.  
  8. INSERT INTO Persons
  9. VALUES (12, 13, 14);
  10.  
  11. INSERT INTO Persons
  12. VALUES (1, 17, 3);
  13.  
  14. select max(max(P_Id1),max(P_Id2),max(P_Id3)) from Persons;
Success #stdin #stdout 0s 2964KB
stdin
Standard input is empty
stdout
17