Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1etT1n-0007Lp-Ls for pgsql-general@arkaria.postgresql.org; Wed, 07 Mar 2018 06:58:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1etT1m-000340-PA for pgsql-general@arkaria.postgresql.org; Wed, 07 Mar 2018 06:58:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1etT1m-00033r-HR for pgsql-general@lists.postgresql.org; Wed, 07 Mar 2018 06:58:18 +0000 Received: from aragorn.net-wizard.org ([138.201.127.29] helo=gandalf.net-wizard.org) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1etT1c-0007qo-OO for pgsql-general@lists.postgresql.org; Wed, 07 Mar 2018 06:58:17 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.net-wizard.org (Postfix) with ESMTP id 7691F804C9; Wed, 7 Mar 2018 07:58:04 +0100 (CET) X-Virus-Scanned: Gentoo amavisd-new at aragorn Received: from aragorn.net-wizard.org ([127.0.0.1]) by localhost (aragorn.net-wizard.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RCAVxPMw5spI; Wed, 7 Mar 2018 07:58:03 +0100 (CET) Received: from MTEC0211 (mtec-lee-dock-2-133.ethz.ch [129.132.6.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: clavadetscher@swisspug.org) by gandalf.net-wizard.org (Postfix) with ESMTPSA id 29E5A804C1; Wed, 7 Mar 2018 07:57:59 +0100 (CET) From: "Charles Clavadetscher" To: "'Arup Rakshit'" , References: <03342D6C-F36F-474E-A5E7-BF07175649DF@outlook.com> In-Reply-To: <03342D6C-F36F-474E-A5E7-BF07175649DF@outlook.com> Subject: RE: help to query json column Date: Wed, 7 Mar 2018 07:57:52 +0100 Message-ID: <07b701d3b5e1$a2fc5030$e8f4f090$@swisspug.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQJ6xLl17TzOfdI1Jnwk8gz6nyb+bKJ2N37g Content-Language: de-ch List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello > -----Original Message----- > From: Arup Rakshit [mailto:aruprakshit1987@outlook.com] > Sent: Mittwoch, 7. M=E4rz 2018 05:41 > To: pgsql-general@lists.postgresql.org > Subject: help to query json column >=20 > Hi, >=20 > I would like to select only rows where signature has a non null value. = My json looks like : >=20 > { > "carInspection": { > "damages": [ > { > "x": 68.670309653916, > "y": 44.08014571949, > "errors": [ > { > "code": "BR", > "description": "Gebrochen" > }, > { > "code": "F", > "description": "Reifen platt" > } > ] > }, > { > "x": 40.8014571949, > "y": 50.273224043716, > "errors": [ > { > "code": "BR", > "description": "Gebrochen" > }, > { > "code": "F", > "description": "Reifen platt" > } > ] > }, > { > "x": 48.269581056466, > "y": 37.340619307832, > "errors": [ > { > "code": "F", > "description": "Reifen platt" > } > ] > }, > { > "x": 49.180327868852, > "y": 15.482695810565, > "errors": [ > { > "code": "F", > "description": "Reifen platt" > } > ] > } > ], > "layoutURL": "default", > "signature1": "\n