sql >> Databáze >  >> RDS >> Oracle

Oracle SQL:Jak vrátit několik různých sloupců

Zkuste toto

 SELECT MIN(I.INCIDENTID)               AS "Incident ID",
        I.CREATIONDATE                  AS "Creation Date",
        MO.IPADDRESS                    AS "IP Address",
        MO.DOMAINUSERNAME               AS "Login ID",
        MO.ENDPOINTMACHINENAME          AS "Computer Name",
        M.MESSAGESUBJECT                AS "Email Subject"
   FROM MESSAGE M,
        INCIDENT I,
        MESSAGEORIGINATOR MO
  WHERE M.MESSAGESOURCE = 'ENDPOINT'
    AND M.MESSAGESOURCE = I.MESSAGESOURCE
    AND M.MESSAGEID = I.MESSAGEID
    AND M.MESSAGEDATE = I.MESSAGEDATE 
    AND M.MESSAGEORIGINATORID = MO.MESSAGEORIGINATORID 
    AND I.ISDELETED = 0
  GROUP BY I.CREATIONDATE, MO.IPADDRESS, MO.DOMAINUSERNAME, MO.ENDPOINTMACHINENAME,M.MESSAGESUBJECT


  1. Proč je OracleDataAdapter.Fill() velmi pomalý?

  2. Proč se mi v systému Mac OS Lion zobrazuje chyba Nelze se připojit k serveru pro postgres?

  3. Jak nakonfigurovat Spring boot pro práci se dvěma databázemi?

  4. Funkce NLSSORT() v Oracle