久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <bdo id='uSmjT'></bdo><ul id='uSmjT'></ul>

        <small id='uSmjT'></small><noframes id='uSmjT'>

      1. <legend id='uSmjT'><style id='uSmjT'><dir id='uSmjT'><q id='uSmjT'></q></dir></style></legend>
      2. <i id='uSmjT'><tr id='uSmjT'><dt id='uSmjT'><q id='uSmjT'><span id='uSmjT'><b id='uSmjT'><form id='uSmjT'><ins id='uSmjT'></ins><ul id='uSmjT'></ul><sub id='uSmjT'></sub></form><legend id='uSmjT'></legend><bdo id='uSmjT'><pre id='uSmjT'><center id='uSmjT'></center></pre></bdo></b><th id='uSmjT'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='uSmjT'><tfoot id='uSmjT'></tfoot><dl id='uSmjT'><fieldset id='uSmjT'></fieldset></dl></div>
      3. <tfoot id='uSmjT'></tfoot>

        嵌套聚合函數(shù)

        Nested aggregate functions(嵌套聚合函數(shù))

        • <bdo id='hmYVe'></bdo><ul id='hmYVe'></ul>

            <tbody id='hmYVe'></tbody>

          <small id='hmYVe'></small><noframes id='hmYVe'>

          1. <legend id='hmYVe'><style id='hmYVe'><dir id='hmYVe'><q id='hmYVe'></q></dir></style></legend>

                  <tfoot id='hmYVe'></tfoot>
                • <i id='hmYVe'><tr id='hmYVe'><dt id='hmYVe'><q id='hmYVe'><span id='hmYVe'><b id='hmYVe'><form id='hmYVe'><ins id='hmYVe'></ins><ul id='hmYVe'></ul><sub id='hmYVe'></sub></form><legend id='hmYVe'></legend><bdo id='hmYVe'><pre id='hmYVe'><center id='hmYVe'></center></pre></bdo></b><th id='hmYVe'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='hmYVe'><tfoot id='hmYVe'></tfoot><dl id='hmYVe'><fieldset id='hmYVe'></fieldset></dl></div>
                  本文介紹了嵌套聚合函數(shù)的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  限時(shí)送ChatGPT賬號(hào)..
                  SELECT MAX(AVG(SYSDATE - inv_date)) FROM invoice;
                  

                  這個(gè)查詢有什么問(wèn)題?

                  Avg 返回單個(gè)值 否Max 需要一個(gè)小組來(lái)處理,所以它不會(huì)執(zhí)行并給出錯(cuò)誤?請(qǐng)解釋工作這是一個(gè)不會(huì)執(zhí)行的測(cè)驗(yàn)問(wèn)題 我想知道它不執(zhí)行的原因 我不知道允許嵌套聚合函數(shù)嗎?

                  Avg returns single value no Max requires a group to work on so it dosent execute and give error? Please explain working It's a quiz question according to which it won't execute I want to know the reason why it dosent execute I can't figure it out nested aggregate functions are allowed right?

                  推薦答案

                  Oracle 允許嵌套聚合函數(shù)(參見(jiàn) 文檔).

                  Oracle allows nested aggregation functions (see the documentation).

                  然而,它需要一個(gè)GROUP BY.所以這是允許的:

                  However, it requires a GROUP BY. So this is allowed:

                  SELECT MAX(AVG(SYSDATE - inv_date))
                  FROM invoice
                  GROUP BY Cust_ID;
                  

                  基本上,這是一個(gè)捷徑:

                  Basically, this is a short-cut for:

                  SELECT MAX(x)
                  FROM (SELECT AVG(SYSDATE - inv_date) as x
                        FROM invoice
                         GROUP BY Cust_Id
                       ) i;
                  

                  不過(guò),就您而言,沒(méi)有 GROUP BY.Oracle 不允許在沒(méi)有 GROUP BY 的情況下嵌套 GROUP BY.

                  In your case, though, there is no GROUP BY. Oracle doesn't allow nested GROUP BY without the GROUP BY.

                  如果您好奇,我不喜歡這種擴(kuò)展功能.我不認(rèn)為它實(shí)際上解決了問(wèn)題.

                  And if you are curious, I'm not a fan of this extended functionality. I don't see that it actually solves a problem.

                  這篇關(guān)于嵌套聚合函數(shù)的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  SQL query to get all products, categories and meta data woocommerce/wordpress(獲取所有產(chǎn)品、類別和元數(shù)據(jù)的 SQL 查詢 woocommerce/wordpress)
                  Can I figure out a list of databases and the space used by SQL Server instances without writing SQL queries?(我可以在不編寫 SQL 查詢的情況下找出數(shù)據(jù)庫(kù)列表和 SQL Server 實(shí)例使用的空間嗎?) - IT屋-程序員軟件開(kāi)發(fā)
                  How to create a login to a SQL Server instance?(如何創(chuàng)建對(duì) SQL Server 實(shí)例的登錄?)
                  How to know the version and edition of SQL Server through registry search(如何通過(guò)注冊(cè)表搜索知道SQL Server的版本和版本)
                  Why do I get a quot;data type conversion errorquot; with ExecuteNonQuery()?(為什么會(huì)出現(xiàn)“數(shù)據(jù)類型轉(zhuǎn)換錯(cuò)誤?使用 ExecuteNonQuery()?)
                  How to show an image from a DataGridView to a PictureBox?(如何將 DataGridView 中的圖像顯示到 PictureBox?)

                      <tbody id='tDfvT'></tbody>

                        • <small id='tDfvT'></small><noframes id='tDfvT'>

                            <bdo id='tDfvT'></bdo><ul id='tDfvT'></ul>

                            <tfoot id='tDfvT'></tfoot>

                            <i id='tDfvT'><tr id='tDfvT'><dt id='tDfvT'><q id='tDfvT'><span id='tDfvT'><b id='tDfvT'><form id='tDfvT'><ins id='tDfvT'></ins><ul id='tDfvT'></ul><sub id='tDfvT'></sub></form><legend id='tDfvT'></legend><bdo id='tDfvT'><pre id='tDfvT'><center id='tDfvT'></center></pre></bdo></b><th id='tDfvT'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='tDfvT'><tfoot id='tDfvT'></tfoot><dl id='tDfvT'><fieldset id='tDfvT'></fieldset></dl></div>
                            <legend id='tDfvT'><style id='tDfvT'><dir id='tDfvT'><q id='tDfvT'></q></dir></style></legend>
                            主站蜘蛛池模板: 国产免费拔擦拔擦8x高清 | 久久国产精品视频观看 | 在线观看亚洲 | 最新日韩精品 | 性一交一乱一透一a级 | 国产福利视频在线观看 | 日韩电影一区 | 久久精品无码一区二区三区 | 黄视频网站免费观看 | 精品久久久一区 | 亚洲在线一区 | 成人永久免费视频 | 国产精品视频一二三区 | 精品久久电影 | 成人网av | 四虎永久在线精品免费一区二 | 亚洲第一在线 | 国产农村妇女精品一区 | 亚洲一区二区在线免费观看 | 成人久久久 | jvid精品资源在线观看 | 午夜三级在线观看 | 青青久草 | 国产成人精品一区二区三区视频 | 亚洲一区二区三区四区在线观看 | 国产在线精品一区 | 中文字幕a√ | 亚洲欧美日韩系列 | 欧美成视频| 久久蜜桃av一区二区天堂 | 久久久久久久久久久久久久av | 免费网站在线 | 国产特级毛片aaaaaa喷潮 | 国产一区三区在线 | 欧美午夜精品 | 久久精品视频在线免费观看 | 亚洲一区二区三区久久 | 日韩二区 | 久久久久无码国产精品一区 | 在线观看日韩av | 超碰伊人久久 |