Answer the question
In order to leave comments, you need to log in
CodeIngiter how to convert query to mssql query?
Good afternoon, we switched from Oracle to MS db, and now we need to rewrite all queries for one application, that's what happened and what needs to be converted to mssql. I feel like a loshka, because it seems like an elementary query that I can’t build myself.
$result = $this->db->query("SELECT A.*, LOL.FOLLOWUP_STATUS(COMM_COMMUNICATIONID) AS FOLLOWUP_STATUS FROM (SELECT LOL2COMMUNICATION.* FROM LOL2COMMUNICATION WHERE CMLI_CREATEDBY = $user_id AND COMM_ACTION IN ('LOL3_PHONE','LOL3_EMAIL' ,'LOL3_MEETING') ORDER BY COMM_DATETIME DESC) A WHERE ROWNUM <= 1337")->result();
Thanks in advance.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question