Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tPliZ-00F9F2-6O for pgsql-general@arkaria.postgresql.org; Mon, 23 Dec 2024 16:55:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tPliY-00CcMT-73 for pgsql-general@arkaria.postgresql.org; Mon, 23 Dec 2024 16:55:41 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tPliX-00CcM1-Qb for pgsql-general@lists.postgresql.org; Mon, 23 Dec 2024 16:55:41 +0000 Received: from mail-ot1-x332.google.com ([2607:f8b0:4864:20::332]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tPliW-000Cws-0s for pgsql-general@lists.postgresql.org; Mon, 23 Dec 2024 16:55:40 +0000 Received: by mail-ot1-x332.google.com with SMTP id 46e09a7af769-71e1158fe3eso2571004a34.1 for ; Mon, 23 Dec 2024 08:55:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734972939; x=1735577739; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=1J/NZusmCqeuGBBS4OPoSvMSo1Ux3iC+9IbM8oz8U/Y=; b=UDUiCmoPlvq2NA1HQ4vgAeYx12Q48S1ZY0n+cIgXLmrpVRupwR+3bQJmQH8lN3E2TP J/AUZ/VLU78I0aQ9AHrZLllfaSOJ4TwDoW7MVfXNZj8U2y31IKku+NC2jrrypCPMmAWE H442ENzmygi+TIFlo7yOhq2cFTdJwNRXsI65E6XNVIoFlZSmlxPtMA410JW3Zjo0WZvZ YpzZXuEBh2C1gr75Yx4R/rK3rsfbiBXs6UrPFBXo/IAVc5c1Ov93f9F5rV2nJK8MvGlB Fr4bxbgwxe3LRAxjoBHv/B0KqA6k/KigHx3fK3Zuqhjblnep4Jo6m5hws0WI+MH9F3jZ 0lLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734972939; x=1735577739; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1J/NZusmCqeuGBBS4OPoSvMSo1Ux3iC+9IbM8oz8U/Y=; b=WjwXFKROoO+VigAvaMI0Uez1a582Il+OfwETEO3CQYAyXz1MCahhY2G6rK3+Lf/99E z8GrsDemmH3vBHxeB0L36g8GdNUBipb0uoT4m8yLXVRZFKfEqpbo+VAb2/yeEIxHN+KD qdDz76aVe2wgoacqZXRlpmRH3r9tKo01K+WN8uN4BgcWEFVwHzIBcMAYCqYDMEMXHir/ t8xyp7pTLWkEB/McSgAWMM+Py1Axd/QywPTKm5gQ0HR9ifegliWuDK6pFRqKg+QfcO/+ xs2kV+a/ibcK/Dhq4a3jlGQfd4LjpLhvFzcUwAa0S/ciHuvxhn6zdHBw9PQJsD4KbQD0 /iIA== X-Forwarded-Encrypted: i=1; AJvYcCUQGGuFAV/JptdTGkqey+Lly4Q9B7m5G0qezQJAefKdzPViQ1eznUmKdVpmMxM8Ouh65Yzh4n5x6rS0LFJF@lists.postgresql.org X-Gm-Message-State: AOJu0Yy+Sm1KEI/dbRYdeXAyI/Fb2JHTVjUUDJiLrZ0amN/8Og3C48mZ tb5YWGypyAP6+P1ktp3rQWfm/Sfo2GKLIEhYaI2d3VdW00XNKtEybLy5N5hcuSr0GrkfRRPQ1aQ NUXxjm8P9In2KiaH3RFSOHSVkTHE= X-Gm-Gg: ASbGncuMjZAZPGE5nFOUKJ+1QTpAteCS9P6PJduslbNM7aoOzQcx9pmVHvYn8kJiB+q Jweg7+2ohuF60M+beB7zjML4ViBvFFveYCWY1Kyc= X-Google-Smtp-Source: AGHT+IGjMVvCGT114Ejsd+ChGTmuyvMSCJYPzps/HsOww0WfJxo21fu5ywoPGUgwKeGhk62liu4c2FIy4PRBWZaeKos= X-Received: by 2002:a05:6830:f93:b0:71e:31a:7521 with SMTP id 46e09a7af769-720ff8a0d84mr8465638a34.20.1734972939479; Mon, 23 Dec 2024 08:55:39 -0800 (PST) MIME-Version: 1.0 References: <06e1f1ee-74b2-43a2-9a63-da20ae455ae2@aklaver.com> In-Reply-To: <06e1f1ee-74b2-43a2-9a63-da20ae455ae2@aklaver.com> From: "David G. Johnston" Date: Mon, 23 Dec 2024 09:55:30 -0700 Message-ID: Subject: Re: Need help in database design To: Adrian Klaver Cc: Divyansh Gupta JNsThMAudy , pgsql-general@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000c0b4340629f2dd42" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000c0b4340629f2dd42 Content-Type: text/plain; charset="UTF-8" On Mon, Dec 23, 2024, 09:54 Adrian Klaver wrote: > On 12/23/24 08:46, Divyansh Gupta JNsThMAudy wrote: > > Also as you ask how 50 pairs turns into 50 column so each column will be > > a key and the value of that key will store inside their respective > > column for each row > > My problem with understanding this is 50 pairs = 100 values, I don't > understand how that can fit in 50 columns that can only handle 1 value > each. You need to provide some example data showing what you want to > achieve. It does not need to be the full 50, just something to show the > process. > Because the column name is the same as a dictionary key... David J. > --000000000000c0b4340629f2dd42 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, Dec 23, 2024, 09:54 Adrian Klave= r <adrian.klaver@aklaver.co= m> wrote:
On 12/23/24 08:46,= Divyansh Gupta JNsThMAudy wrote:
> Also as you ask how 50 pairs turns into 50 column so each column will = be
> a key and the value of that key will store inside their respective > column for each row

My problem with understanding this is 50 pairs =3D 100 values, I don't =
understand how that can fit in 50 columns that can only handle 1 value
each. You need to provide some example data showing what you want to
achieve. It does not need to be the full 50, just something to show the process.


Because the column name is the same a= s a dictionary key...

Da= vid J.


--000000000000c0b4340629f2dd42--