Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/84.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql oracle查询从生成的查询中获取具有空列的行_Sql_Oracle - Fatal编程技术网

Sql oracle查询从生成的查询中获取具有空列的行

Sql oracle查询从生成的查询中获取具有空列的行,sql,oracle,Sql,Oracle,我有一个查询,它返回一些带有空列的行。我只想得到有空列的行。这是我的问题 SELECT eofficeuat.gatepass.agent_id, eofficeuat.cnf_agents.agent_name, eofficeuat.entrylog_vehicle.passnumber AS passnumber, eofficeuat.gatepass.id, eofficeuat.entrylog_vehicle.action, to_char(eofficeuat.gatepass.

我有一个查询,它返回一些带有空列的行。我只想得到有空列的行。这是我的问题

SELECT
eofficeuat.gatepass.agent_id,
eofficeuat.cnf_agents.agent_name,
eofficeuat.entrylog_vehicle.passnumber AS passnumber,
eofficeuat.gatepass.id,
eofficeuat.entrylog_vehicle.action,
to_char(eofficeuat.gatepass.issuedatetime, 'dd-mm-yyyy HH12:MI:SS PM')  AS issueddatetime

FROM
eofficeuat.gatepass
inner JOIN eofficeuat.cnf_agents ON eofficeuat.gatepass.agent_id = eofficeuat.cnf_agents.agent_id
left JOIN eofficeuat.entrylog_vehicle ON eofficeuat.gatepass.id = eofficeuat.entrylog_vehicle.passnumber

WHERE
trunc((eofficeuat.gatepass.issuedatetime - DATE '1970-01-01') * 60 * 60 * 24) - 21602 >= 1569952800
AND trunc((eofficeuat.gatepass.issuedatetime - DATE '1970-01-01') * 60 * 60 * 24) < (
    SELECT
        ( sysdate - DATE '1970-01-01' ) * 86400000
    FROM
        dual
)

order by eofficeuat.gatepass.issuedatetime desc
这将在链接中显示类似于此图像的输出

你能帮个忙吗?
谢谢

我无法查看图像,但是-如果我理解了这个问题,那将是

where (   agent_id   is null 
       or agent_name is null
       or passnumber is null
       or ...
     )

为什么从dual中选择sysdate-日期“1970-01-01”*86400000?只需写=截止日期“2019-10-01 20:00”、“YYYY-MM-DD HH24:MI”和TRUNCeofficeuat.gatepass.issuedatetime